IntelliJ IDEA 2021.3 Help

Build file properties

Use this dialog to configure the behavior of Ant build scripts.

Item

Description

Maximum Heap Size

Use this field to change the amount of memory allocated to the Ant build process. Increase this value if the Ant process runs out of memory.

Maximum Stack Size (MB)

Use this field to change the stack memory size. The default value is 2 MB.

Make build in background

If this option is enabled, build process runs in background. Otherwise, the modal progress dialog is displayed.

Close message view if no error occurred

If this option is enabled, Ant Messages window does not open for the successful builds.

Properties tab

Use this tab to specify the runtime properties that should be passed to the build script. These properties are equivalent to the ones defined after the -D option of the command line. A property is defined as a pair "name-value". The value can be hardcoded, or dynamically evaluated at runtime from a macro.

Add

Use this button to create a new entry in the list of runtime properties.

Remove

Use this button to delete the selected property from the list.

Execution tab

Use this tab to configure how IntelliJ IDEA will launch the build script.

Run with Ant

In this option group you can determine the Ant version to run the selected build.xml.

Use project default Ant

Enable this option to run the default Ant version.

Use custom Ant

Enable this option to run Ant version of your choice. From the combo box, you can select any Ant version that has been configured and registered with IntelliJ IDEA. Use the ellipsis button to modify Ant configuration.

Set Default

Click this button to configure the default Ant.

Ant command line

Use this field to supply command line arguments. You can include any arguments, except -logger. The arguments should be preceded with dashes and separated with spaces.

Run under JDK

Use this field to define JDK to use for running Ant target. By default, you can select the project or module JDK. Use the ellipsis button to configure JDK.

Additional Classpath tab

Use this tab to add libraries and directories that Ant loads at runtime.

Add

Click this button to add a directory of archive to the Classpath.

Add All In Directory

Click this button to add a directory with all its contents to the Classpath.

Move Up/Down

Use these buttons to change the order of classpath entries. The order of entries in the dialog defines the order in which Ant loads the resources.

Remove

Click this button to delete selected entry from the list.

Filters tab

Use this tab to configure which build targets show in the Ant Build tool window, when filtering is applied. The tab displays a list of build targets of the selected build file. The left column displays the names of the build targets, the right column contains optional description of the target. If a target is checked, it will show up in the Ant Build tool window after pressing Icons general filter; otherwise such target will be hidden.

Last modified: 01 August 2022