Browse Source

Made an error yesterday evening in order.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@500777 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 18 years ago
parent
commit
b07c2855a8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/DependSet.java

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

@@ -84,9 +84,9 @@ import org.apache.tools.ant.types.resources.comparators.ResourceComparator;
public class DependSet extends MatchingTask {

private static final ResourceSelector NOT_EXISTS = new Not(new Exists());
private static final ResourceComparator DATE_ASC
private static final ResourceComparator DATE
= new org.apache.tools.ant.types.resources.comparators.Date();
private static final ResourceComparator DATE_DESC = new Reverse(DATE_ASC);
private static final ResourceComparator REVERSE_DATE = new Reverse(DATE);

private static class NonExistent extends Restrict {
private NonExistent(ResourceCollection rc) {
@@ -246,11 +246,11 @@ public class DependSet extends MatchingTask {
}

private Resource getOldest(ResourceCollection rc) {
return getXest(rc, DATE_ASC);
return getXest(rc, REVERSE_DATE);
}

private Resource getNewest(ResourceCollection rc) {
return getXest(rc, DATE_DESC);
return getXest(rc, DATE);
}

}

Loading…
Cancel
Save