tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1489151 - /tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java
Date Mon, 03 Jun 2013 20:21:06 GMT
Author: rmannibucau
Date: Mon Jun  3 20:21:06 2013
New Revision: 1489151

URL: http://svn.apache.org/r1489151
Log:
avoiding index exception when deploying a folder

Modified:
    tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java

Modified: tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java?rev=1489151&r1=1489150&r2=1489151&view=diff
==============================================================================
--- tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java
(original)
+++ tomee/tomee/trunk/maven/tomee-maven-plugin/src/main/java/org/apache/openejb/maven/plugin/AbstractTomEEMojo.java
Mon Jun  3 20:21:06 2013
@@ -459,7 +459,7 @@ public abstract class AbstractTomEEMojo 
             out = new File(parent, name);
         }
         delete(out);
-        if (!out.isDirectory()) {
+        if (!warFile.isDirectory() && name.endsWith("." + packaging)) {
             final String dir = name.substring(0, name.lastIndexOf('.'));
             final File unpacked;
             if (war) {



Mime
View raw message