]> source.dussan.org Git - archiva.git/commitdiff
[MRM-166] move reports to .reports in preparation for multiple results
authorBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 15:27:15 +0000 (15:27 +0000)
committerBrett Porter <brett@apache.org>
Sat, 9 Sep 2006 15:27:15 +0000 (15:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441797 13f79535-47bb-0310-9956-ffa450edef68

archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportingStore.java

index 2e10e5550c41b0187a1e450fbea5facc9a8b0309..8a6f6137152baeb5a34cdc1a93f6f1c26b30fb21 100644 (file)
@@ -58,7 +58,7 @@ public class DefaultReportingStore
         {
             ReportingXpp3Reader reader = new ReportingXpp3Reader();
 
-            File file = new File( repository.getBasedir(), "report-database.xml" );
+            File file = getReportFilename( repository, "health" );
 
             FileReader fileReader = null;
             try
@@ -96,6 +96,12 @@ public class DefaultReportingStore
         return database;
     }
 
+    private static File getReportFilename( ArtifactRepository repository, String s )
+    {
+        File file = new File( repository.getBasedir(), ".reports/" + s + ".xml" );
+        return file;
+    }
+
     public void storeReports( ReportingDatabase database, ArtifactRepository repository )
         throws ReportingStoreException
     {
@@ -103,7 +109,7 @@ public class DefaultReportingStore
 
         ReportingXpp3Writer writer = new ReportingXpp3Writer();
 
-        File file = new File( repository.getBasedir(), "report-database.xml" );
+        File file = getReportFilename( repository, "health" );
         getLogger().info( "Writing reports to " + file );
         FileWriter fileWriter = null;
         try