blob: 9d9b3b17562178e8bd150b524a3a1ea9fe8e7377 [file]
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
<project default="jar"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:maven="jelly:maven"
xmlns:deploy="deploy"
xmlns:ant="jelly:ant">
<j:set var="samples.dir" value="target/samples"/>
<postGoal name="itest:compile">
<mkdir dir="target/itest-classes/modules"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/itest-classes/modules/addressing-${addressing_version}.mar"/>
</postGoal>
<preGoal name="test:compile">
<!-- Set a property that can be picked up from the ant build.xml's -->
<ant:property name="maven.class.path" refid="maven.dependency.classpath"/>
<!-- copy the mars so that they are available on the test classpath -->
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-classes/modules/addressing-${addressing_version}.mar"/>
<j:set var="axis2.home" value="${basedir}/target"/>
<!-- compiling some custom wsdl files -->
<j:set var="wsdl.source.dir" value="test-resources/wsdl"/>
<j:set var="wsdl.output.base.dir" value="target/wsdl"/>
<!-- make the dirs -->
<mkdir dir="${wsdl.output.base.dir}"/>
<ant:echo>Compiling DocumentUnwrappingTest.wsdl </ant:echo>
<mkdir dir="${wsdl.output.base.dir}/documentunwrapping"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<jvmarg line="${maven.junit.jvmargs}"/>
<classpath refid="maven.dependency.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-o target/wsdl/documentunwrapping -ss -sd -ssi -u -g -uw -uri test-resources/wsdl/DocumentUnwrappingTest.wsdl"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/wsdl/documentunwrapping"/>
<ant:echo>Compiling RPCUnwrappingTest.wsdl </ant:echo>
<mkdir dir="${wsdl.output.base.dir}/rpcunwrapping"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<jvmarg line="${maven.junit.jvmargs}"/>
<classpath refid="maven.dependency.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-o target/wsdl/rpcunwrapping -ss -sd -ssi -u -g -uw -uri test-resources/wsdl/RPCUnwrappingTest.wsdl"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/wsdl/rpcunwrapping"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-d xmlbeans -p samples.wsdl.perf -o target/perf -s -t -ss -sd -g -uri test/samples/wsdl/perf/perf.wsdl"/>
</java>
<ant:copy overwrite="yes" todir="target/perf/src/samples/wsdl/perf">
<ant:fileset dir="test/samples/wsdl/perf">
<ant:include name="*Skeleton.java"/>
</ant:fileset>
</ant:copy>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/perf"
target="make.repo"/>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/perf"
target="jar.client"/>
<ant:move file="target/perf/build/lib/Services-test-client.jar"
tofile="target/perf/build/lib/PerfSoapService-test-client.jar" />
<ant:move file="target/perf/build/lib/Services.aar"
tofile="target/perf/build/lib/PerfSoapService.aar" />
<ant:path id="samples.wsdl.perf.client.jar"
location="target/perf/build/lib/PerfSoapService-test-client.jar"/>
<maven:addPath id="maven.dependency.classpath" refid="samples.wsdl.perf.client.jar"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-d adb -p samples.wsdl.perf2 -o target/perf2 -s -t -ss -sd -g -uri test/samples/wsdl/perf2/perf.wsdl"/>
</java>
<ant:copy overwrite="yes" todir="target/perf2/src/samples/wsdl/perf2">
<ant:fileset dir="test/samples/wsdl/perf2">
<ant:include name="*Skeleton.java"/>
</ant:fileset>
</ant:copy>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/perf2"
target="make.repo"/>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/perf2"
target="jar.client"/>
<ant:move file="target/perf2/build/lib/Services-test-client.jar"
tofile="target/perf2/build/lib/PerfSoapService2-test-client.jar" />
<ant:path id="samples.wsdl.perf2.client.jar"
location="target/perf2/build/lib/PerfSoapService2-test-client.jar"/>
<maven:addPath id="maven.dependency.classpath" refid="samples.wsdl.perf2.client.jar"/>
<!-- compile the schema for XMLbeans -->
<java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-src target/xmlbeans-src -d target/classes test-resources/xsd/type-test.xsd"/>
</java>
<j:if test="${context.getVariable('skip.enterprise.tests') != 'true'}">
<ant:echo>Running codegen RPC WSDLs - take 1</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/rpc-test1 -uri test-resources/rpc/test-rpc-2.wsdl -uw"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test1"
target="jar.client"/>
<ant:echo>Running codegen RPC WSDLs - take 2</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/rpc-test2 -uri test-resources/rpc/test-rpc-3.wsdl -uw"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test2"
target="jar.client"/>
<ant:echo>Running codegen RPC WSDLs - take 3</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/rpc-test3 -uri test-resources/rpc/test-rpc-2.wsdl -uw"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test3"
target="jar.client"/>
<ant:echo>Running codegen RPC WSDLs - take 4</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/rpc-test4 -uri test-resources/rpc/test-rpc-2.wsdl -uw -ss -sd"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test4"
target="jar.server"/>
<ant:echo>Running codegen RPC WSDLs with helper mode - take 1</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/helper-test1 -uri test-resources/rpc/test-rpc-2.wsdl -u -Eh"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/helper-test1"
target="jar.client"/>
<ant:echo>Running codegen RPC WSDLs with helper mode - take 2</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-o target/helper-test2 -uri test-resources/rpc/test-rpc-2.wsdl -u -Eh"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/helper-test2"
target="jar.client"/>
<j:if test="${context.getVariable('maven.test.skip') != 'true'}">
<!-- 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"/>
<ant:echo>Running codegen for eBaySvc WSDL</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-ss -sd -g -u -ssi -t -o target/eBaySvc -uri test-resources/eBaySvc.wsdl"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvc"
target="jar.server"/>
<ant:echo>Running codegen for eBaySvc WSDL Back word compatibiliy</ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-ss -sd -g -t -u -ssi -b -s -o target/eBaySvcB -uri test-resources/eBaySvc.wsdl"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvcB"
target="jar.server"/>
<ant:echo>Running codegen for eBaySvc WSDL with un wrapping </ant:echo>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.dependency.classpath"/>
<arg line="-ss -sd -ssi -u -g -t -uw -o target/eBaySvcUW -uri test-resources/eBaySvc.wsdl"/>
</java>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvcUW"
target="jar.server"/>
</j:if>
</j:if>
</preGoal>
<postGoal name="test:compile">
<j:if test="${context.getVariable('maven.test.skip') != 'true'}">
<mkdir dir="target/test-resources/samples/modules"/>
<mkdir dir="target/test-resources/samples/conf"/>
<mkdir dir="target/test-resources/repository-client/modules"/>
<mkdir dir="target/test-resources/repository-client/conf"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/samples/modules/addressing-${addressing_version}.mar"/>
<copy file="conf/axis2.xml"
tofile="target/test-resources/samples/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/repository-client/modules/addressing-${addressing_version}.mar"/>
<copy file="conf/axis2.xml"
tofile="target/test-resources/repository-client/conf/axis2.xml"/>
<mkdir dir="target/toWar/services/"/>
<!-- Create Chunked enabled Repository -->
<mkdir dir="target/test-resources/chunking-enabledRepository"/>
<mkdir dir="target/test-resources/chunking-enabledRepository/conf"/>
<copy file="test/org/apache/axis2/engine/chunking-enabled-axis2.xml"
tofile="target/test-resources/chunking-enabledRepository/conf/axis2.xml"/>
<!-- Create Chunked disabled Repository -->
<mkdir dir="target/test-resources/chunking-disabledRepository"/>
<mkdir dir="target/test-resources/chunking-disabledRepository/conf"/>
<copy file="test/org/apache/axis2/engine/chunking-disabled-axis2.xml"
tofile="target/test-resources/chunking-disabledRepository/conf/axis2.xml"/>
<!-- Create JMS enabled Server Repository -->
<mkdir dir="target/test-resources/jms-enabled-server-repository"/>
<mkdir dir="target/test-resources/jms-enabled-server-repository/conf"/>
<mkdir dir="target/test-resources/jms-enabled-server-repository/modules"/>
<copy file="test/org/apache/axis2/jms/jms-enabled-server-axis2.xml"
tofile="target/test-resources/jms-enabled-server-repository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/jms-enabled-server-repository/modules/addressing-${addressing_version}.mar"/>
<!-- Create JMS enabled Client Repository -->
<mkdir dir="target/test-resources/jms-enabled-client-repository"/>
<mkdir dir="target/test-resources/jms-enabled-client-repository/conf"/>
<mkdir dir="target/test-resources/jms-enabled-client-repository/modules"/>
<copy file="test/org/apache/axis2/jms/jms-enabled-client-axis2.xml"
tofile="target/test-resources/jms-enabled-client-repository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/jms-enabled-client-repository/modules/addressing-${addressing_version}.mar"/>
<!-- Create Mail Client transport enabled Repository -->
<mkdir dir="target/test-resources/mail-transport-client-enabledRepository"/>
<mkdir dir="target/test-resources/mail-transport-client-enabledRepository/conf"/>
<mkdir dir="target/test-resources/mail-transport-client-enabledRepository/modules"/>
<copy file="test/org/apache/axis2/mail/mail-enabled-client-axis2.xml"
tofile="target/test-resources/mail-transport-client-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/mail-transport-client-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<!-- Create Mail Server transport enabled Repository -->
<mkdir dir="target/test-resources/mail-transport-server-enabledRepository"/>
<mkdir dir="target/test-resources/mail-transport-server-enabledRepository/conf"/>
<mkdir dir="target/test-resources/mail-transport-server-enabledRepository/modules"/>
<copy file="test/org/apache/axis2/mail/mail-enabled-server-axis2.xml"
tofile="target/test-resources/mail-transport-server-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/mail-transport-server-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<mkdir dir="target/test-resources/MessageContextInjectionRepo"/>
<mkdir dir="target/test-resources/integrationRepo/modules"/>
<mkdir dir="target/test-resources/integrationRepo/conf"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/integrationRepo/modules/addressing-${addressing_version}.mar"/>
<copy file="conf/axis2.xml"
tofile="target/test-resources/integrationRepo/conf/axis2.xml"/>
<!-- Commons transport enabled enabled Repository -->
<mkdir dir="target/test-resources/commons-http-enabledRepository"/>
<mkdir dir="target/test-resources/commons-http-enabledRepository/conf"/>
<copy file="test/org/apache/axis2/engine/commons-http-enabled-axis2.xml"
tofile="target/test-resources/commons-http-enabledRepository/conf/axis2.xml"/>
<!-- MTOM enabled Repository -->
<mkdir dir="target/test-resources/MTOM-enabledRepository"/>
<mkdir dir="target/test-resources/MTOM-enabledRepository/conf"/>
<mkdir dir="target/test-resources/MTOM-enabledRepository/modules"/>
<copy file="test-resources/mtom/MTOM-enabled-axis2.xml"
tofile="target/test-resources/MTOM-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/MTOM-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<!-- MTOM file cache enabled Repository -->
<mkdir dir="target/test-resources/MTOM-fileCache-enabledRepository"/>
<mkdir dir="target/test-resources/MTOM-fileCache-enabledRepository/conf"/>
<copy file="test-resources/mtom/MTOM-fileCache-enabled-axis2.xml"
tofile="target/test-resources/MTOM-fileCache-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/MTOM-fileCache-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<!-- SwA enabled Repository -->
<mkdir dir="target/test-resources/SwA-enabledRepository"/>
<mkdir dir="target/test-resources/SwA-enabledRepository/conf"/>
<copy file="test-resources/swa/SwA-enabled-axis2.xml"
tofile="target/test-resources/SwA-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/SwA-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<!-- SwA file cache enabled Repository -->
<mkdir dir="target/test-resources/SwA-fileCache-enabledRepository"/>
<mkdir dir="target/test-resources/SwA-fileCache-enabledRepository/conf"/>
<copy file="test-resources/swa/SwA-fileCache-enabled-axis2.xml"
tofile="target/test-resources/SwA-fileCache-enabledRepository/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/SwA-fileCache-enabledRepository/modules/addressing-${addressing_version}.mar"/>
<!-- Groovy repository -->
<mkdir dir="target/groovyRepo"/>
<mkdir dir="target/groovyRepo/conf"/>
<mkdir dir="target/groovyRepo/services"/>
<mkdir dir="target/groovyRepo/modules"/>
<ant:copy file="../samples/target/groovy/groovyService.aar"
tofile="target/groovyRepo/services/groovyService.aar"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/groovyRepo/modules/addressing-${addressing_version}.mar"/>
<copy file="conf/axis2.xml"
tofile="target/groovyRepo/conf/axis2.xml"/>
<!-- Spring resources -->
<mkdir dir="target/test-resources/spring"/>
<copy file="../spring/test-resources/applicationContext.xml"
tofile="target/test-classes/spring/applicationContext.xml"/>
<!-- Test with target resolver -->
<mkdir dir="target/test-resources/deployment_repo"/>
<mkdir dir="target/test-resources/deployment_repo/conf"/>
<mkdir dir="target/test-resources/deployment_repo/services"/>
<mkdir dir="target/test-resources/deployment_repo/modules"/>
<copy file="test-resources/deployment/deployment.both.axis2.xml"
tofile="target/test-resources/deployment_repo/conf/axis2.xml"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/test-resources/deployment_repo/modules/addressing-${addressing_version}.mar"/>
<!-- Standard repository -->
<mkdir dir="target/Repository"/>
<mkdir dir="target/Repository/conf"/>
<mkdir dir="target/Repository/services"/>
<mkdir dir="target/Repository/modules"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/Repository/modules/addressing-${addressing_version}.mar"/>
<copy file="conf/axis2.xml"
tofile="target/Repository/conf/axis2.xml"/>
<mkdir dir="target/perf2/build/repo/conf"/>
<mkdir dir="target/perf/build/repo/conf"/>
<copy file="conf/axis2.xml"
tofile="target/perf2/build/repo/conf/axis2.xml"/>
<copy file="conf/axis2.xml"
tofile="target/perf/build/repo/conf/axis2.xml"/>
<mkdir dir="target/perf2/build/repo/modules"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/perf2/build/repo/modules/addressing-${addressing_version}.mar"/>
<mkdir dir="target/perf/build/repo/modules"/>
<copy file="../addressing/target/addressing-${addressing_version}.mar"
tofile="target/perf/build/repo/modules/addressing-${addressing_version}.mar"/>
<j:jelly xmlns="jelly:ant">
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestModuleB"/>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestModuleC"/>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestServiceB"/>
<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestServiceC"/>
</j:jelly>
</j:if>
</postGoal>
</project>