IntelliJ IDEA 14.0.0 Web Help

Creating Ant Build File

This section describes how to create the Ant build file manually.

IntelliJ IDEA provides a framework for editing build files, but it is the developer's responsibility to populate the build file with targets.

To create Ant build file

  1. In the Project window, select the directory, where the build file should be created.
  2. Right-click the directory and choose New | File on the context menu, or press Alt+Insert.
  3. In the New File dialog, specify the name of the new file with .xml extension, for example, build.xml. The new file opens in the editor.
  4. Specify the build targets. You can use the path-like structures in the fileset or dirset directives to define

    You have to enter at least a root tag in the build.xml file. Otherwise the file will not be added to the Ant Build tool window.

  5. Add the build file to the project.

See Also

Concepts:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus