Browse Source

little clarification in the code

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270092 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
323d7b6161
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/util/SourceFileScanner.java

+ 3
- 0
src/main/org/apache/tools/ant/util/SourceFileScanner.java View File

@@ -106,6 +106,9 @@ public class SourceFileScanner {
If we're on Windows, we have to munge the time up to 2 secs to If we're on Windows, we have to munge the time up to 2 secs to
be able to check file modification times. be able to check file modification times.
(Windows has a max resolution of two secs for modification times) (Windows has a max resolution of two secs for modification times)
Actually this is a feature of the FAT file system, NTFS does
not have it, so if we could reliably passively test for an NTFS
file systems we could turn this off...
*/ */
if (Os.isFamily("windows")) { if (Os.isFamily("windows")) {
now += 2000; now += 2000;


Loading…
Cancel
Save