Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modifying java properties file.

Status
Not open for further replies.

caesarkim

Programmer
Oct 30, 2003
56
US
I am not sure which task I have to use to modify java properties file.

Here is my case.

I have a propeties file, demo.properties. I want to change the value dynamically at runtime.

for example.

port=8809.

then I want to change it to 8810 other port and save it to the same properties file, demo.properties. It's because I don't want to change it manually.

can somebody tell me how to do it with ANT?


Thanks.
 
Ermmm, have you tried the 'PropertyFile' task? You don't say which version of Ant you're using, but this is available in 1.6.5

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top