rename configuration file

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@437111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-08-26 07:30:41 +00:00
parent 4c1626aa04
commit 3c809b432d
1 changed files with 12 additions and 1 deletions

View File

@ -69,7 +69,18 @@ public class DefaultConfigurationStore
if ( file == null )
{
file = new File( System.getProperty( "user.home" ), "/.m2/archiva-manager.xml" );
file = new File( System.getProperty( "user.home" ), "/.m2/archiva.xml" );
// migration for those with the old file
if ( !file.exists() )
{
File file = new File( System.getProperty( "user.home" ), "/.m2/repository-manager.xml" );
if ( file.exists() )
{
getLogger().info( "Migrating " + file + " to " + this.file );
file.renameTo( this.file );
}
}
}
FileReader fileReader;