Debian Codegraph @

test/functional/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/functional" />
39 &properties;
40 &paths;
41 &taskdefs;
42 &taskdefs_post_compile;
43 &targets;
44
45 <target name="clean"/>
46
47 <target name="copy" depends="setenv">
48 <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${axis.home}" antfile="buildSamples.xml" target="compile"/>
49 </target>
50
51 <target name="compile" depends="copy">
52 <echo message="Compiling test.functional"/>
53 <javac srcdir="${axis.home}" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
54 <classpath>
55 <path refid="classpath"/>
56 </classpath>
57 <include name="test/functional/*.java"/>
58 </javac>
59 <!-- first, put the JWS where the functional test can see it -->
60 <mkdir dir="${axis.home}/build/jws" />
61 <copy file="${axis.home}/test/functional/AltStockQuoteService.jws" todir="${axis.home}/build/jws" />
62 <copy file="${axis.home}/test/functional/GlobalTypeTest.jws" todir="${axis.home}/build/jws"/>
63 <copy file="${axis.home}/test/functional/FaultTest.jws" todir="${axis.home}/build/jws"/>
64 <copy file="${axis.home}/test/functional/AutoTypesTest.jws" todir="${axis.home}/build/jws" />
65 <copy file="${axis.home}/webapps/axis/EchoHeaders.jws" todir="${axis.home}/build/jws" />
66 </target>
67
68 <target name="junit-functional-prepare" if="junit.present">
69 <mkdir dir="${test.functional.reportdir}" />
70 <path id="deploy.xml.files">
71 <fileset dir="${build.dir}">
72 <include name="work/samples/**/deploy.wsdd"/>
73 <include name="work/test/rpc/deploy.wsdd"/>
74 </fileset>
75 </path>
76
77 <path id="undeploy.xml.files">
78 <fileset dir="${build.dir}">
79 <include name="work/samples/**/undeploy.wsdd"/>
80 <include name="work/test/rpc/undeploy.wsdd"/>
81 </fileset>
82 </path>
83
84 <property name="deploy.xml.property" refid="deploy.xml.files"/>
85 <property name="undeploy.xml.property" refid="undeploy.xml.files"/>
86 </target>
87
88 <target name="junit-functional" if="junit.present" depends="junit-functional-prepare,start-signature-signing-and-verification">
89 <java classname="org.apache.axis.client.AdminClient" fork="yes">
90 <classpath refid="classpath" />
91 <arg line="${deploy.xml.property}"/>
92 </java>
93
94 <junit dir="${axis.home}" printsummary="yes" haltonfailure="${test.functional.fail}" fork="yes">
95 <classpath refid="classpath" />
96 <formatter type="xml" usefile="${test.functional.usefile}"/>
97 <batchtest todir="${test.functional.reportdir}">
98 <fileset dir="${build.dest}" excludesfile="${axis.home}/junit-exclude-tests.txt">
99 <include name="${componentName}/FunctionalTests.class" />
100 </fileset>
101 </batchtest>
102 </junit>
103
104 <java classname="org.apache.axis.client.AdminClient" fork="yes">
105 <classpath refid="classpath" />
106 <arg line="${undeploy.xml.property}"/>
107 </java>
108 </target>
109
110 <target name="run" depends="setenv" >
111 <runaxisfunctionaltests
112 url="http://localhost:8088"
113 tcpServerTarget="start-functional-test-tcp-server"
114 httpServerTarget="start-functional-test-http-server"
115 testTarget="junit-functional"
116 httpStopTarget="stop-functional-test-http-server" />
117 </target>
118
119 </project>