deep2111
deep2111

Reputation: 25

Create Property file inside build.xml

I want to create a .properties file dynamically, and code for the same should be inside build.xml with some values and want to placed it in some directory.

Please Help

Upvotes: 0

Views: 1566

Answers (1)

Lolo
Lolo

Reputation: 4347

You should use the PropertyFile Ant task, for instance:

<propertyfile file="my.properties">
  <entry key="prop.1" value="value 1"/>
  <entry key="prop.2" value="value 2"/>
</propertyfile>

Upvotes: 5

Related Questions