|
Axis 2 example source code file (itest-build.xml)
The Axis 2 itest-build.xml source code<?xml version="1.0"?> <!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> <project name="itest" default="build-repos" basedir="."> <target name="rpc-wsdl-codegen"> <echo>Running codegen RPC WSDLs - take 1 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/rpc-test1 -uri test-resources/rpc/test-rpc-2.wsdl -uw"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test1" target="jar.client"/> <echo>Running codegen RPC WSDLs - take 2 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/rpc-test2 -uri test-resources/rpc/test-rpc-3.wsdl -uw"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test2" target="jar.client"/> <echo>Running codegen RPC WSDLs - take 3 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/rpc-test3 -uri test-resources/rpc/test-rpc-2.wsdl -uw"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test3" target="jar.client"/> <echo>Running codegen RPC WSDLs - take 4 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/rpc-test4 -uri test-resources/rpc/test-rpc-2.wsdl -uw -ss -sd"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/rpc-test4" target="jar.server"/> <echo>Running codegen RPC WSDLs with helper mode - take 1 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/helper-test1 -uri test-resources/rpc/test-rpc-2.wsdl -u -Eh"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/helper-test1" target="jar.client"/> <echo>Running codegen RPC WSDLs with helper mode - take 2 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/helper-test2 -uri test-resources/rpc/test-rpc-2.wsdl -u -Eh"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/helper-test2" target="jar.client"/> </target> <target name="enterprise-wsdl-codegen"> <!-- codegen for the enterprise wsdl --> <echo>Running codegen for Enterprise WSDL - take 1 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -d xmlbeans -o target/enterprise-test1 -s -uri test-resources/enterprise.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test1" target="jar.client"/> <echo>Running codegen for Enterprise WSDL - take 2 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -o target/enterprise-test2 -s -uri test-resources/enterprise.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test2" target="jar.client"/> <echo>Running codegen for Enterprise WSDL - take 3 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -d xmlbeans -ss -sd -g -o target/enterprise-test3 -s -uri test-resources/enterprise.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test3" target="jar.server"/> <echo>Running codegen for Enterprise WSDL - take 4 <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -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 antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/enterprise-test4" target="jar.server"/> <echo>Running codegen for eBaySvc WSDL <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -ss -sd -g -u -ssi -t -o target/eBaySvc -uri test-resources/eBaySvc.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvc" target="jar.server"/> <echo>Running codegen for eBaySvc WSDL Back word compatibiliy <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -ss -sd -g -t -u -ssi -b -s -o target/eBaySvcB -uri test-resources/eBaySvc.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvcB" target="jar.server"/> <echo>Running codegen for eBaySvc WSDL with un wrapping <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.dependency.classpath"/> <arg line="-ap -ss -sd -ssi -u -g -t -uw -o target/eBaySvcUW -uri test-resources/eBaySvc.wsdl"/> </java> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="target/eBaySvcUW" target="jar.server"/> </target> <target name="build-repos"> <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/"/> <mkdir dir="target/test-resources/local"/> <copy file="../addressing/target/addressing-${addressing_version}.mar" tofile="target/test-resources/local/addressing.mar"/> <!-- 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"/> <mkdir dir="target/sample/groovy"/> <mkdir dir="target/sample/groovy/lib"/> <mkdir dir="target/sample/groovy/META-INF"/> <mkdir dir="target/sample/groovy/sample"/> <mkdir dir="target/sample/groovy/sample/groovy"/> <copy file="../samples/deprecated/groovy/src/sample/groovy/GroovyRcv.groovy" tofile="target/sample/groovy/GroovyRcv.groovy"/> <javac fork="true" destdir="target/classes" debug="on"> <classpath refid="maven.dependency.classpath"/> <src path="../samples/deprecated/groovy/src/sample/groovy"/> </javac> <copy file="target/classes/sample/groovy/GroovyReceiver.class" tofile="target/sample/groovy/sample/groovy/GroovyReceiver.class"/> <delete file="target/classes/sample/groovy/GroovyReceiver.class"/> <copy file="../samples/deprecated/groovy/src/sample/groovy/META-INF/services.xml" tofile="target/sample/groovy/META-INF/services.xml"/> <copy todir="target/sample/groovy/lib/" flatten="true"> <fileset dir="${maven.repo.local}/groovy/" includes="**/groovy-all-${groovy.all.version}.jar"/> </copy> <!-- Groovy repository --> <mkdir dir="target/groovyRepo"/> <mkdir dir="target/groovyRepo/conf"/> <mkdir dir="target/groovyRepo/services"/> <mkdir dir="target/groovyRepo/modules"/> <jar destfile="target/groovyRepo/services/groovyService.aar"> <fileset dir="target/sample/groovy"> </fileset> </jar> <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"/> </target> <target name="build-soap12-services"> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="test-resources/SOAP12Testing/SOAP12TestModuleB"/> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="test-resources/SOAP12Testing/SOAP12TestModuleC"/> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="test-resources/SOAP12Testing/SOAP12TestServiceB"/> <ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="test-resources/SOAP12Testing/SOAP12TestServiceC"/> </target> </project> Other Axis 2 examples (source code examples)Here is a short list of links related to this Axis 2 itest-build.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.