maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject cvs commit: maven-components/maven-mboot2/src/main/java MBoot.java
Date Thu, 26 Aug 2004 11:33:41 GMT
evenisse    2004/08/26 04:33:41

  Modified:    maven-mboot2/src/main/java MBoot.java
  Log:
  Test if buildDir exists before call forceDelete
  
  Revision  Changes    Path
  1.18      +4 -1      maven-components/maven-mboot2/src/main/java/MBoot.java
  
  Index: MBoot.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-mboot2/src/main/java/MBoot.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- MBoot.java	21 Aug 2004 00:14:25 -0000	1.17
  +++ MBoot.java	26 Aug 2004 11:33:41 -0000	1.18
  @@ -402,7 +402,10 @@
   
           // clean
           System.out.println( "Cleaning " + buildDirFile + "..." );
  -        FileUtils.forceDelete( buildDirFile );
  +        if ( buildDirFile.exists() )
  +        {
  +            FileUtils.forceDelete( buildDirFile );
  +        }
   
           // ----------------------------------------------------------------------
           // Download deps
  
  
  

Mime
View raw message