ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r944020 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java
Date Thu, 13 May 2010 21:23:06 GMT
Author: maartenc
Date: Thu May 13 21:23:04 2010
New Revision: 944020

URL: http://svn.apache.org/viewvc?rev=944020&view=rev
Log:
Fixed bug when overwriteMode was set to 'different' (IVY-1044)

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java?rev=944020&r1=944019&r2=944020&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/retrieve/RetrieveEngine.java Thu May 13
21:23:04 2010
@@ -407,8 +407,8 @@ public class RetrieveEngine {
             return source.lastModified() <= target.lastModified();
         }
         
-        if (RetrieveOptions.OVERWRITEMODE_NEWER.equals(overwriteMode)) {
-            return source.lastModified() != target.lastModified();
+        if (RetrieveOptions.OVERWRITEMODE_DIFFERENT.equals(overwriteMode)) {
+            return source.lastModified() == target.lastModified();
         }
 
         // unknown, so just to be sure



Mime
View raw message