mirror of https://github.com/apache/maven.git
more fixes
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d23845bbcb
commit
262e7085a5
|
@ -72,6 +72,11 @@ public class Main
|
||||||
|
|
||||||
if ( reverse )
|
if ( reverse )
|
||||||
{
|
{
|
||||||
|
if ( !backup.exists() )
|
||||||
|
{
|
||||||
|
System.err.println( "skipping... backup exists" );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
FileUtils.copyFile( backup, file );
|
FileUtils.copyFile( backup, file );
|
||||||
backup.delete();
|
backup.delete();
|
||||||
}
|
}
|
||||||
|
@ -85,6 +90,7 @@ public class Main
|
||||||
if ( backup.exists() )
|
if ( backup.exists() )
|
||||||
{
|
{
|
||||||
System.err.println( "skipping... backup exists" );
|
System.err.println( "skipping... backup exists" );
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileReader fileReader = new FileReader( file );
|
FileReader fileReader = new FileReader( file );
|
||||||
|
|
Loading…
Reference in New Issue