IntelliJ IDEA 2020.2 Help

Add Build file to project

A build file should be added to a project to enable running the build, filtering targets, or defining properties. One project can have several build files. The build files are grouped in the Ant tool window by names, specified in the root element of each build file, for example <project name="acme">.

When a build file is generated, it is automatically added to the project. If you create a build file manually, or reuse an existing one, you might need to add it to the Ant build tool window.

  1. In the Project tool window, right-click the generated build file and select Add as Ant Build File to open it in the Ant tool window.

  2. In the Ant Build tool window, click the Add button.

  3. In the Select Path dialog, navigate to the desired build.xml file, and click OK.

    A build file should have at least a root element to be added to the Ant Build tool window.

Last modified: 19 August 2020