mirror of https://github.com/apache/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
This commit is contained in:
parent
ffded4338d
commit
cad717586f
|
@ -58,7 +58,7 @@ public class DefaultReportingStore
|
||||||
{
|
{
|
||||||
ReportingXpp3Reader reader = new ReportingXpp3Reader();
|
ReportingXpp3Reader reader = new ReportingXpp3Reader();
|
||||||
|
|
||||||
File file = new File( repository.getBasedir(), "report-database.xml" );
|
File file = getReportFilename( repository, "health" );
|
||||||
|
|
||||||
FileReader fileReader = null;
|
FileReader fileReader = null;
|
||||||
try
|
try
|
||||||
|
@ -96,6 +96,12 @@ public class DefaultReportingStore
|
||||||
return database;
|
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 )
|
public void storeReports( ReportingDatabase database, ArtifactRepository repository )
|
||||||
throws ReportingStoreException
|
throws ReportingStoreException
|
||||||
{
|
{
|
||||||
|
@ -103,7 +109,7 @@ public class DefaultReportingStore
|
||||||
|
|
||||||
ReportingXpp3Writer writer = new ReportingXpp3Writer();
|
ReportingXpp3Writer writer = new ReportingXpp3Writer();
|
||||||
|
|
||||||
File file = new File( repository.getBasedir(), "report-database.xml" );
|
File file = getReportFilename( repository, "health" );
|
||||||
getLogger().info( "Writing reports to " + file );
|
getLogger().info( "Writing reports to " + file );
|
||||||
FileWriter fileWriter = null;
|
FileWriter fileWriter = null;
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue