ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: set a property in a .properties file
Date Tue, 19 Dec 2006 10:58:07 GMT

there are a lots of ways to write to a property file in ant.

Look at the following :

<echo file="">

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 <copy/> task with a  
nested filterchain (see explanations about filterchains under  
Concepts and Types).



On Dec 19, 2006, at 5:44 AM, jm wrote:

> 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 'aproperty=@replaceme@'
> thanks,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message