You can have multiple Ant tasks for a headless build. With
headless builds, EGL builds can be managed more efficiently and EGL
can support Agile programming better.
Before you begin
Define a project that you want to build and create the Ant
build file that uses the Rational® Business
Developer Ant tasks.
About this task
You can run the Ant build file from the Rational Business Developer workbench or
with the
runAnt.bat file, which is a sample batch
file in the root of the com.ibm.etools.j2ee.ant plugin.
Procedure
- To start a headless build from the Rational Business Developer workbench, complete
the following steps:
- Start Rational Business
Developer.
- Right-click the project that you want to build and click Properties.
A dialog of properties configuration is displayed.
- To create a new builder, select Builder and
click New. The Choose configuration
type dialog is displayed.
- Select Ant Builder and click OK.
The Edit Configuration dialog is displayed.
- Fill in the Name filed, select
the Ant build file, and optionally fill in other fields according
to your environment and click OK.
- To run the Ant build script, click or
click .
- To start a headless build by using runAnt, complete
the following steps:
- If you run runAnt with no parameters, it will present
a simple menu of operations.
- List your workbench projects
- Run an Ant script
- If you specify parameters, it will pass them to Ant
inside the workbench. Try the following command:
runAnt -buildfile x:\MYWORKSPACE\MYPROJECT\echo.xml echo dir
- Then try the command:
runAnt
- Then, you can type either 1 or 2 plus the following
command:
-buildfile x:\MYWORKSPACE\MYPROJECT\echo.xml