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:
Copy the target from build-impl.xml or suite.xml
to build.xml and make any changes to the target.
To add instructions to be processed before or after an Ant target is run:
Override the -pre or -post target for the target.
For example, to insert an obfuscator after compilation, type the following
in build.xml:
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:
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:
In a , there is no build-impl.xml.
The IDE directly calls targets in the project's Ant script.
For NetBeans Plugin Module projects, build-impl.xml imports targets
from the suite.xml in your target platform's harness folder.
The output folder is deleted every time you
clean your project. You should therefore never set the output folder
to the same location as your source folder without first configuring
the clean target to not delete the output folder.