Build of ©bye.obj© successfully completed at ©15:35:22 1995-08-10©. Completed Jobs: 2

Remaining Jobs: 1

Build of ©msgcat.exe© started at ©15:35:26 1995-08-10© via a build agent on the host ©OCTOFVT©.

Build of ©msgcat.exe© successfully completed at ©15:35:56 1995-08-10©. Completed Jobs: 3

Remaining Jobs: 0

Processing Completed for ©msgcat.exe©.

To see the commands that TeamConnection issued during the build, you can look at the detail ®le speci®ed in the part -build command.

Running a build in spite of errors

If you ®nd that a build is stopping because of errors, you can check the build detail ®le or the Build Progress window for the cause. If the error is minor, you might decide to run the build despite the errors Ð for example, when you are debugging. To do this, specify that you want the build to complete unconditionally.

In our example, when Greg builds msgcat.exe for the ®rst time, he wants to ®nd and correct any errors that occur during the build, so he uses the following command:

teamc part -build msgcat.exe -release 9503 -workarea 223 -unconditional

As in normal mode, only the parts that are stale with respect to their inputs are rebuilt; only the minimum amount of work to bring everything up-to-date is performed.

However, even if an error is found, the build continues if possible. As with normal mode, if the build is halted, any build events remaining are canceled. Any build events already performed are not undone.

Building all parts, regardless of build times

To make sure that all parts in the build tree get built, whether or not they are stale, you specify the -force parameter on the part -build command.

In this mode, all parts that are descendants of the build target are rebuilt.

In our example, Greg can force TeamConnection to build all parts in the msgcat.exe build tree using the following command:

teamc part -build msgcat.exe -release 9503 -workarea 223 -force -pool pool1

If an error occurs, the build is halted. Any remaining build events are canceled, but any build events already performed are not undone.

Chapter 15. Building an application: an example 193

Page 213
Image 213
IBM SC34-4499-03 manual Running a build in spite of errors, Building all parts, regardless of build times