Author: maartenc
Date: Tue Feb 15 13:48:59 2011
New Revision: 1070896

URL: http://svn.apache.org/viewvc?rev=1070896&view=rev
Log:
Bugfix: the old ModuleDescriptor wasn't updated in the 
ModuleDescriptorMemoryCache when a new one was downloaded. This caused the 
module being downloaded everytime it was requested from the cache untill the VM 
stopped.

Modified:
    
ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java

Modified: 
ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java?rev=1070896&r1=1070895&r2=1070896&view=diff
==============================================================================
--- 
ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
 (original)
+++ 
ant/ivy/core/trunk/src/java/org/apache/ivy/core/cache/DefaultRepositoryCacheManager.java
 Tue Feb 15 13:48:59 2011
@@ -874,6 +874,7 @@ public class DefaultRepositoryCacheManag
                 originalFileInCache, 
                 mdFileInCache);
 
+            getMemoryCache().putInCache(mdFileInCache, new 
ParserSettingsMonitor(settings), true, md);
             saveResolvers(md, resolver.getName(), resolver.getName());
             
             if (!md.isDefault()) {


Reply via email to