Saturday, May 15, 2010

15149 Full content

In the manual page about replace task, it mentioned we can use a property file


to store token/value pairs.

---------

replacefilterfile: valid property file. Each property will be treated as a

replacefilter where token is the name of the property and value is the

properties value.

---------



There's room to improve this feature: we can add one more option to override

property values defined in this file. This file just house default values, the

customized values will be stored in USER_HOME/.ant.properties or elsewhere, so

that in a team project, developers don't have to adjust values in the

replacefilterfile.



I would be very interested in this feature because after first read I thought I

can use the replace task this way and later found it can not be done in the

current 1.5.1 release.



Thanks.

No comments:

Post a Comment