Example: Automated Ant build

This example program shows a typical automated build using the workbench Ant tasks.

To run the automated Ant build example:

  1. Go to the com.ibm.etools.j2ee.ant directory under your workbench installation (for example, x:/<installdir>/rwd/eclipse/plugins/com.ibm.etools.j2ee.ant_*).

  2. Edit the runAnt.bat (or runAnt.sh) program to set your WORKSPACE variable.

  3. Unzip the Example.zip file. This creates an Example directory with subdirectories.

  4. Edit the file buildExample.preferences to set the variable WAS_60_INSTALLDIR.

    • Do not change the variable name.

    • The variable must point to a WebSphere Application Server installation.

  5. Run buildExample.bat (or buildExample.sh).

    • Sample projects are imported and built (AdderJava, AdderWAR, AdderEJB, AdderEAR)

    • AdderEAR.ear is created as the output result

Important: This is an Example program only. Do not use it to build production applications.

 

Parent topic

Working with Ant