ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61654] Ant Copy Task Documentation Misleading and Inaccurate
Date Tue, 24 Oct 2017 18:22:45 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61654

--- Comment #3 from Stefan Bodewig <bodewig@apache.org> ---
Hmm,

$ cat x.xml 
<project>
  <mkdir dir="a/example"/>
  <touch file="a/example/file"/>
  <sleep seconds="3"/>
  <mkdir dir="b/example"/>
  <touch file="b/example/file"/>
  <copy todir="a" overwrite="false">
    <fileset dir="b"/>
  </copy>
</project>
$ ant -f x.xml 
Buildfile: /tmp/x.xml
    [mkdir] Created dir: /tmp/a/example
    [touch] Creating /tmp/a/example/file
    [mkdir] Created dir: /tmp/b/example
    [touch] Creating /tmp/b/example/file
     [copy] Copying 1 file to /tmp/a

BUILD SUCCESSFUL
Total time: 3 seconds

If you look at the code, then using overwrite="false" really only sets a
boolean variable that us false anyway. There is no difference between the
default and setting it explicitly.

Could it be anything else that you are seeing like filesystems on different
machines with clocks that differ? Maybe you need to play with the granularity
attribute?

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message