Ben,
Thanks for taking the time to answer my question.  The information you provided should 
allow me to build my palm cw projects
from a batch file.

thanks,

jon


Ben Combee wrote:

> At 11:36 AM 9/6/2002 -0700, Jon Norenberg wrote:
> >All,
> >Can I invoke the CW IDE from a Windows command line and have it build a
> >certain
> >target in the project and then quit.  I have a number of projects that I
> >need to
> >build and I would like to automate the process.  I read a little about the COM
> >stuff, seems a little overkill for my task.
>
> Here's a little help:
>
> C:> c:\cwpalm8\bin\cmdide.exe /?
>
> Metrowerks CodeWarrior IDE. Hit /? for help
>
> This program invokes the CodeWarrior IDE, passes the proper parameters
> to produce a build, and waits for the IDE to finish its operation.
> Arguments:
> /t targetname    specifies a target to become the current target
> /r               remove objects of the current target before building
> /b               build the current target
> /c               close the project after building
>
> /q               quit the IDE after building
>
> /v y|n|a         option for converting projects on open
>                   (y = convert without asking; n = don't convert;
>                      a =ask whether to convert)
>
> /s               Forces the command line to be processed in a new
>                   instance of the IDE (rather than using a current instance)
>
> Notes:
>
> 1) If more than one project document is specified to be opened in the
> command line, the /t and build command flags apply to the first project
> document found in the list of documents. If no project is specified in the
> command line, it will use the usual logic in the IDE (front project or
> default project) to figure out which project to build.
> If no target is specified it uses whatever the current target
> is for that project.
>
> 2) All build commands are executed in a different process from the one
> launched from the command line. The original process will return as soon
> as the command line has been completely processed and the build
> has completed.
>
> 3) The following codes are returned:
>
> 0       no error
> 1       error opening file
> 2       project not open
> 3       IDE is already building
> 4       invalid target name (for /t flag)
> 5       error changing current target
> 6       error removing objects
> 7       build was cancelled
> 8       build failed
> 9       process aborted
>
> >You can call most of the CW tools (compiler and linker) from the command line,
> >but then I need to create all the options necessary for the tool
>
> Actually, CodeWarrior for Palm OS doesn't currently ship command line
> versions of the compiler and linker, so this method it out.
>
> cmdide is only intended for Win95/98/Me systems... for NT/2000/XP systems,
> you can use these command line options with ide.exe instead.
>
> --
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/support/forums/

--
======================================================================
Jon Norenberg                        Phone:  (209) 544-9207
AlphaSmart, Inc.                     Fax:    (413) 643-5644
973 University Ave.                  Email:  mailto:[EMAIL PROTECTED]
Los Gatos, CA 95032                  www:    http://www.alphasmart.com
======================================================================



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to