Reputation: 25
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
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