Debian Codegraph @

test/wsdl/addrNoImplSEI/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/addrNoImplSEI" />
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.addrNoImplSEI"/>
55
56 <!-- AddressBook roundtrip example that does not implement SEI -->
57 <!-- Summary -->
58 <!-- Bootstrap the process by creating java classes from the original wsdl -->
59 <!-- Compile the classes plus the provided Impl class -->
60 <!-- The Impl class is supposed to simulate a server-side EJB -->
61 <!-- It does not implement the SEI and it contains some additional throw clauses -->
62 <!-- Run Java2WSDL on the Impl class to ensure a valid wsdl is generated -->
63 <!-- Run WSDL2Java on the new wsdl to generate client side and other artifacts -->
64 <!-- Replace the generated Impl with the original Impl that does not implement the SEI -->
65 <!-- Compile and run test. -->
66
67 <wsdl2java url="${axis.home}/test/wsdl/addrNoImplSEI/AddressBook.wsdl"
68 output="${axis.home}/build/work"
69 deployscope="session"
70 serverSide="yes"
71 skeletonDeploy="no"
72 noimports="no"
73 verbose="no"
74 typeMappingVersion="1.1"
75 testcase="no">
76 <mapping namespace="urn:AddrNoImplSEI" package="test.wsdl.addrNoImplSEI"/>
77 </wsdl2java>
78
79 <!-- Copy over original classes -->
80 <copy todir="${build.dir}/work/test/wsdl/addrNoImplSEI" overwrite="yes">
81 <fileset dir="${test.dir}/wsdl/addrNoImplSEI">
82 <include name="*.java"/>
83 </fileset>
84 </copy>
85
86 <!-- Compile the Web Service -->
87 <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
88 <classpath refid="classpath" />
89 <include name="test/wsdl/addrNoImplSEI/**.java" />
90 <exclude name="test/wsdl/addrNoImplSEI/*TestCase.java" />
91 <exclude name="test/wsdl/addrNoImplSEI/Main.java" />
92 </javac>
93
94 <!-- Now run java to wsdl to make sure we don't have any strange artifacts -->
95 <java2wsdl output="${axis.home}/build/work/test/wsdl/addrNoImplSEI/AddressBook.wsdl"
96 className= "test.wsdl.addrNoImplSEI.AddressBookNoImplSEISoapBindingImpl"
97 useInheritedMethods="false"
98 portTypeName="AddressBookNoImplSEI"
99 namespace="http://addrNoImplSEI.wsdl.test"
100 typeMappingVersion="1.1"
101 location="http://localhost:8080/axis/services/AddressBookNoImplSEI">
102 <mapping namespace="urn:AddrNoImplSEI" package="test.wsdl.addrNoImplSEI"/>
103 </java2wsdl>
104
105 <!-- Now run wsdl to java to make sure we don't have any strange artifacts -->
106 <delete dir="${build.dir}/classes/test/wsdl/addrNoImplSEI"/>
107 <delete>
108 <fileset dir="${build.dir}/work/test/wsdl/addrNoImplSEI" includes="**/*.java"/>
109 </delete>
110 <wsdl2java url="${axis.home}/build/work/test/wsdl/addrNoImplSEI/AddressBook.wsdl"
111 output="${axis.home}/build/work"
112 deployscope="session"
113 serverSide="yes"
114 skeletonDeploy="no"
115 noimports="no"
116 verbose="no"
117 typeMappingVersion="1.1"
118 testcase="no">
119 <mapping namespace="urn:AddrNoImplSEI" package="test.wsdl.addrNoImplSEI"/>
120 </wsdl2java>
121
122 <!-- Copy over original classes -->
123 <copy todir="${build.dir}/work/test/wsdl/addrNoImplSEI" overwrite="yes">
124 <fileset dir="${axis.home}/test/wsdl/addrNoImplSEI">
125 <include name="*TestCase.java"/>
126 <include name="*Impl.java"/>
127 <include name="Main.java"/>
128 </fileset>
129 </copy>
130
131 <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
132 <classpath refid="classpath" />
133 <include name="test/wsdl/addrNoImplSEI/**.java" />
134 </javac>
135
136 </target>
137
138 <target name="run" >
139 <antcall target="execute-Component" />
140 </target>
141
142 </project>