From cad717586ffdf0569fc57020c05b1dffb2a93c83 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sat, 9 Sep 2006 15:27:15 +0000 Subject: [PATCH] [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 --- .../maven/archiva/reporting/DefaultReportingStore.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.5