To compile your sources with Ant instead of the IDE's built-in compilation support, simply execute all or any part of your Ant script. You can apply a special compiler type, Indirect Ant Compilation, to arbitrary files so that the files are built with Ant whenever you choose the Compile command or press F9.
To compile with Ant:
If necessary, set specific targets to run when performing an incremental compilation, building from scratch, and cleaning. These targets are run by all files that use Indirect Ant Compilation.
![]() |
Changes to the script and targets run by Indirect Ant Compilation are applied to all files that use Indirect Ant Compilation. If you want to limit these changes to a single project, go to the Options window and define the Indirect Ant Compilation settings at the project level. Another option is to create a customized copy of the Indirect Ant Compilation compiler and configure certain files to use this custom compiler method. The compiler settings you configure for your customized compiler method would not affect other files that use Indirect Ant Compilation. |
See also | |
---|---|
Running Ant Scripts Editing Ant Scripts Configuring Ant Settings Creating Custom Ant Tasks |