geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r946088 - /geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
Date Wed, 19 May 2010 08:57:05 GMT
Author: xuhaihong
Date: Wed May 19 08:57:04 2010
New Revision: 946088

URL: http://svn.apache.org/viewvc?rev=946088&view=rev
Log:
Create a default ApplicationType if no application.xml is not found

Modified:
    geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java

Modified: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java?rev=946088&r1=946087&r2=946088&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
(original)
+++ geronimo/server/trunk/plugins/j2ee/geronimo-j2ee-builder/src/main/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
Wed May 19 08:57:04 2010
@@ -374,7 +374,9 @@ public class EARConfigBuilder implements
                 throw new DeploymentException("Could not parse application.xml", e);
             } catch (Exception e) {
                 //ee5 spec allows optional application.xml, continue with application ==
null
-                if (!earFile.getName().endsWith(".ear")) {
+                if (earFile.getName().endsWith(".ear")) {
+                    application = ApplicationType.Factory.newInstance();
+                } else {
                     return null;
                 }
                 //TODO return application.xml that we can make metadata complete?



Mime
View raw message