How to Compile Source Code

Build


<build_home>\build\build.cmd is the main script used to generate and compile java code, compile .Net code and generate database code.

When started without arguments build.cmd prompts for what actions to perform:

Do you want to run _ant_compile? (Y/N [Y])
Do you want to run _msbuild? (Y/N [Y])
Do you want to run _ant_generatedb? (Y/N [Y])

 

The build.cmd will call sub scripts in paralell depending on input or arguments

 

Appropriate versions of java and ant software will be automatically installed parallel to your <build_home> folder in Tools folder if not found in PATH.

All logfiles can be found in <build_home>. Previous version of logfiles are saved with a PREV suffix.

build.cmd MUST be used when DELIVERY is set since it will copy all files from the delivery folder to build_home with a new timestamp.

When called from Configuration Builder the scripts run in quiet mode and will alert and open the log file if an error occurs.

build.cmd accepts the following arguments:

Usage: build.cmd [SERVER] [CLIENT] [DB] [CLEAN] [SILENT]

SERVER start _ant_compile.cmd > C:\DBG\workspace\build_home\_ant_compile.log
CLIENT start _msbuild.cmd > C:\DBG\workspace\build_home\_msbuild.log
DB start _ant_generatedb.cmd > C:\DBG\workspace\build_home\_ant_generatedb.log
CLEAN adds CLEAN as argument
SILENT runs SILENT (from ConfigBuilder)