Ant Script Compilation

Ant Script Compilation is a special compiler type that you can assign to Ant build scripts. The default compiler setting for Ant build scripts is (do not compile), since scripts do not need to be compiled. Therefore, when the IDE runs accross an Ant script while compiling files, it normally ignores it.

If, however, you need to compile a project partly with an Ant script and partly with the IDE's native compilation, you can add the Ant script to your project and set its compiler setting to Ant Script Compilation. When you compile the project, the IDE runs the build script and compiles the rest of the files according to the project settings.

tip Ant Script Compilation is for use with Ant scripts only. You should never set source files to use Ant Script Compilation. If you want to set an Ant script as a source file's default compiler method, use Indirect Ant Compilation.

To view or change the properties of Ant Script Compilation, open the Options window, expand Building and expand Compiler Types and select Ant Script Compilation. When you change the value of a property, your change affects all classes that use Ant Script Compilation.

You can set the following properties for Ant Script Execution:

See also
External Compiler
Internal Compiler
Jikes Compiler
Indirect Ant Compilation
Compiling Projects With Ant

Legal Notices