|
What this is
Other links
The 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="samples" basedir=".." default="testCodeGen"> <property name="maven.repo.local" value="${user.home}/.maven/repository/" /> <property name="codeGen.dir" value="${basedir}/target/code-gen" /> <property name="report.dir" value="${basedir}/target/test-reports" /> <property name="src.dir" value="${basedir}/test" /> <property name="wsdl.dir" value="${basedir}/../wsdl/test-resources/"/> <path id="test.classpath"> <fileset dir="${maven.repo.local}"> <include name="j2ee/jars/activation.jar"/> <include name="j2ee/jars/mail.jar"/> <include name="axis/jars/axis2-core-0.9.jar"/> <include name="axis/jars/axis2-common-0.9.jar"/> <include name="axis/jars/axis2-tools-0.9.jar"/> <include name="axis/jars/axis2-xml-0.9.jar"/> <include name="axis/jars/axis2-wsdl-0.9.jar"/> <include name="axis/jars/axis-wsdl4j-1.2.jar"/> <include name="commons-logging/jars/commons-logging-1.0.3.jar"/> <include name="commons-httpclient/jars/commons-httpclient-3.0-rc2.jar"/> <include name="stax/jars/stax-1.1.2-dev.jar"/> <include name="stax/jars/stax-api-1.0.jar"/> <include name="log4j/jars/log4j-1.2.8.jar"/> <include name="junit/jars/*.jar"/> <include name="xmlbeans/jars/xbean-2.0.0-beta1.jar"/> </fileset> <pathelement location="${class.dir}"/> </path> <taskdef name="wsdl2java" classname="org.apache.axis2.tool.ant.AntCodegenTask" classpathref="test.classpath"/> <target name="testCodeGen"> <mkdir dir="${codeGen.dir}/1"/> <mkdir dir="${codeGen.dir}/1/src"/> <mkdir dir="${codeGen.dir}/1/classes"/> <wsdl2java WSDLFileName="${wsdl.dir}/compound2.wsdl" output="${codeGen.dir}/1/src"> <classpath refid="test.classpath" /> </wsdl2java> <move todir="${codeGen.dir}/1/classes/schema"> <fileset dir="${codeGen.dir}/1/src/schema"/> </move> <javac srcdir="${codeGen.dir}/1/src" destdir="${codeGen.dir}/1/classes" debug="on"> <classpath refid="test.classpath" /> </javac> <mkdir dir="${codeGen.dir}/2"/> <mkdir dir="${codeGen.dir}/2/src"/> <mkdir dir="${codeGen.dir}/2/classes"/> <wsdl2java WSDLFileName="${wsdl.dir}/complex-doc-literal.wsdl" output="${codeGen.dir}/2/src"/> <move todir="${codeGen.dir}/2/classes/schema"> <fileset dir="${codeGen.dir}/2/src/schema"/> </move> <javac srcdir="${codeGen.dir}/2/src" destdir="${codeGen.dir}/2/classes" debug="on"> <classpath refid="test.classpath" /> </javac> <mkdir dir="${codeGen.dir}/3"/> <mkdir dir="${codeGen.dir}/3/src"/> <mkdir dir="${codeGen.dir}/3/classes"/> <wsdl2java WSDLFileName="${wsdl.dir}/simple-doc-literal.wsdl" output="${codeGen.dir}/3/src"/> <move todir="${codeGen.dir}/3/classes/schema"> <fileset dir="${codeGen.dir}/3/src/schema"/> </move> <javac srcdir="${codeGen.dir}/3/src" destdir="${codeGen.dir}/3/classes" debug="on"> <classpath refid="test.classpath" /> </javac> </target> <target name="doInterop-test"> <mkdir dir="${interop3.dir}"/> <mkdir dir="${work.dir}"/> <mkdir dir="${calss.dir}"/> <wsdl2java WSDLFileName="${wsdl.dir}compound2.wsdl" output="${work.dir}"/> <move todir="${classes.dir}/schema"> <fileset dir="${work.dir}/schema"/> </move> <javac srcdir="${work.dir}" destdir="${classes.dir}" debug="on"> <classpath refid="test.classpath" /> </javac> <!-- Run the interop test <java classname="Client"> <classpath refid="maven.dependency.classpath" /> </java> <junit dir="${classes.dir}" printsummary="yes" haltonfailure="yes"> <classpath refid="maven.dependency.classpath" /> <formatter type="plain"/> <test name="InteropClient2" /> </junit> --> </target> </project> |
... 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.