Author: veithen
Date: Wed Aug 10 20:13:58 2011
New Revision: 1156346

URL: http://svn.apache.org/viewvc?rev=1156346&view=rev
Log:
SYNAPSE-789: Applied patch provided by Auke Schrijnen.

Modified:
    
synapse/trunk/java/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/AbstractXarMojo.java

Modified: 
synapse/trunk/java/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/AbstractXarMojo.java
URL: 
http://svn.apache.org/viewvc/synapse/trunk/java/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/AbstractXarMojo.java?rev=1156346&r1=1156345&r2=1156346&view=diff
==============================================================================
--- 
synapse/trunk/java/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/AbstractXarMojo.java
 (original)
+++ 
synapse/trunk/java/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/AbstractXarMojo.java
 Wed Aug 10 20:13:58 2011
@@ -230,7 +230,7 @@ public abstract class AbstractXarMojo ex
         Log log = getLog();
         File tmpServicesDir = new File(new File(tmpDirectory, "META-INF"), 
"services");
         File buildServicesDir = new File(new File(buildOutputDirectory, 
"META-INF"), "services");
-        if (!tmpServicesDir.mkdirs()) {
+        if (!tmpServicesDir.exists() && !tmpServicesDir.mkdirs()) {
             throw new MojoExecutionException("Error while creating the 
directory: " +
                     tmpServicesDir.getPath());
         }


Reply via email to