Define Ant execution options
Using the Build File Properties dialog, you can control how IntelliJ IDEA launches the Ant build process. In particular, you can define which version of Ant should be used, add command-line arguments, and specify the SDK to be used for running Ant.
Defining execution options
Open the Ant build file properties dialog.
Select the Execution tab.
In the Run With Ant section, specify whether you want to use project default or custom Ant version. If you want to use a custom Ant version rather than the bundled one, select it from the list, or click the ellipsis button and configure Ant by adding classpaths.
In the Ant command line field, type the command line arguments, using the standard Ant syntax: precede arguments with dashes, and separate with spaces. For the lengthy command lines, click and type the text in the Ant Command Line dialog.
In the Run under JDK field, specify an SDK to be used for the Ant process: select the SDK from the list, or click the ellipsis button and configure an individual SDK.