diff --git a/manual/Tasks/copy.html b/manual/Tasks/copy.html index 48f07d938..29a459ebb 100644 --- a/manual/Tasks/copy.html +++ b/manual/Tasks/copy.html @@ -28,7 +28,8 @@
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 overwrite files with the overwrite attribute.
+exist - please see the granularity attribute for Ant's idea of newer. +However, you can explicitly overwrite files with theoverwrite
attribute.
Resource collections are used to select a group of files to copy. To use a resource collection, the todir attribute must be diff --git a/manual/Tasks/move.html b/manual/Tasks/move.html index d9baefe03..5ea337acd 100644 --- a/manual/Tasks/move.html +++ b/manual/Tasks/move.html @@ -29,7 +29,8 @@
Moves a file to a new file or directory, or collections of files to a new directory. By default, the destination file is overwritten if it already exists. When overwrite is turned off, then files are only moved if the source file is newer than the destination file, or when the -destination file does not exist.
+destination file does not exist +- please see the granularity attribute for Ant's idea of newer.Resource collections are used to select a group of files to move. Only file system based resource collections are supported, this 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 a797dc578..a6af9bcd8 100644 --- a/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java +++ b/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java @@ -573,7 +573,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 */ @@ -592,7 +592,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 */ @@ -611,7 +611,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 */