Compiling Ant Scripts

Ant scripts compile a program before running it. Since the IDE does the same (the default value of the Run Compile property for Execution Settings is True), it would be redundant to run targets twice. Therefore, the default setting for the Compiler property for Ant scripts is (do not compile). However, you can modify the IDE settings to compile Ant scripts when needed.

To compile Ant scripts:

  1. Choose Tools Options.
  2. Click on Execution Settings and change the value of the Run Compile property to False.

If your Ant script is in the Explorer's project tab in the Explorer, you can compile and run the project.

To compile and run an Ant project:

  1. In the Explorer's Project tab, select the project.
  2. Choose Project Compile Project to run your script.

To add an Ant project to the Explorer's Project tab:

  1. In the Explorer's Filesystem tab, select the Ant project.
  2. Choose Tools Add To Project.

To compile and run an Ant project from the Filesystems tab:

  1. In the Explorer's Filesystem tab, right-click the project.
  2. Choose Compile.

If you Ant script is in a folder, selecting Compile on that folder compilies the contents of the folder according to the IDE's settings). You can configure the targets as you would for execution types. There are separate targets for compile (default incremental compilation), build (from scratch), and clean (remove all build products leaving only source).

See also
Running Ant Scripts
Compiling Files With Ant
Editing Ant Scripts

Legal Notices