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 21724] New: - filterset reference does not play well with antcall
Date Sat, 19 Jul 2003 03:09:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21724>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21724

filterset reference does not play well with antcall

           Summary: filterset reference does not play well with antcall
           Product: Ant
           Version: 1.5.3
          Platform: Sun
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: dalgoda@ix.netcom.com


Set up a filterset with a reference and multiple character tokens.

Use said filterset inside an antcall.  Does not work correctly.

mcastle@dl-mcastle[08:01pm]download/apache-ant-1.5.3-1/test(1027) cat build.xml
<project name="test" default="copytest" basedir=".">

<target name="copytest2">
   <copy file="copytest.in" toFile="copytest1.out" overwrite="true">
      <filterset refid="foo"/>
   </copy>
</target>

<target name="copytest">
   <echo file="copytest.in">@@foo@@</echo>
   <filterset id="foo" begintoken="@@" endtoken="@@">
      <filter token="foo" value="bar"/>
   </filterset>
   <antcall target="copytest2" inheritrefs="true"/>
   <copy file="copytest.in" toFile="copytest2.out" overwrite="true">
      <filterset refid="foo"/>
   </copy>
</target>

</project>
mcastle@dl-mcastle[08:02pm]download/apache-ant-1.5.3-1/test(1028) ant
Buildfile: build.xml

copytest:

copytest2:
     [copy] Copying 1 file to /opt/download/apache-ant-1.5.3-1/test
     [copy] Copying 1 file to /opt/download/apache-ant-1.5.3-1/test

BUILD SUCCESSFUL
Total time: 3 seconds
mcastle@dl-mcastle[08:02pm]download/apache-ant-1.5.3-1/test(1029) grep bar *out
copytest1.out:@bar@
copytest2.out:bar


Both should be plain `bar' without the @

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


Mime
View raw message