File: build.xml

package info (click to toggle)
axis 1.4-28
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 52,076 kB
  • sloc: java: 129,120; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (187 lines) | stat: -rw-r--r-- 6,260 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0" ?>
<!DOCTYPE project [
        <!ENTITY properties SYSTEM "../xmls/properties.xml">
        <!ENTITY paths  SYSTEM "../xmls/path_refs.xml">
        <!ENTITY taskdefs SYSTEM "../xmls/taskdefs.xml">
        <!ENTITY targets SYSTEM "../xmls/targets.xml">
]>

<!-- ===================================================================
<description>
   Tools Component file for Axis

Notes:
   This is a build file for use with the Jakarta Ant build tool.

Prerequisites:

   jakarta-ant from http://jakarta.apache.org

Build Instructions:
   To compile
        ant compile
   To execute
        ant run

Author:
  Matt Seibert mseibert@us.ibm.com

Copyright:
  Copyright (c) 2002-2003 Apache Software Foundation.
</description>
==================================================================== -->

<project name="axis tools" default="compile">
 <description>
 Builds the tools jars used with Axis
 </description>

<property name="axis.home" location=".." />
<property name="tools.dir" location="${axis.home}/tools" />

<property name="componentName" value="org/apache/axis/tools/ant" />
        &properties;
        &paths;
        &taskdefs;
        &targets;
<property name="tools.build.dir" location="${build.dir}/tools" />


<target name="clean" description="cleanup">
    <property name="dir.to.clean" 
      location="${tools.build.dir}/${componentName}" />
    <echo message="Removing ${dir.to.clean}" />
    <delete dir="${dir.to.clean}" />
    <delete file="${build.lib}/axis-ant.jar" failonerror="false"/>
</target>

<target name="copy" depends="setenv"/>

<target name="compile" depends="copy" unless="axis-ant.present"
  description="compile everthing and make the JARs">
  <echo message="Compiling tools.*"/>
  <mkdir dir="${tools.build.dir}"/>
    <!-- build my ForEach task -->
  <echo message="Building ForEach" />
  <javac srcdir="${tools.dir}" 
      debug="${debug}"
      source="${source}"
      nowarn="${nowarn}"
      destdir="${tools.build.dir}">
    <classpath refid="classpath"/>
    <include name="${componentName}/foreach/*.java" />
  </javac>

    <!-- build the RunAxisFunctionalTest task -->
  <echo message="Building RunAxisFunctionalTest" />
  <javac srcdir="${tools.dir}" 
      debug="${debug}"
      source="${source}"
      nowarn="${nowarn}"
      destdir="${tools.build.dir}">
    <classpath refid="classpath"/>
    <include name="${componentName}/axis/*.java" />
  </javac>

    <!-- build the wsdl2java and java2wsdl tasks -->
  <echo message="Building WSDL tasks" />
  <javac srcdir="${tools.dir}"
    debug="${debug}"
    source="${source}"
    nowarn="${nowarn}"
    destdir="${tools.build.dir}">
    <classpath>
      <pathelement location="${build.lib}/${name}.jar"/>
      <pathelement location="${build.lib}/${jaxrpc}.jar"/>
      <path refid="classpath"/>
    </classpath>
    <include name="${componentName}/wsdl/*.java" />
  </javac>

  <copy todir="${tools.build.dir}/${componentName}/foreach" >
     <fileset dir="${tools.dir}/${componentName}/foreach" excludes="**/*.java"/>
  </copy>

  <copy todir="${tools.build.dir}" >
    <fileset dir="${tools.dir}"
      includes="*-tasks.properties"/>
    <fileset dir="${tools.dir}" includes="org/**/*.xml"/>
    <fileset dir="${tools.dir}" includes="log4j.properties"/>
  </copy>
  
  <tstamp/>
  <jar jarfile="${build.lib}/axis-ant.jar" >
    <fileset dir="${tools.build.dir}"
      includes="**/*.class, **/*.xml, **/*.properties">
    </fileset>
    <manifest>
      <section name="org/apache/axis/tools">
        <attribute name="Implementation-Title" value="Apache Axis"/>
        <attribute name="Implementation-Version" value="${axis.version} ${TSTAMP} ${TODAY}"/> 
        <attribute name="Implementation-Vendor" value="Apache Web Services"/>
      </section>
    </manifest>
  </jar>
</target>

<target name="test" unless="axis-ant.present" description="tests">
   <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${tools.dir}" antfile="test.xml" /> 
</target>

<property name="xdocs.dir" location="${env.ANT_HOME}/proposal/xdocs" />
<path id="xdoclet.extra.classpath">
  <fileset dir="${build.lib}">
    <include name="**/*.jar"/>
  </fileset>
</path>

<property name="xdoclet.extra.classpath.asprop"
  refid="xdoclet.extra.classpath"/>

<!-- probe for xdocs, which is only in CVS, not redist packages --> 
<target name="probe-xdocs" >
  <available property="xdocs.found" file="${xdocs.dir}/build.xml"/>
</target>

<target name="want-xdocs" depends="probe-xdocs">
  <fail unless="xdocs.found">
    We need the proposal/xdocs source tree from Ant in ${env.ANT_HOME}/proposal/xdocs
   </fail>
</target>

  <property name="build.antdocs.dir" location="${build.dir}/xdocs"/>
  <property name="gen.dir" location="${build.antdocs.dir}/gen"/>
  <property name="gen.dir" location="${build.antdocs.dir}/gen"/>
  <property name="build.docs.dir" location="${build.antdocs.dir}/docs"/>
  <property name="build.xdocs.dir" location="${build.antdocs.dir}/xdocs"/>

<target name="xdocs" depends="want-xdocs,compile"
  description="Run xdoclet over the ant tasks to create doc pages"
  if="xdocs.found">
  <echo>
    running xdocs with classpath=${xdoclet.extra.classpath.asprop}
  </echo>  

  <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${xdocs.dir}" 
      target="gen-and-prepare-for-docs">
    <property name="src.dir" location="org/apache/axis/tools/ant/"/>
    <property name="src.root" location="."/>
    <property name="xdoclet.extra.classpath" 
      value="${xdoclet.extra.classpath.asprop}"/>
    <property name="gen.dir" location="${gen.dir}"/>
    <property name="xdocs.dir" location="${build.xdocs.dir}"/>
    <property name="build.docs.dir" location="${build.docs.dir}"/>
  </ant>
</target>

<target name="dvsl" depends="want-xdocs">
  <ant inheritAll="${ant.inheritAll}" inheritRefs="${ant.inheritRefs}" dir="${xdocs.dir}/dvsl">
    <property name="src.dir" location="org/apache/axis/tools/ant/"/>
    <property name="build.dir" location="${build.antdocs.dir}"/>
    <property name="taskdocs.src" location="${gen.dir}"/>
    <property name="xdocs.dir" location="${build.xdocs.dir}"/>
    <property name="docs.dest" location="${build.docs.dir}"/>
  </ant>  
</target>

</project>