1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
<?xml version="1.0" ?>
<!DOCTYPE project [
<!ENTITY properties SYSTEM "file:../../../xmls/properties.xml">
<!ENTITY paths SYSTEM "file:../../../xmls/path_refs.xml">
<!ENTITY taskdefs SYSTEM "file:../../../xmls/taskdefs.xml">
<!ENTITY taskdefs_post_compile SYSTEM "file:../../../xmls/taskdefs_post_compile.xml">
<!ENTITY targets SYSTEM "file:../../../xmls/targets.xml">
]>
<!-- ===================================================================
<description>
Test/Sample Component file for Axis
Notes:
This is a build file for use with the Jakarta Ant build tool.
Prerequisites:
jakarta-ant from http://jakarta.apache.org
Build Instructions:
To compile
ant compile
To execute
ant run
Author:
Matt Seibert mseibert@us.ibm.com
Copyright:
Copyright (c) 2002-2003 Apache Software Foundation.
</description>
==================================================================== -->
<project default="compile">
<property name="axis.home" location="../../.." />
<property name="componentName" value="test/wsdl/_import" />
<property name="extraServices" value="work/test/import2/**" />
<property name="extraTestCases" value="test/import2/**" />
&properties;
&paths;
&taskdefs;
&taskdefs_post_compile;
&targets;
<target name="clean">
<echo message="Cleaning up directories" />
<delete dir="${build.dir}/classes/test/import2" />
<delete dir="${build.dir}/classes/test/import3" />
<delete dir="${build.dir}/classes/test/wsdl/_import" />
<delete dir="${build.dir}/classes/test/_import" />
<delete dir="${build.dir}/work/test/import2" />
<delete dir="${build.dir}/work/test/import3" />
<delete dir="${build.dir}/work/test/wsdl/_import" />
<delete dir="${build.dir}/work/test/_import" />
</target>
<target name="copy" depends="setenv">
<copy todir="${build.dir}/classes" overwrite="yes">
<fileset dir="${test.dir}/wsdl/_import">
<include name="NStoPkg.properties"/>
</fileset>
</copy>
</target>
<target name="compile" depends="copy">
<!-- cleanup old code -->
<delete>
<fileset dir="${build.dir}" includes="work/test/wsdl/_import/**/*.java"/>
<fileset dir="${build.dir}" includes="work/test/import2/**/*.java"/>
</delete>
<echo message="Compiling test.wsdl._import"/>
<!-- Import Test 1: some namespace->package mappings from the -->
<!-- command line, some generated, some from -->
<!-- NStoPkg.properties. -->
<wsdl2java url="${axis.home}/test/wsdl/_import/Import.wsdl"
output="${axis.home}/build/work"
deployscope="none"
serverSide="yes"
skeletonDeploy="yes"
noimports="no"
verbose="no"
testcase="yes">
<mapping namespace="urn:import" package="test.wsdl.import"/>
<mapping namespace="urn:importBinding1" package="test.wsdl.import.binding1"/>
<mapping namespace="urn:importBinding2" package="test.wsdl.import.binding2"/>
</wsdl2java>
<!-- Import Test 2: all namespace->package mappings from the -->
<!-- command line. -->
<wsdl2java url="${axis.home}/test/wsdl/_import/Import.wsdl"
output="${axis.home}/build/work"
deployscope="none"
serverSide="yes"
skeletonDeploy="yes"
noimports="no"
verbose="no"
testcase="yes">
<mapping namespace="urn:import" package="test.import2"/>
<mapping namespace="urn:importBinding1" package="test.import2.binding1"/>
<mapping namespace="urn:importBinding2" package="test.import2.binding2"/>
<mapping namespace="urn:types.import.test" package="test.import2.types"/>
<mapping namespace="urn:iface.import.test" package="test.import2.iface"/>
<mapping namespace="urn:messages.import.test" package="test.import2.messages"/>
</wsdl2java>
<!-- Import Test 3: all namespace->package mappings from the -->
<!-- command line. Make sure an xsd:import -->
<!-- statement inside a schema inside a type -->
<!-- works properly. -->
<wsdl2java url="${axis.home}/test/wsdl/_import/ImportMessagesXSDImport.wsdl"
output="${axis.home}/build/work"
noimports="no">
<mapping namespace="urn:types.import.test" package="test.import.test3"/>
</wsdl2java>
<javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
<classpath refid="classpath" />
<include name="test/import2/**/*.java" />
<include name="test/import3/**/*.java" />
<include name="test/wsdl/_import/**/*.java" />
<include name="test/_import/**/*.java" />
</javac>
</target>
<target name="run" >
<antcall target="execute-Component" />
</target>
</project>
|