Indeed, it will certainly be useful.
Thanks a lot.
Patrick
On 9/7/07, Bruce Atherton <[EMAIL PROTECTED]> 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 replacemen
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 bee
>Actually, if you wanted to do it programatically in code and you could
>guarantee that each line had no more than one token, you could probably
>make it work by creating regular expressions. Here is some pseudocode:
>
>for each line in the template file
Problem with special values:
value
007 10:18
An: Ant User
Betreff: extract properties from file and corresponding template
Hello,
I have a file that was generated from a template and a set of
properties using ant filters.
Basically, the template contained tokens like @my.property@ which
where replaced by the corresponding value
>-Ursprüngliche Nachricht-
> >Von: Patrick Martin [mailto:[EMAIL PROTECTED]
> >Gesendet: Donnerstag, 6. September 2007 10:18
> >An: Ant User
> >Betreff: extract properties from file and corresponding template
> >
> >Hello,
> >
> >I have a f
Hi,
-Original Message-
From: Patrick Martin [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 10:18 AM
To: Ant User
Subject: extract properties from file and corresponding template
/*
Hello,
I have a file that was generated from a template and a set of
properties using ant
User
>Betreff: extract properties from file and corresponding template
>
>Hello,
>
>I have a file that was generated from a template and a set of
>properties using ant filters.
>Basically, the template contained tokens like @my.property@ which
>where replaced by the corresponding v
Hello,
I have a file that was generated from a template and a set of
properties using ant filters.
Basically, the template contained tokens like @my.property@ which
where replaced by the corresponding value of ${my.property}.
template + properties >>> file
Now, I'd like to be able to get the set