ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r500777 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java
Date Sun, 28 Jan 2007 10:49:35 GMT
Author: jkf
Date: Sun Jan 28 02:49:35 2007
New Revision: 500777

URL: http://svn.apache.org/viewvc?view=rev&rev=500777
Log:
Made an error yesterday evening in order.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java?view=diff&rev=500777&r1=500776&r2=500777
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DependSet.java Sun Jan 28 02:49:35
2007
@@ -84,9 +84,9 @@
 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 @@
     }
 
     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);
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message