axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r330723 - in /webservices/axis2/trunk/java/modules/wsdl: project.xml src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
Date Fri, 04 Nov 2005 06:13:16 GMT
Author: chinthaka
Date: Thu Nov  3 22:13:03 2005
New Revision: 330723

URL: http://svn.apache.org/viewcvs?rev=330723&view=rev
Log:
Fixing the build break caused by NPE.
Excluding a test which is not required to be run now.

Modified:
    webservices/axis2/trunk/java/modules/wsdl/project.xml
    webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java

Modified: webservices/axis2/trunk/java/modules/wsdl/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/project.xml?rev=330723&r1=330722&r2=330723&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/project.xml (original)
+++ webservices/axis2/trunk/java/modules/wsdl/project.xml Thu Nov  3 22:13:03 2005
@@ -111,7 +111,17 @@
     </dependencies>
 	<!-- add the build properties-->
 	<build>
-	<resources>
+
+        <unitTest>
+            <excludes>
+                <exclude>**/*WriterTest.java</exclude>
+                </excludes>
+            <includes>
+                <include>**/*Test.java</include>
+            </includes>
+        </unitTest>
+
+    <resources>
 		<resource>
 			<directory>src</directory>
 			<includes>

Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java?rev=330723&r1=330722&r2=330723&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
(original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
Thu Nov  3 22:13:03 2005
@@ -266,7 +266,12 @@
                             Types t = importedDef.getTypes();
                             List typesList = t.getExtensibilityElements();
                             for (int j = 0; j < typesList.size(); j++) {
-                                wsdl4JDefinition.getTypes().addExtensibilityElement(
+                                Types types = wsdl4JDefinition.getTypes();
+                                if(types == null){
+                                    types = wsdl4JDefinition.createTypes();
+                                    wsdl4JDefinition.setTypes(types);
+                                }
+                                types.addExtensibilityElement(
                                         (ExtensibilityElement)typesList.get(j));
 
                             }



Mime
View raw message