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 28614] New: - backslash is removed from filter token value
Date Tue, 27 Apr 2004 07:50:20 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=28614>.
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=28614

backslash is removed from filter token value

           Summary: backslash is removed from filter token value
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: yoichi@melcoe.mq.edu.au


Example, say, the NEW_DIR is C:\a\b\c, and try the follwing

<property name="new.dir" location="${env.NEW_DIR}"/>
<target name="replace">
<copy overwrite="yes" file="my.script" tofile="$temp.script">
<filterset>
<filter token="NEW_DIR" value="${new.dir}"/>
</filterset>
</copy>
</target>

@NEW_DIR@ is replaced but the resulting string is stripped off all backslash 
characters (not substituted by / character, either).  So, the C:\a\b\c becomes 
C:abc.

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


Mime
View raw message