axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r395249 [1/2] - in /webservices/axis2/trunk/java/modules/integration: maven.xml test-resources/enterprise.wsdl
Date Wed, 19 Apr 2006 14:18:43 GMT
Author: ajith
Date: Wed Apr 19 07:18:39 2006
New Revision: 395249

URL: http://svn.apache.org/viewcvs?rev=395249&view=rev
Log:
Adding enterprise WSDL as a test
I'm unable to write a Junit test case that *compiles* the generated code (code can be generated
without a problem) so I'm adding the generate-compile tasks inside a maven pre-goal.

Added:
    webservices/axis2/trunk/java/modules/integration/test-resources/enterprise.wsdl
Modified:
    webservices/axis2/trunk/java/modules/integration/maven.xml

Modified: webservices/axis2/trunk/java/modules/integration/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/integration/maven.xml?rev=395249&r1=395248&r2=395249&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/maven.xml (original)
+++ webservices/axis2/trunk/java/modules/integration/maven.xml Wed Apr 19 07:18:39 2006
@@ -77,6 +77,39 @@
             <arg line="-src target/xmlbeans-src -d target/classes test-resources/xsd/type-test.xsd"/>
         </java>
 
+	<!-- codegen for the enterprise wsdl -->
+	<ant:echo>Running codegen for Enterprise WSDL - take 1</ant:echo>
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <classpath refid="maven.dependency.classpath"/>
+            <arg line="-d xmlbeans -o target/enterprise-test1 -s -uri test-resources/enterprise.wsdl"/>
+        </java>
+	 <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test1"
+                 target="jar.client"/>
+
+	<ant:echo>Running codegen for Enterprise WSDL - take 2</ant:echo>
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <classpath refid="maven.dependency.classpath"/>
+            <arg line="-o target/enterprise-test2 -s -uri test-resources/enterprise.wsdl"/>
+        </java>
+	 <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test2"
+                 target="jar.client"/>
+
+	
+	<ant:echo>Running codegen for Enterprise WSDL - take 3</ant:echo>
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <classpath refid="maven.dependency.classpath"/>
+            <arg line="-d xmlbeans -ss -sd -g -o target/enterprise-test3 -s -uri test-resources/enterprise.wsdl"/>
+        </java>
+	 <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test3"
+                 target="jar.server"/>
+
+	<ant:echo>Running codegen for Enterprise WSDL - take 4</ant:echo>
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <classpath refid="maven.dependency.classpath"/>
+            <arg line="-ns2p urn:sobject.enterprise.soap.sforce.com,com.salesforce -d
xmlbeans -ss -sd -g -o target/enterprise-test4 -s -uri test-resources/enterprise.wsdl"/>
+        </java>
+	 <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test4"
+                 target="jar.server"/>
     </preGoal>
 
     <postGoal name="test:compile">



Mime
View raw message