Debian Codegraph @

test/wsdl/gateway/build.xml

raw
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/gateway" />
39 &properties;
40 &paths;
41 &taskdefs;
42 &taskdefs_post_compile;
43 &targets;
44
45 <target name="clean">
46 <echo message="componentName is ${componentName}"/>
47 <echo message="Removing ${build.dir}/**/test/wsdl/gateway" />
48 <delete dir="${build.dir}/classes/test/wsdl/gateway"/>
49 <delete dir="${build.dir}/work/test/wsdl/gateway"/>
50 </target>
51
52 <!-- main target, always start from scratch -->
53 <target name="compile" depends="setenv, clean">
54 <echo message="Compiling test.wsdl.gateway"/>
55
56 <!-- Compile the test classes for Java2WSDL -->
57 <javac srcdir="${axis.home}/test/wsdl/gateway"
58 destdir="${build.dest}"
59 nowarn="${nowarn}"
60 fork="${javac.fork}"
61 source="${source}"
62 debug="${debug}">
63 <classpath refid="classpath" />
64 <include name="Gateway.java" />
65 <include name="MyClass.java" />
66 <include name="OutClass.java" />
67 </javac>
68
69 <mkdir dir="${build.dir}/work/test/wsdl/gateway"/>
70
71 <!-- Generate WSDL from java -->
72 <java2wsdl output="${build.dir}/work/test/wsdl/gateway/Gateway.wsdl"
73 className= "test.wsdl.gateway.Gateway"
74 extraClasses="test.wsdl.gateway.MyClass, test.wsdl.gateway.OutClass"
75 namespace="http://test.com/gateway"
76 location="http://localhost:8080/axis/services/Gateway">
77 <mapping package="test.wsdl.gateway" namespace="http://test.com/gateway" />
78 </java2wsdl>
79
80 <!-- Verify files generated based on everything in WSDL -->
81 <wsdl2java url="${build.dir}/work/test/wsdl/gateway/Gateway.wsdl"
82 output="${axis.home}/build/work"
83 serverSide="yes"
84 all="yes"
85 verbose="no"
86 testcase="no">
87 <mapping namespace="http://test.com/gateway" package="test.wsdl.gateway"/>
88 </wsdl2java>
89
90 <!-- Copy the test case -->
91 <copy file="GatewayServiceTestCase.java" overwrite="true"
92 todir="${build.dir}/work/test/wsdl/gateway"/>
93
94 <!-- Copy the binding impl case -->
95 <copy file="GatewaySoapBindingImpl.java" overwrite="true"
96 todir="${build.dir}/work/test/wsdl/gateway"/>
97
98 <!-- Clean up old classes -->
99 <delete dir="${build.dir}/classes/test/wsdl/gateway" />
100
101 <!-- Compile the test case -->
102 <javac srcdir="${build.dir}/work" destdir="${build.dest}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}"
103 debug="${debug}">
104 <classpath refid="classpath" />
105 <include name="test/wsdl/gateway/*.java" />
106 </javac>
107
108 </target>
109
110 <target name="run" >
111 <antcall target="execute-Component" />
112 </target>
113
114 </project>