ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin" <antu...@gmail.com>
Subject Re: extract properties from file and corresponding template
Date Mon, 10 Sep 2007 11:39:41 GMT
Indeed, it will certainly be useful.
Thanks a lot.
Patrick

On 9/7/07, Bruce Atherton <bruce@callenish.com> wrote:
> 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
>
>

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


Mime
View raw message