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 40875] New: - copy & move task - different behavior
Date Thu, 02 Nov 2006 15:47:10 GMT
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: meinDummy@googlemail.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message