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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to