]> source.dussan.org Git - archiva.git/commitdiff
flush cache at the correct point
authorBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 10:35:39 +0000 (10:35 +0000)
committerBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 10:35:39 +0000 (10:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441777 13f79535-47bb-0310-9956-ffa450edef68

archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java
archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportExecutor.java

index b556e15b59a485480c6acd4550056f462bae18e8..7850ea4551274fb4196a45d918a2bfda1306ed7c 100644 (file)
@@ -189,11 +189,11 @@ public class IndexerTask
                             reportExecutor.runArtifactReports( currentArtifacts, repository );
 
                             index.indexArtifacts( currentArtifacts, recordFactory );
-                        }
 
-                        // MNG-142 - the project builder retains a lot of objects in its inflexible cache. This is a hack
-                        // around that. TODO: remove when it is configurable
-                        flushProjectBuilderCacheHack();
+                            // MNG-142 - the project builder retains a lot of objects in its inflexible cache. This is a hack
+                            // around that. TODO: remove when it is configurable
+                            flushProjectBuilderCacheHack();
+                        }
                     }
 
                     MetadataFilter metadataFilter =
index 08a5e89bf5e81270356fe2fa1a783363891eec56..1d4e18c64e48df60c5dda5b6178aa89898d2e3a2 100644 (file)
@@ -189,11 +189,11 @@ public class DefaultReportExecutor
 
                 // run the reports.
                 runArtifactReports( currentArtifacts, repository );
-            }
 
-            // MNG-142 - the project builder retains a lot of objects in its inflexible cache. This is a hack
-            // around that. TODO: remove when it is configurable
-            flushProjectBuilderCacheHack();
+                // MNG-142 - the project builder retains a lot of objects in its inflexible cache. This is a hack
+                // around that. TODO: remove when it is configurable
+                flushProjectBuilderCacheHack();
+            }
         }
 
         MetadataDiscoverer metadataDiscoverer = (MetadataDiscoverer) metadataDiscoverers.get( layoutProperty );