Java Compiler Settings

The following parameters may be passed when performing the build and control the behavior of the Java compiler. They should be passed in the following way build server -Dcmp.debug=on. These settings are:

Table 1. Java Compiler Settings

Parameter

Values

Description

cmp.debug

on

off

Indicates whether the source should be compiled with debug information. The default is on.

cmp.maxmemory

Number

The maximum size of the memory for the underlying VM. The default is 768.

cmp.nowarn

on

off

Indicates whether the -nowarn switch should be passed to the compiler. The default is off.

cmp.maxwarnings

Number

Asks the compiler to set the maximum number of warnings to print. The default is 10000.

cmp.optimize

on

off

Indicates whether source should be compiled with optimization The default is off.

cmp.deprecation

on

off

Indicates whether source should be compiled with deprecation information. The default is off.

cmp.verbose

true

false

Asks the compiler for verbose output. The default is false.

cmp.include.AntRuntime

yes

no

Indicates whether the Ant run-time libraries should be included on the classpath. The default is yes.

cmp.include.JavaRuntime

yes

no

Indicates whether the default run-time libraries, from the executing VM (Virtual Memory), should be included on the classpath. The default is no.

cmp.failonerror

true

false

Indicates whether the build will continue even if there are compilation errors. The default is true.

cmp.listfiles

yes

no

Indicates whether the source files to be compiled will be listed. The default is no.

PRE_CLASSPATH

Filename

An environment variable to allow jar files to be added to the start of the classpath used during compilation or a Batch Launcher run. Files listed here will be added to any EAR (Enterprise ARchive) file created and an entry added to the manifest file to reference this file. Files should be separated with the relevant Path separator for your operating system.

POST_CLASSPATH

Filename

An environment variable to allow jar files to be added to the end of the classpath used during compilation or a Batch Launcher run. Files listed here will be added to any EAR file created and an entry added to the manifest file to reference this file. Files should be separated with the relevant Path separator for your operating system.