qwazer
qwazer

Reputation: 7521

ANT global property file in Intellij IDEA?

How to set a global property file so that contain the defined properties are getting resolved during my ANT build in Intelliji IDEA?

In Eclipse I can do this via the "Properties" tab in the "Window/Preferences/Ant/Runtime" config.

How can I set this in Intellij IDEA 9 or 10 ?

Upvotes: 3

Views: 3569

Answers (2)

Darius
Darius

Reputation: 12102

Alternatively you can execute the Ant build script on the command shell (View > Tool Windows > Terminal). The command ant can load specific property files, e.g.: <property file="./resources/build.properties" />.

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 402235

IDEA allows you to specify custom properties for the build script, but not via file:

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 hard-coded, or dynamically evaluated at runtime from a macro.

If you want to use a file, then you need to reference properties file from the build.xml:

Upvotes: 3

Related Questions