Thanks for the tips, Chris!  Sounds like that would be a good direction
for us since we have multiple projects to build too.

        Thanks,

        Aaron Hansen
        Extended Systems

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Tutty
Sent: Wednesday, December 22, 2004 5:42 PM
To: Palm Developer Forum
Subject: Re: Sample Build Script in CW 9


From: "Aaron Hansen" <[EMAIL PROTECTED]>
> We were looking at the sample VB build script found in the CW examples

> folder and tried running it unaltered.  It seems to have found and 
> built our project for debug and release.  However I have zero 
> experience with VB and very little with scripts in general.  Is the 
> sample VB build script generally able to handle building large complex

> apps?  Anyone out there have any tips on common pitfalls or 
> recommended changes/additions?
>
I modified this for a project made up of several applications 
based on a set of static libraries and it worked well.  One of 
the changes I made was to remove the object code before starting by
adding:
      ' Remove existing object code before starting
      cwProj.RemoveObjectCode 0, true
in front of the line:
      ' Rebuild fresh
      Set buildMsgs = cwProj.BuildandWaitToComplete

I also extended it to run from a command file containing the 
names of the projects I wanted built, in the order I wanted 
them built.  This was just some code to open a text file supplied 
on the command line and then iterate:
    - read a line from the file and (on the assumption that the 
        text of the line is a project name)
    - open that project (by replacing the line):
  fNewProj = GetProject(cwApp, cwProj, s)
with:
  Set cwProj = cwApp.OpenProject(s, TRUE, 0, 1)

At the same time I copied the errors and warnings counts to a 
summary log file so that I could check the run by confirming that 
all projects had non-zero error or warning counts.

Chris Tutty

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

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

Reply via email to