Build Options
The flexibility of the Component Build Service (CBS) allows you to build software components (SCs) with various different build options. You can use the following build options to perform the component build in different variants.
Build Options
Name |
Default value |
Description |
Can be used in plug-in |
com.sap.check-java-source-encoding |
false |
Checks all Java source files for correct UTF8 encoding and reports warnings for incorrectly encoded files. |
- |
com.sap.check-path-lengths-on-windows |
true |
Checks if the path length of source files exceed 250 characters. This is needed to avoid problems on Windows platform. |
- |
com.sap.deploy-dependency-check.enabled |
true |
If set to true the build plugin checks (and potentially ignores) deploy-time dependencies when creating a deploy archive. |
- |
com.sap.jdk.home_path_key |
none |
This option specifies the full key for the JDK version (such as JDK1.3.1_HOME). |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.debug |
true |
If set to true the debug flag for the javac is enabled, unless the optimize option is set. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.debuglevel |
A comma separated list containing some or all of the values: "source", "lines", "vars".
|
Defines what kind of debug information is included within classfiles. More information: The documentation for the -g: parameter to the Java compiler in the official documentation by Sun or the documentation of the debuglevel attribute of the javac task in the Ant documentation. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.deprecation |
false |
If you set this option to true, deprecation warnings are generated. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.force_fork |
false |
If you set this value to true, the source code is compiled in forked mode. This option requires the option com.sap.jdk.home_path_key. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.source |
The default value of the used Java compiler. |
The possible values depend on the version of the Java compiler. The value of this option is passed to the Java compiler as a source code parameter. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.target |
The default value of the used Java compiler. |
The possible values depend on the version of the Java compiler. The value of this option is passed to the Java compiler as a target code parameter. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.verbose |
true or false |
Enables verbose output from the Java compiler. |
All plug-ins that compile Java source code. |
com.sap.jdk.javac.Xlint |
- |
Specifies Xlint options for the Sun Java compiler 1.5 |
- |
com.sap.runtime-dependency-check.enabled |
true |
If set to true the build plugin checks (and potentially ignores) runtime dependencies when creating a deploy archive. |
- |
com.sapjdk.javac.optimize |
off |
If you set this option to on, the component is built with optimize=“on“; otherwise the build is performed with debug=“on“. |
All plug-ins that compile Java source code. |
include_sources |
true |
If this value is set to true, the source code of all entity types that support source code (such as Java packages), is packed into the public parts and the deploy archives. This is required, for example, for debugging. Note that this does not explicitly add sources. To stop the source code from being packed automatically, set this value to false. |
All. |