Creating headless EGL build

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 IBM Business Developer Ant tasks.

About this task

You can run the Ant build file from the IBM 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 IBM Business Developer workbench, complete the following steps:
    1. Start IBM Business Developer.
    2. Right-click the project that you want to build and click Properties. A dialog of properties configuration is displayed.
    3. To create a new builder, select Builder and click New. The Choose configuration type dialog is displayed.
    4. Select Ant Builder and click OK. The Edit Configuration dialog is displayed.
    5. Fill in the Name filed, select the Ant build file, and optionally fill in other fields according to your environment and click OK.
    6. To run the Ant build script, click Project > Clean or click Project > Build All.
  • To start a headless build by using runAnt, complete the following steps:
    1. If you run runAnt with no parameters, it will present a simple menu of operations.
      • List your workbench projects
      • Run an Ant script
    2. 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
    3. Then try the command:
      runAnt
    4. Then, you can type either 1 or 2 plus the following command:
      -buildfile x:\MYWORKSPACE\MYPROJECT\echo.xml