Original Message
From: jm <[EMAIL PROTECTED]>
To: Ant Users List
Sent: Tuesday, December 19, 2006 8:07:05 AM
Subject: Re: set a property in a .properties file
Peter,
thanks for pointing that out, I'll check that if it works that would
be perfect. The 'maybe its easy'
Peter,
thanks for pointing that out, I'll check that if it works that would
be perfect. The 'maybe its easy' comment was moslty thinking aloud
without any prior knowledge obviously...
On 12/19/06, Peter Reilly <[EMAIL PROTECTED]> wrote:
On 12/19/06, jm <[EMAIL PROTECTED]> wrote:
> Antoine,
> ec
On 12/19/06, jm <[EMAIL PROTECTED]> wrote:
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
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
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
Hi,
forgot the replacement in my last mail =
given propertyfile test.props :
foo=bar
Hi,
if you want to reset / overwrite an existing property the easiest way is
via script
task and language of your choice (ruby,javascript,groovy ...) , f.e. =
Hi,
there are a lots of ways to write to a property file in ant.
Look at the following :
somekey=somevalue
there is also the propertyfile task which can do some limited
arithmetics on properties (in the Optional Tasks section of the manual).
there might also be the option of using the t