ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@SANDVINE.com>
Subject RE: MergeProperties Task
Date Mon, 03 Feb 2003 19:10:38 GMT
The problem is that we have configuration files that we ship to our
end-customer, and we add ALOT of documentation via comments to allow the
user to understand what is going on. To append the new over-ride property to
the end, would have rendered the comments useless. That is why I built the
task, so that it would preserve user comments, and update the value
in-place. It is essentially a mixture between the replace and the concat
tasks.
Also, the merge task would copy user comments from the delta file to the
final configuration file provided the property did not exist.



-----Original Message-----
From: David Clements [mailto:dclements@merc-int.com]
Sent: Friday, January 31, 2003 5:23 PM
To: 'Ant Users List'
Subject: RE: MergeProperties Task


I wonder if you did a <concat> if you would get the effect that you want.

Final.properties would then equal

b=4
c=9
a=1
b=2

When read in, I am guessing,  b=4 would overidw b=2.

Dave

Mime
View raw message