geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r365285 - /geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java
Date Mon, 02 Jan 2006 04:20:40 GMT
Author: djencks
Date: Sun Jan  1 20:19:48 2006
New Revision: 365285

URL: http://svn.apache.org/viewcvs?rev=365285&view=rev
Log:
GERONIMO-1411 fix some servlet schema transformation problems

Modified:
    geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java

Modified: geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java?rev=365285&r1=365284&r2=365285&view=diff
==============================================================================
--- geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java
(original)
+++ geronimo/trunk/modules/j2ee-schema/src/java/org/apache/geronimo/schema/SchemaConversionUtils.java
Sun Jan  1 20:19:48 2006
@@ -295,13 +295,15 @@
                     cursor.pop();
                     do {
                         String name = cursor.getName().getLocalPart();
-                        if ("filter".equals(name) || "servlet".equals(name)) {
+                        if ("filter".equals(name) || "servlet".equals(name) || "context-param".equals(name))
{
                             cursor.push();
                             cursor.toFirstChild();
                             convertToDescriptionGroup(cursor, moveable);
-                            if (cursor.toNextSibling(J2EE_NAMESPACE, "init-param")) {
+                            while (cursor.toNextSibling(J2EE_NAMESPACE, "init-param")) {
+                                cursor.push();
                                 cursor.toFirstChild();
                                 convertToDescriptionGroup(cursor, moveable);
+                                cursor.pop();
                             }
                             cursor.pop();
                         }



Mime
View raw message