command line build

hello :slight_smile: i use qnx momentics ide on windows xp to compile 20 or so
projects in a workspace. i use the following command in a batch file
to open momentics with the workspace:

c:\qnx630\host\win32\x86\usr\qde\eclipse\qde.exe -data .\workspace
-showlocation -vmargs -Xms256M -Xmx512M

from the menu i then select Project->Rebuild All.

i want to automate the build process in a batch file. i am looking
for a command line argument i can add to the above command that will
rebuild everything and then exit momentics and give me some return
value so that i can determine whether or not everything built without
errors/warnings.

does anyone know what i need to do or where i can find more
information on command line arguments? is there some other way to
accomplish an automated build?

thanks in advance,
scott :slight_smile:
saraujo@coemfg.com

as an alternative, would i be better off creating a lower level script
just using calls to ā€˜makeā€™? iā€™d prefer not to since a simple ā€˜build
allā€™ call woud probably be easier to maintain.

scott :slight_smile:
saraujo@coemfg.com

aletue wrote:

as an alternative, would i be better off creating a lower level script
just using calls to ā€˜makeā€™? iā€™d prefer not to since a simple ā€˜build
allā€™ call woud probably be easier to maintain.

scott > :slight_smile:
saraujo@coemfg.com

A simple way to do this, is do the build from momentics, then copy the
command that momentics issued (visible in the build window).

Open an bash shell, cd to the project directory and pasteā€¦ bingo.

Once you have verified that the build worked correctly, simply recall
the command line and redirect it to a script file.

Iā€™m a QNX newbie trying to figure out how to automate our QNX build
process by creating a script that can be run every night at a
scheduled time. Iā€™ve created a Container Project that holds all of
the QNX C projects that are part of the system. If Iā€™m using the IDE,
all I need to do is ā€œimportā€ the container project and then do a
Rebuild All. However, I havenā€™t been able to figure out how to do an
import and a Rebuild All via the command line. Can someone help me
out, or point me to where I could find some documentation on using
the CLI?

I realize that I could do this by capturing the make command that is
generated when each individual project is built. In fact, Iā€™ve built
a script that does just that. However, Iā€™d prefer not to have to
update the script every time we add or remove one of the projects
from the Container. Iā€™d rather just import the Container and rebuild
the projects.

Thanks in advance for any help!

Greg