diff --git a/sandbox/pom-pre-alpha-converter/pom.xml b/sandbox/pom-pre-alpha-converter/pom.xml index f888446f5a..7f7f307582 100644 --- a/sandbox/pom-pre-alpha-converter/pom.xml +++ b/sandbox/pom-pre-alpha-converter/pom.xml @@ -1,31 +1,23 @@ - + 4.0.0 maven pom-pre-alpha-converter - jar 1.0 maven maven-model 2.0-SNAPSHOT - jar - compile maven maven-model 4.0.0-pre-alpha1 - jar - compile plexus plexus-utils 1.0-alpha-1 - jar - compile - - \ No newline at end of file + diff --git a/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java b/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java index 575a298727..5f100e1fdd 100755 --- a/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java +++ b/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java @@ -73,6 +73,7 @@ public class Main if ( reverse ) { FileUtils.copyFile( backup, file ); + backup.delete(); } else { @@ -81,6 +82,11 @@ public class Main try { + if ( backup.exists() ) + { + System.err.println( "skipping... backup exists" ); + } + FileReader fileReader = new FileReader( file ); Model model = reader.read( fileReader ); fileReader.close();