Customizing the IDE-Generated Ant Script

See Also 

You can edit the Ant scripts generated for  to fine tune the way your project is built and run. See About IDE-Generated Ant Scripts for a description of standard project Ant scripts and properties files.

To override a target from an IDE-generated build script:

Note:

To add instructions to be processed before or after an Ant target is run:

To add a new target to the build script:

  1. Create the new target in build.xml.
  2. Optionally, add the new target to the dependencies of any of the IDE's existing targets. Override the existing target in build.xml then add the new target to the existing target's depends property.

    For example, the following adds the new-target target to the run target's dependencies:

    <target name="run" depends="new-target,init,compile"/>
    Copy the dependencies exactly as they exist in build-impl.xml or suite.xml. Notice that you do not need to copy the body of the run target into build.xml.

Notes:

See Also
About Standard Projects
Editing an Ant Script
Running an Ant Script
Setting the Main Class and Runtime Arguments
Setting JVM Arguments

Legal Notices