From 033f8dc250b23a66dc3e70612607e1f0752c792d Mon Sep 17 00:00:00 2001
From: Stefan Bodewig Copies a file or resource collection to a new file or directory. By default, files are
only copied if the source file is newer than the destination file,
-or when the destination file does not exist. However, you can explicitly
+or when the destination file does not exist - please see
+the Description
granularity
attribute for Ant's idea
+of newer.
+However, you can explicitly
overwrite files with the overwrite
attribute.granularity
attribute for Ant's idea
+of newer.
Resource Collections are used to select a group of files to move. Only diff --git a/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java b/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java index a2804c2ee..9b3749020 100644 --- a/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java +++ b/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java @@ -595,7 +595,7 @@ public final class SelectorUtils { * * @param src the original file * @param target the file being compared against - * @param granularity the amount in seconds of slack we will give in + * @param granularity the amount in milliseconds of slack we will give in * determining out of dateness * @return whether the target is out of date */ @@ -622,7 +622,7 @@ public final class SelectorUtils { * * @param src the original resource * @param target the resource being compared against - * @param granularity the int amount in seconds of slack we will give in + * @param granularity the int amount in milliseconds of slack we will give in * determining out of dateness * @return whether the target is out of date */ @@ -641,7 +641,7 @@ public final class SelectorUtils { * * @param src the original resource * @param target the resource being compared against - * @param granularity the long amount in seconds of slack we will give in + * @param granularity the long amount in milliseconds of slack we will give in * determining out of dateness * @return whether the target is out of date */