directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1021776 - in /directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins: AbstractStudioMojo.java StudioCleanMojo.java
Date Tue, 12 Oct 2010 13:56:27 GMT
Author: seelmann
Date: Tue Oct 12 13:56:26 2010
New Revision: 1021776

URL: http://svn.apache.org/viewvc?rev=1021776&view=rev
Log:
Fixed conditions

Modified:
    directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
    directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/StudioCleanMojo.java

Modified: directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
URL: http://svn.apache.org/viewvc/directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java?rev=1021776&r1=1021775&r2=1021776&view=diff
==============================================================================
--- directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
(original)
+++ directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
Tue Oct 12 13:56:26 2010
@@ -180,7 +180,7 @@ public abstract class AbstractStudioMojo
         try
         {
             getLog().info( "Unpacking " + file + " to\n                 " + location );
-            if ( !location.mkdirs() )
+            if ( !location.exists() && !location.mkdirs() )
             {
                 throw new IOException( "Failed to create directory " + location );
             }

Modified: directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/StudioCleanMojo.java
URL: http://svn.apache.org/viewvc/directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/StudioCleanMojo.java?rev=1021776&r1=1021775&r2=1021776&view=diff
==============================================================================
--- directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/StudioCleanMojo.java
(original)
+++ directory/studio-plugin/trunk/src/main/java/org/apache/directory/studio/maven/plugins/StudioCleanMojo.java
Tue Oct 12 13:56:26 2010
@@ -62,7 +62,7 @@ public class StudioCleanMojo extends Abs
         {
             File file = new File( project.getBasedir(), MAVEN_ECLIPSE_XML );
             getLog().info( "Deleting " + file );
-            if ( !file.delete() )
+            if ( file.exists() && !file.delete() )
             {
                 throw new IOException( "Failed to delete file " + file );
             }



Mime
View raw message