Customizing the build process
Advanced users can customize the build process by using the Apache Ant scripting language.
About this task
Tip: WCBD_installdir/wcbd-build-common.xml provides
helper Ant targets that are reusable and serves as examples for customization.
For more information, review the commented sections within the wcbd-build-common.xml file.
Procedure
- Optional:
Develop custom scripts to integrate with your SCM. This step is required if the SCM used in
your customization project is not one for which sample scripts are provided. For more information,
see set up the source extraction Ant script.
- Optional:
Add functions to the Ant build:
- Optional:
Add security-sensitive properties, such as user names and passwords:
- Copy WCBD_installdir/wcbd-build.private.properties.template as WCBD_installdir/project-build.private.properties.template.
- Add the new properties to the end of the file. Refer to comments in the file for details.
This file becomes the new properties template file for configuration. - Optional:
Add properties:
- Copy WCBD_installdir/wcbd-build.properties.template as WCBD_installdir/project-build.properties.template.
- Add the new properties to the end of the file. Refer to the comments in the file for details.
This file becomes the new properties template file for configuration. - Optional:
Add libraries:
- Copy WCBD_installdir/wcbd-setenv*.template as WCBD_installdir/project-setenv*.template.
-
Update the
CLASSPATH
variable in WCBD_installdir/project-setenv.bat.template.
These files become the new setenv template files for configuration. -
Include new or changed functions in the overall build process:
Customizing the files that are used for Configuring the build settings and Running the build process is done in the same manner as the default assets, except that the project-* files are used instead of the wcbd-* files.