From: Brett Porter Date: Sat, 9 Sep 2006 10:35:39 +0000 (+0000) Subject: flush cache at the correct point X-Git-Tag: archiva-0.9-alpha-1~571 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5e188c60415f4a7399a0b379ee339de2de7e94f3;p=archiva.git flush cache at the correct point git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441777 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java index b556e15b5..7850ea455 100644 --- a/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java +++ b/archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java @@ -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 = diff --git a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportExecutor.java b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportExecutor.java index 08a5e89bf..1d4e18c64 100644 --- a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportExecutor.java +++ b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportExecutor.java @@ -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 );