| 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/query"/> |
| 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="compile"> |
| 52 |
<echo message="Compiling test.wsdl.query"/> |
| 53 |
|
| 54 |
<!-- Query Test --> |
| 55 |
<!-- Copy Service and QueryBean --> |
| 56 |
<copy todir="${build.dir}/work/${componentName}" overwrite="yes"> |
| 57 |
<fileset dir="${test.dir}/wsdl/query"> |
| 58 |
<include name="QueryTest.java"/> |
| 59 |
<include name="QueryBean.java"/> |
| 60 |
</fileset> |
| 61 |
</copy> |
| 62 |
|
| 63 |
<!-- Compile the Web Service --> |
| 64 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"> |
| 65 |
<classpath refid="classpath" /> |
| 66 |
<include name="test/wsdl/query/**.java" /> |
| 67 |
<exclude name="test/wsdl/query/*TestCase.java" /> |
| 68 |
<exclude name="test/wsdl/query/*Impl.java" /> |
| 69 |
<exclude name="test/wsdl/query/*Stub.java" /> |
| 70 |
<exclude name="test/wsdl/query/*Locator.java" /> |
| 71 |
</javac> |
| 72 |
|
| 73 |
<!-- Now create the real WSDL file --> |
| 74 |
<java2wsdl output="${axis.home}/build/work/${componentName}/QueryTest.wsdl" |
| 75 |
className= "test.wsdl.query.QueryTest" |
| 76 |
style="wrapped" |
| 77 |
useInheritedMethods="false" |
| 78 |
namespace="http://query.wsdl.test" |
| 79 |
location="http://localhost:8080/axis/services/QueryTest"> |
| 80 |
</java2wsdl> |
| 81 |
|
| 82 |
<!-- Delete the intermediate class files so we recreate over a clean slate --> |
| 83 |
<delete dir="${build.dir}/classes/test/wsdl/query"/> |
| 84 |
|
| 85 |
<wsdl2java url="${axis.home}/build/work/${componentName}/QueryTest.wsdl" |
| 86 |
output="${axis.home}/build/work" |
| 87 |
deployscope="session" |
| 88 |
serverSide="yes" |
| 89 |
skeletonDeploy="no" |
| 90 |
verbose="no" |
| 91 |
testcase="no"> |
| 92 |
</wsdl2java> |
| 93 |
|
| 94 |
<!-- copy test files over to work directory, including a static deploy |
| 95 |
file that does not have arrayMapings in it --> |
| 96 |
<copy todir="${build.dir}/work/test/wsdl/query" overwrite="yes"> |
| 97 |
<fileset dir="${axis.home}/test/wsdl/query"> |
| 98 |
<include name="*Impl.java"/> |
| 99 |
<include name="*TestCase.java"/> |
| 100 |
<include name="**.wsdd"/> |
| 101 |
</fileset> |
| 102 |
</copy> |
| 103 |
|
| 104 |
<!-- copy the file generation test files --> |
| 105 |
<copy todir="${build.dir}/work/test/" overwrite="yes"> |
| 106 |
<fileset dir="${axis.home}/test/"> |
| 107 |
<include name="*Impl.java"/> |
| 108 |
<include name="*TestCase.java"/> |
| 109 |
</fileset> |
| 110 |
</copy> |
| 111 |
|
| 112 |
<javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}" |
| 113 |
debug="${debug}"> |
| 114 |
<classpath refid="classpath"/> |
| 115 |
<include name="test/*.java" /> |
| 116 |
<include name="test/wsdl/query/*.java"/> |
| 117 |
</javac> |
| 118 |
|
| 119 |
</target> |
| 120 |
|
| 121 |
<target name="run"> |
| 122 |
<antcall target="execute-Component"/> |
| 123 |
</target> |
| 124 |
|
| 125 |
</project> |