You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/11 03:34:20 UTC
DO NOT REPLY [Bug 30578] New: -
FilterSet tokens begintoken endtoken @@
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=30578>.
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=30578
FilterSet tokens begintoken endtoken @@
Summary: FilterSet tokens begintoken endtoken @@
Product: Ant
Version: 1.6.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: warren@opencloud.co.nz
the filter seems to be ignoring tokens '@@'
eg.
>cat file.in
hello my name is @@NAME@@
<?xml version="1.0"?>
<project>
<target name="all">
<copy file="file.in" tofile="file.out.other">
<filterset begintoken="@" endtoken="@">
<filter token="NAME" value="warren"/>
</filterset>
</copy>
<donothing name="wozza"/>
</target>
<macrodef name="donothing">
<attribute name="name"/>
<sequential>
<copy file="file.in" tofile="file.out" overwrite="yes">
<filterset begintoken="@" endtoken="@">
<filter token="NAME" value="@{name}"/>
</filterset>
</copy>
</sequential>
</macrodef>
</project>
~
>cat file.out ;cat file.out.other
hello my name is @wozza@
hello my name is @warren@
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org