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:
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:
To add an Ant project to the Explorer's Project tab:
To compile and run an Ant project from the Filesystems tab:
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 |