IntelliJ IDEA 2021.1 Help

Ant properties files

Ant properties files let you move properties out of your build.xml file.

You create .properties file for all the properties that are defined outside the build file. For example, properties that you define in build settings. IntelliJ IDEA keeps those properties in one place and you don't need to edit the generated build file.

IntelliJ IDEA generates .properties file automatically if you generate the Ant build file. If you create build.xml manually then to use a .properties file in your Ant build.xml file do the following:

  • Include a property in your build.xml file with the name of the properties file specified by the file attribute. For example, <property file="build.properties"/>.

Last modified: 08 March 2021