ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32379] New: - Enhance token definition for replacefilterfile in replace task
Date Wed, 24 Nov 2004 12:51:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32379

           Summary: Enhance token definition for replacefilterfile in
                    replace task
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: lewold@jbusters.com


My property file(s) has properties like env.dir.base etc. 
I have various config files which are "master" files, and used to create the 
final config file (based on the contents of the property files). 

In the master file however I don't want to write 
>>>> 
<config basedir="env.dir.base">
<<<< 

Instead I want to be able to make it clearly visible by enclosing the strings 
to be replaced into delimiters. E.g. 
>>>> 
<config basedir="%env.dir.base%">
<<<< 

I could achieve this by writing the property files like: 
%env.dir.base% = /dir/val/used 

.... but .... this is ugly. I don't want property names to contain the 
delimiter characters (%). 

Solution: 
Provide an optional argument "delimiterstring" to be used with 
replacefilterfile. E.g. 

<replace file="e:\\test.txt" 
         replacefilterfile="testSecond.properties"
         delimiterstring="%"/>

And now don't treat each property as token, but instead use %property% as 
token.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message