git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@437111
13f79535-47bb-0310-9956-
ffa450edef68
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;