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