Debian Codegraph @

tools/build.xml

raw ◀ ▶
1 Debian patch touch this file
1 <?xml version="1.0" ?>
2 <!DOCTYPE project [
3 <!ENTITY properties SYSTEM "../xmls/properties.xml">
4 <!ENTITY paths SYSTEM "../xmls/path_refs.xml">
5 <!ENTITY taskdefs SYSTEM "../xmls/taskdefs.xml">
6 <!ENTITY targets SYSTEM "../xmls/targets.xml">
7 ]>
8
9 <!-- ===================================================================
10 <description>
11 Tools Component file for Axis
12
13 Notes:
14 This is a build file for use with the Jakarta Ant build tool.
15
16 Prerequisites:
17
18 jakarta-ant from http://jakarta.apache.org
19
20 Build Instructions:
21 To compile
22 ant compile
23 To execute
24 ant run
25
26 Author:
27 Matt Seibert [email protected]
28
29 Copyright:
30 Copyright (c) 2002-2003 Apache Software Foundation.
31 </description>
32 ==================================================================== -->
33
34 <project name="axis tools" default="compile">
35 <description>
36 Builds the tools jars used with Axis
37 </description>
38
39 <property name="axis.home" location=".." />
40 <property name="tools.dir" location="${axis.home}/tools" />
41
42 <property name="componentName" value="org/apache/axis/tools/ant" />
43 &properties;
44 &paths;
45 &taskdefs;
46 &targets;
47 <property name="tools.build.dir" location="${build.dir}/tools" />
48
49
50 <target name="clean" description="cleanup">
51 <property name="dir.to.clean"
52 location="${tools.build.dir}/${componentName}" />
53 <echo message="Removing ${dir.to.clean}" />
54 <delete dir="${dir.to.clean}" />
55 <delete file="${build.lib}/axis-ant.jar" failonerror="false"/>
56 </target>
57
58 <target name="copy" depends="setenv"/>
59
60 <target name="compile" depends="copy" unless="axis-ant.present"
61 description="compile everthing and make the JARs">
62 <echo message="Compiling tools.*"/>
63 <mkdir dir="${tools.build.dir}"/>
64 <!-- build my ForEach task -->
65 <echo message="Building ForEach" />
66 <javac srcdir="${tools.dir}"
67 debug="${debug}"
68 source="${source}"
69 nowarn="${nowarn}"
70 destdir="${tools.build.dir}">
71 <classpath refid="classpath"/>
72 <include name="${componentName}/foreach/*.java" />
73 </javac>
74
75 <!-- build the RunAxisFunctionalTest task -->
76 <echo message="Building RunAxisFunctionalTest" />
77 <javac srcdir="${tools.dir}"
78 debug="${debug}"
79 source="${source}"
80 nowarn="${nowarn}"
81 destdir="${tools.build.dir}">
82 <classpath refid="classpath"/>
83 <include name="${componentName}/axis/*.java" />
84 </javac>
85
86 <!-- build the wsdl2java and java2wsdl tasks -->
87 <echo message="Building WSDL tasks" />
88 <javac srcdir="${tools.dir}"
89 debug="${debug}"
90 source="${source}"
91 nowarn="${nowarn}"
92 destdir="${tools.build.dir}">
93 <classpath>
94 <pathelement location="${build.lib}/${name}.jar"/>
95 <pathelement location="${build.lib}/${jaxrpc}.jar"/>
96 <path refid="classpath"/>
97 </classpath>
98 <include name="${componentName}/wsdl/*.java" />
99 </javac>
100
101 <copy todir="${tools.build.dir}/${componentName}/foreach" >
102 <fileset dir="${tools.dir}/${componentName}/foreach" excludes="**/*.java"/>
103 </copy>
104
105 <copy todir="${tools.build.dir}" >
106 <fileset dir="${tools.dir}"
107 includes="*-tasks.properties"/>
108 <fileset dir="${tools.dir}" includes="org/**/*.xml"/>
•109 <fileset dir="${tools.dir}" includes="log4j.properties"/>
110 </copy>
111
112 <tstamp/>
113 <jar jarfile="${build.lib}/axis-ant.jar" >
114 <fileset dir="${tools.build.dir}"
115 includes="**/*.class, **/*.xml, **/*.properties">
116 </fileset>
117 <manifest>
118 <section name="org/apache/axis/tools">
119 <attribute name="Implementation-Title" value="Apache Axis"/>
120 <attribute name="Implementation-Version" value="${axis.version} ${TSTAMP} ${TODAY}"/>
121 <attribute name="Implementation-Vendor" value="Apache Web Services"/>
122 </section>
123 </manifest>
124 </jar>
125 </target>
126
127 <target name="test" unless="axis-ant.present" description="tests">
128 <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${tools.dir}" antfile="test.xml" />
129 </target>
130
131 <property name="xdocs.dir" location="${env.ANT_HOME}/proposal/xdocs" />
132 <path id="xdoclet.extra.classpath">
133 <fileset dir="${build.lib}">
134 <include name="**/*.jar"/>
135 </fileset>
136 </path>
137
138 <property name="xdoclet.extra.classpath.asprop"
139 refid="xdoclet.extra.classpath"/>
140
141 <!-- probe for xdocs, which is only in CVS, not redist packages -->
142 <target name="probe-xdocs" >
143 <available property="xdocs.found" file="${xdocs.dir}/build.xml"/>
144 </target>
145
146 <target name="want-xdocs" depends="probe-xdocs">
147 <fail unless="xdocs.found">
148 We need the proposal/xdocs source tree from Ant in ${env.ANT_HOME}/proposal/xdocs
149 </fail>
150 </target>
151
152 <property name="build.antdocs.dir" location="${build.dir}/xdocs"/>
153 <property name="gen.dir" location="${build.antdocs.dir}/gen"/>
154 <property name="gen.dir" location="${build.antdocs.dir}/gen"/>
155 <property name="build.docs.dir" location="${build.antdocs.dir}/docs"/>
156 <property name="build.xdocs.dir" location="${build.antdocs.dir}/xdocs"/>
157
158 <target name="xdocs" depends="want-xdocs,compile"
159 description="Run xdoclet over the ant tasks to create doc pages"
160 if="xdocs.found">
161 <echo>
162 running xdocs with classpath=${xdoclet.extra.classpath.asprop}
163 </echo>
164
165 <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${xdocs.dir}"
166 target="gen-and-prepare-for-docs">
167 <property name="src.dir" location="org/apache/axis/tools/ant/"/>
168 <property name="src.root" location="."/>
169 <property name="xdoclet.extra.classpath"
170 value="${xdoclet.extra.classpath.asprop}"/>
171 <property name="gen.dir" location="${gen.dir}"/>
172 <property name="xdocs.dir" location="${build.xdocs.dir}"/>
173 <property name="build.docs.dir" location="${build.docs.dir}"/>
174 </ant>
175 </target>
176
177 <target name="dvsl" depends="want-xdocs">
178 <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${xdocs.dir}/dvsl">
179 <property name="src.dir" location="org/apache/axis/tools/ant/"/>
180 <property name="build.dir" location="${build.antdocs.dir}"/>
181 <property name="taskdocs.src" location="${gen.dir}"/>
182 <property name="xdocs.dir" location="${build.xdocs.dir}"/>
183 <property name="docs.dest" location="${build.docs.dir}"/>
184 </ant>
185 </target>
186
187 </project>