From d23845bbcb9d4ea0c04a734a76e37113bf02bbbd Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 9 Mar 2005 06:52:23 +0000 Subject: [PATCH] fixes git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163506 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/pom-pre-alpha-converter/pom.xml | 12 ++---------- .../java/org/apache/maven/tools/converter/Main.java | 6 ++++++ 2 files changed, 8 insertions(+), 10 deletions(-) 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();