| 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/inheritance" /> |
| 39 |
&properties; |
| 40 |
&paths; |
| 41 |
&taskdefs; |
| 42 |
&taskdefs_post_compile; |
| 43 |
&targets; |
| 44 |
|
| 45 |
<target name="clean"> |
| 46 |
<echo message="Removing ${build.dir}/classes/${componentName} and ${build.dir}/work/${componentName}" /> |
| 47 |
<delete dir="${build.dir}/classes/${componentName}"/> |
| 48 |
<delete dir="${build.dir}/work/${componentName}"/> |
| 49 |
</target> |
| 50 |
|
| 51 |
<target name="copy" depends="setenv"/> |
| 52 |
|
| 53 |
<target name="compile" depends="copy"> |
| 54 |
<echo message="Compiling test.wsdl.inheritance"/> |
| 55 |
<!-- Inheritance Test --> |
| 56 |
<!-- Bootstrap to generate Java From WSDL to get stubs/skeletons --> |
| 57 |
<wsdl2java url="${axis.home}/test/wsdl/inheritance/InheritanceTest.wsdl" |
| 58 |
output="${axis.home}/build/work" |
| 59 |
deployscope="session" |
| 60 |
serverSide="yes" |
| 61 |
skeletonDeploy="yes" |
| 62 |
noimports="no" |
| 63 |
verbose="no" |
| 64 |
testcase="no"> |
| 65 |
<mapping namespace="urn:InheritanceTest2" package="test.wsdl.inheritance"/> |
| 66 |
</wsdl2java> |
| 67 |
<!-- To test inheritance, the InheritancePortType is changed to use inheritance --> |
| 68 |
<copy todir="${build.dir}/work/test/wsdl/inheritance" overwrite="yes"> |
| 69 |
<fileset dir="${test.dir}/wsdl/inheritance"> |
| 70 |
<include name="InheritancePortType.java"/> |
| 71 |
<include name="StockQuoteProvider.java"/> |
| 72 |
</fileset> |
| 73 |
</copy> |
| 74 |
<!-- Compile the Web Service --> |
| 75 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"> |
| 76 |
<classpath refid="classpath" /> |
| 77 |
<include name="test/wsdl/inheritance/**.java" /> |
| 78 |
<exclude name="test/wsdl/inheritance/*TestCase.java" /> |
| 79 |
<exclude name="test/wsdl/inheritance/*Impl.java" /> |
| 80 |
</javac> |
| 81 |
<!-- Now create the WSDL file specifying useInheritedMethods --> |
| 82 |
<java2wsdl output="${axis.home}/build/work/test/wsdl/inheritance/InheritanceTest.wsdl" |
| 83 |
className= "test.wsdl.inheritance.InheritancePortType" |
| 84 |
namespace="urn:InheritanceTest2" |
| 85 |
useInheritedMethods="true" |
| 86 |
location="http://localhost:8080/axis/services/InheritanceTest"> |
| 87 |
<mapping namespace="urn:InheritanceTest2" package="test.wsdl.inheritance"/> |
| 88 |
</java2wsdl> |
| 89 |
<!-- Delete the intermediate files so we recreate over a clean slate --> |
| 90 |
<delete dir="${build.dir}/classes/test/wsdl/inheritance"/> |
| 91 |
<!-- Recreate Java files from the new WSDL --> |
| 92 |
<wsdl2java url="${axis.home}/build/work/test/wsdl/inheritance/InheritanceTest.wsdl" |
| 93 |
output="${axis.home}/build/work" |
| 94 |
deployscope="session" |
| 95 |
serverSide="yes" |
| 96 |
skeletonDeploy="yes" |
| 97 |
noimports="no" |
| 98 |
verbose="no" |
| 99 |
testcase="no"> |
| 100 |
<mapping namespace="urn:InheritanceTest2" package="test.wsdl.inheritance"/> |
| 101 |
</wsdl2java> |
| 102 |
|
| 103 |
<!-- inheritance test (cont): Test the stopClass and exclude switches --> |
| 104 |
<!-- Compile class files --> |
| 105 |
<javac srcdir="${test.dir}/wsdl/inheritance" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"> |
| 106 |
<classpath refid="classpath" /> |
| 107 |
<include name="Baby*.java"/> |
| 108 |
<include name="Child*.java"/> |
| 109 |
<include name="Parent*.java"/> |
| 110 |
</javac> |
| 111 |
<!-- Generate the WSDL file that the test will validate.--> |
| 112 |
<!-- We do not run WSDL2Java for this test --> |
| 113 |
<java2wsdl output="${axis.home}/build/work/test/wsdl/inheritance/StopExclude.wsdl" |
| 114 |
className= "test.wsdl.inheritance.Baby" |
| 115 |
namespace="urn:InheritanceTest3" |
| 116 |
useInheritedMethods="true" |
| 117 |
stopClasses="test.wsdl.inheritance.Parent,test.wsdl.inheritance.Parent_bean" |
| 118 |
exclude="baby_excluded,child_excluded" |
| 119 |
location="http://localhost:8080/axis/services/StopExcludeTest"> |
| 120 |
<mapping namespace="urn:InheritanceTest3" package="test.wsdl.inheritance"/> |
| 121 |
</java2wsdl> |
| 122 |
|
| 123 |
<copy todir="${build.dir}/work/test/wsdl/inheritance" overwrite="yes"> |
| 124 |
<fileset dir="${axis.home}/test/wsdl/inheritance"> |
| 125 |
<include name="*TestCase.java"/> |
| 126 |
<include name="*Impl.java"/> |
| 127 |
</fileset> |
| 128 |
</copy> |
| 129 |
|
| 130 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| 131 |
debug="${debug}"> |
| 132 |
<classpath refid="classpath" /> |
| 133 |
<include name="test/wsdl/inheritance/*.java" /> |
| 134 |
</javac> |
| 135 |
|
| 136 |
</target> |
| 137 |
|
| 138 |
<target name="run" > |
| 139 |
<antcall target="execute-Component" /> |
| 140 |
</target> |
| 141 |
|
| 142 |
</project> |