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

           Summary: copy & move task - different behavior
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


I want to move all files which doesn't exists in the destination dir from C:\src
to C:\dest.
Therefor I wrote this ant target:

-----
<target name="test">
        <move todir="C:/dest">
                <fileset dir="C:/src">
                        <include name="*"/>
                </fileset>
                <fileset dir="C:/dest">
                        <exclude name="*"/>
                </fileset>
        </move>
</target>
------

But all files got overwritted.

I tried the same with the copy task.

------
<target name="test">
        <copy todir="C:/dest">
                <fileset dir="C:/src">
                        <include name="*"/>
                </fileset>
                <fileset dir="C:/dest">
                        <exclude name="*"/>
                </fileset>
        </copy>
</target>
-------

Only those files that doesn't allready extist got copied to the destination dir.



I think this two tasks should both whether dont't overwrite the existing file or
not.

Best regards.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to