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=22361>.
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=22361

Copy with glob mapper maps AND copies originals





------- Additional Comments From [EMAIL PROTECTED]  2003-08-14 15:33 -------
WORKSFORME

> cat /tmp/glob.xml
<project default="a">
  <target name="a">
    <delete dir="a"/>
    <mkdir dir="a"/>
    <copy todir="a">
      <fileset dir=".">
        <include name="*.xml"/>
      </fileset>
      <mapper type="glob" from="*" to="Q_*"/>
    </copy>
  </target>
</project>

> ant -v -f /tmp/glob.xml
Apache Ant version 1.5.4 compiled on August 14 2003
a:
Created dir: /tmp/a
history.xml added as Q_history.xml doesn't exist.
comp.xml added as Q_comp.xml doesn't exist.
foo.xml added as Q_foo.xml doesn't exist.
glob.xml added as Q_glob.xml doesn't exist.
Copying 4 files to /tmp/a
Copying /tmp/glob.xml to /tmp/a/Q_glob.xml
Copying /tmp/history.xml to /tmp/a/Q_history.xml
Copying /tmp/foo.xml to /tmp/a/Q_foo.xml
Copying /tmp/comp.xml to /tmp/a/Q_comp.xml

BUILD SUCCESSFUL
Total time: 2 seconds
> ls /tmp/a
Q_comp.xml  Q_foo.xml  Q_glob.xml  Q_history.xml

so no originals have been copied.

Maybe there is some other <copy> task that is doing it?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to