Scheduled maintenance 2023.06.01. 07:30 CET
|Configuring Ant for codeBeamer: Builds in Separate JVMs #8692/HEAD / v291|
Since codeBeamer 5.7 Builds are not available.
Configuring Ant for codeBeamer: Builds in Separate JVMs
Launching Ant in a Separate JVM
codeBeamer launches Ant in a separate JVM, instead of running it in codeBeamer's JVM. This has the following benefits:
For your convenience, Ant is included in the standard codeBeamer installation, under its own directory $CODEBEAMER_HOME/ant. Customizing Ant (for example, adding optional task definitions) is absolutely possible, but you have to be very careful, because your changes will affect all the builds in all the projects. Beside extending Ant's functionality by adding new JARs to $CODEBEAMER_HOME/ant/lib, your primary customization points are the Ant wrapper scripts: $CODEBEAMER_HOME/ant/bin/ant.bat on Windows and $CODEBEAMER_HOME/ant/bin/ant on Linux (or other Unix-like) platforms. Modifying these, you can add your own loggers, add further project-independent properties or fine-tune the JRE commandline options. Customization happens in the same exact way as with regular Ant installations, so these are not detailed here, please refer to the Ant Manual http://ant.apache.org/manual/index.html.
Environment for Ant Builds
The initial set of runtime properties passed to Ant consists of the following:
Of course, all the additional properties that you specify in the "Customize Build" screen will be added, too. You can learn more about the details of invocation by studying the codeBeamer system log.
codeBeamer-specific Custom Ant TasksWhen writing your build scripts, you can use some special task definitions for better integration with codeBeamer. codeBeamer is shipped with the following custom Ant tasks:
Note that these task definitions are immediately available for your scripts, there is no need for adding <taskdef> elements.
The <CBExportReport> Task
The <CBPost> Task
The <CBRelease> Task
codebeamer Knowledge Base
Services by Intland Software