Antoine, echoing would add a second line with the property no?, and I want the exisiting line to be modified...propertyFile would do, I had missed that one, it's a pity comments are lost though...
Gilbert , yes I think that would work, but I have never used any of these scripting languages. does anybody know where the souce code for propertyFile is? maybe its easy to make it keep the comments... thanks both, javi On 12/19/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote:
Oops, should have been = test.props afterwards : foo=nobar Regards, Gilbert -----Original Message----- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a property in a .properties file hi, I have been looking for a way to set a property in a .properties file via ant. Could not find any easy way...somebody knows a way to do it or a external task or something? I know about the <replace> stuff, but I am trying to change the property without knowing the value it had before, that is, I cannot assume it is '[EMAIL PROTECTED]@' thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]