ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: extract properties from file and corresponding template
Date Thu, 06 Sep 2007 08:42:17 GMT

-----Original Message-----
From: Patrick Martin [] 
Sent: Thursday, September 06, 2007 10:18 AM
To: Ant User
Subject: extract properties from file and corresponding template


I have a file that was generated from a template and a set of
properties using ant filters.
Basically, the template contained tokens like which
where replaced by the corresponding value of ${}.
template + properties >>> file

Now, I'd like to be able to get the set of properties back from this
file and the corresponding template.
file + template >>> properties

Is there any task out there that already exists for that?

If you just want to dump extisting properties

 to file
<echoproperties prefix="..." file="..."> ....

or getting logged  to stdout =
<echoproperties prefix="..."/>

Therefore it would be good, if your properties were prefixed
to catch them with echoproperties.

or <echo>...  | <echo file="...">... for sinlge properties.

Regards, Gilbert

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

View raw message