ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Atherton <br...@callenish.com>
Subject Re: extract properties from file and corresponding template
Date Fri, 07 Sep 2007 18:15:43 GMT
True, if your properties file has embedded ant properties that you 
expect to be replaced, what you will get back when you regenerate the 
file is not the property but the replacement value. This is still useful 
as a properties file, though, just not as maintainable as the original 
would have been. There are other changes from the original, too. Blank 
lines would be stripped, as would comments.

And as you point out with your specific example below, since the 
algorithm is line based, if you put embedded lines in any of your 
property values the whole thing falls apart. That would be true with 
${line.separator} as well as with continuation lines.

The solution still may be useful to Patrick, though, if he doesn't have 
embedded lines and doesn't need an exact copy of the original.

Jan.Materne@rzf.fin-nrw.de wrote:
>
> Problem with special values:
>   value=is a ${line.separator} sample
>
>
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message