maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter Main.java
Date Wed, 09 Mar 2005 06:53:46 GMT
brett       2005/03/08 22:53:46

  Modified:    sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter
                        Main.java
  Log:
  more fixes
  
  Revision  Changes    Path
  1.3       +7 -1      maven-components/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/maven-components/sandbox/pom-pre-alpha-converter/src/main/java/org/apache/maven/tools/converter/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java	9 Mar 2005 06:52:23 -0000	1.2
  +++ Main.java	9 Mar 2005 06:53:46 -0000	1.3
  @@ -72,6 +72,11 @@
   
               if ( reverse )
               {
  +                if ( !backup.exists() )
  +                {
  +                    System.err.println( "skipping... backup exists" );
  +                    continue;
  +                }
                   FileUtils.copyFile( backup, file );
                   backup.delete();
               }
  @@ -85,6 +90,7 @@
                       if ( backup.exists() )
                       {
                           System.err.println( "skipping... backup exists" );
  +                        continue;
                       }
   
                       FileReader fileReader = new FileReader( file );
  
  
  

Mime
View raw message