[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
This commit is contained in:
Brett Porter 2006-09-09 15:27:15 +00:00
parent ffded4338d
commit cad717586f
1 changed files with 8 additions and 2 deletions

View 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