mirror of https://github.com/apache/archiva.git
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:
parent
4c1626aa04
commit
3c809b432d
|
@ -69,7 +69,18 @@ public class DefaultConfigurationStore
|
||||||
|
|
||||||
if ( file == null )
|
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;
|
FileReader fileReader;
|
||||||
|
|
Loading…
Reference in New Issue