geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: rev 47232 - geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment
Date Sun, 26 Sep 2004 01:54:51 GMT
Author: jboynes
Date: Sat Sep 25 18:54:50 2004
New Revision: 47232

Modified:
   geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
Log:
More type/document problems

Modified: geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
==============================================================================
--- geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
(original)
+++ geronimo/trunk/modules/j2ee/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
Sat Sep 25 18:54:50 2004
@@ -287,9 +287,8 @@
             }
 
             // add dependencies declared in the geronimo-application.xml
-            if (plan instanceof GerApplicationDocument) {
-                GerApplicationDocument applicationDoc = (GerApplicationDocument) plan;
-                GerApplicationType geronimoApplication = applicationDoc.getApplication();
+            if (plan instanceof GerApplicationType) {
+                GerApplicationType geronimoApplication = (GerApplicationType) plan;
                 GerDependencyType[] dependencies = geronimoApplication.getDependencyArray();
                 for (int i = 0; i < dependencies.length; i++) {
                     earContext.addDependency(getDependencyURI(dependencies[i]));
@@ -310,9 +309,8 @@
             }
 
             // add gbeans declared in the geronimo-application.xml
-            if (plan instanceof GerApplicationDocument) {
-                GerApplicationDocument applicationDoc = (GerApplicationDocument) plan;
-                GerApplicationType geronimoApplication = applicationDoc.getApplication();
+            if (plan instanceof GerApplicationType) {
+                GerApplicationType geronimoApplication = (GerApplicationType) plan;
                 GerGbeanType[] gbeans = geronimoApplication.getGbeanArray();
                 for (int i = 0; i < gbeans.length; i++) {
                     GBeanHelper.addGbean(new GerGBeanAdapter(gbeans[i]), cl, earContext);

Mime
View raw message