From: Brett Porter Date: Sat, 9 Sep 2006 15:27:15 +0000 (+0000) Subject: [MRM-166] move reports to .reports in preparation for multiple results X-Git-Tag: archiva-0.9-alpha-1~565 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cad717586ffdf0569fc57020c05b1dffb2a93c83;p=archiva.git [MRM-166] move reports to .reports in preparation for multiple results git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@441797 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportingStore.java b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportingStore.java index 2e10e5550..8a6f61371 100644 --- a/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportingStore.java +++ b/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DefaultReportingStore.java @@ -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