Browse Source

don't say a file was modified in the future if it has been modified a second ago. PR 43665. Submitted by Kim Hansen.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@722942 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
b85b78ce08
4 changed files with 13 additions and 0 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +5
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/DependSet.java

+ 1
- 0
CONTRIBUTORS View File

@@ -159,6 +159,7 @@ Kevin Greiner
Kevin Jackson
Kevin Ross
Kevin Z Grey
Kim Hansen
Kirk Wylie
Kyle Adams
Larry Shatzer


+ 5
- 0
WHATSNEW View File

@@ -300,6 +300,11 @@ Fixed bugs:
using TraX) before falling back to Ant's own classpath.
Bugzilla Report 46172.

* <dependset> complained about files being modified in the future if
they had been just very recently (within Ant's assumed granularity
of the file system).
Bugzilla Report 43665.

Other changes:
--------------



+ 4
- 0
contributors.xml View File

@@ -667,6 +667,10 @@
<middle>Z</middle>
<last>Grey</last>
</name>
<name>
<first>Kim</first>
<last>Hansen</last>
</name>
<name>
<first>Kirk</first>
<last>Wylie</last>


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/DependSet.java View File

@@ -197,6 +197,9 @@ public class DependSet extends MatchingTask {
= new org.apache.tools.ant.types.resources.selectors.Date();
datesel.setMillis(System.currentTimeMillis());
datesel.setWhen(TimeComparison.AFTER);
// don't whine because a file has changed during the last
// second (or whathever our current granularity may be)
datesel.setGranularity(0);
logFuture(targets, datesel);

int neTargets = new NonExistent(targets).size();


Loading…
Cancel
Save