-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
executable file
·217 lines (192 loc) · 6.64 KB
/
build.xml
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005 Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
$Id: build.xml,v 1.19 2007-10-05 19:50:49 nbeers Exp $
-->
<project name="wiseman" default="dist" basedir=".">
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="${dist.dir}/lib"/>
<property name="lic.dir" value="${dist.dir}/licenses"/>
<property name="devdocs.dir" value="tools/docs/developer"/>
<property file="release.properties"/>
<!-- Test that a valid ant version is being used -->
<condition property="valid.ant.version">
<or>
<contains substring="1.6.5" string="${ant.version}" />
<contains substring="1.7." string="${ant.version}" />
</or>
</condition>
<fail message="You should be using ant 1.6.5 or better."
unless="valid.ant.version"/>
<target name="init" depends="clean" >
<tstamp />
<mkdir dir="${dist.dir}" />
<mkdir dir="${lib.dir}" />
<mkdir dir="se/src/com/sun/ws/management/resources/wsdls" />
</target>
<target name="clean">
<delete dir="${dist.dir}" />
</target>
<target name="build" depends="init">
<ant dir="se" antfile="build.xml" inheritall="no" description="Build Wiseman" target="autobuild"/>
<ant dir="client" antfile="build.xml" inheritall="no" description="Build Wiseman Client" target="autobuild"/>
<ant dir="tools" antfile="build.xml" inheritall="no" description="Build Wiseman Tooling" target="autobuild"/>
</target>
<target name="dist" depends="build">
<!-- <target name="dist" > -->
<!-- Get the wiseman jars and put them in lib -->
<copy todir="${dist.dir}/lib">
<fileset dir="se/dist">
<include name="**/*.jar" />
</fileset>
</copy>
<!-- Get the wiseman api docs and put them in docs -->
<copy todir="${dist.dir}/docs">
<fileset dir="se/dist">
<include name="**/*.zip" />
</fileset>
</copy>
<!-- Get the wiseman dependencies and put them in lib -->
<copy todir="${dist.dir}/lib">
<fileset dir="se/lib">
<include name="velocity-1.4.jar" />
<include name="velocity-dep-1.4.jar" />
<include name="servlet-api.jar" />
</fileset>
<fileset dir="se/test/lib">
<include name="junit.jar" />
</fileset>
</copy>
<!-- Get the jaxws libraries and put them in lib/jaxws -->
<copy todir="${dist.dir}/lib/jaxws">
<fileset dir="se/lib/jaxws">
<include name="FastInfoset.jar" />
<include name="activation.jar" />
<include name="http.jar" />
<include name="jaxb-api.jar" />
<include name="jaxb-impl.jar" />
<include name="jaxb-xjc.jar" />
<include name="jaxws-api.jar" />
<include name="jaxws-rt.jar" />
<include name="jaxws-tools.jar" />
<include name="jsr173_api.jar" />
<include name="jsr181-api.jar" />
<include name="jsr250-api.jar" />
<include name="resolver.jar" />
<include name="saaj-api.jar" />
<include name="saaj-impl.jar" />
<include name="sjsxp.jar" />
<include name="stax-ex.jar" />
<include name="streambuffer.jar" />
</fileset>
</copy>
<!-- Get the wiseman client -->
<copy todir="${dist.dir}/lib">
<fileset dir="client/dist">
<include name="**/*.jar" />
</fileset>
</copy>
<!-- Get the wiseman client api docs and put them in docs -->
<copy todir="${dist.dir}/docs">
<fileset dir="client/dist">
<include name="**/*.zip" />
</fileset>
</copy>
<zip destfile="${dist.dir}/docs/third-party-client-samples.zip"
basedir="${devdocs.dir}" includes="*.java"/>
<!-- Get the wiseman tooling -->
<copy todir="${dist.dir}/lib">
<fileset dir="tools/dist">
<include name="**/*.jar" />
</fileset>
</copy>
<!-- Get the tooling dependent jars-->
<copy todir="${dist.dir}">
<fileset dir="tools">
<include name="lib/*.jar" />
<exclude name="lib/wiseman*.jar" />
</fileset>
</copy>
<!-- Get the tooling tutorials -->
<copy todir="${dist.dir}/docs">
<fileset dir="tools/docs">
<include name="*.pdf" />
<!-- <include name="*.doc" /> -->
<exclude name="Creating*.*" />
</fileset>
</copy>
<!-- Get the samples for tooling -->
<copy todir="${dist.dir}">
<fileset dir="tools">
<include name="samples/**/.classpath" />
<include name="samples/**/.project" />
<include name="samples/**/*.gif" />
<include name="samples/**/*.java" />
<include name="samples/**/*.xsd" />
<include name="samples/**/*.xml" />
<include name="samples/**/*.html" />
<include name="samples/**/*.properties" />
<include name="samples/**/*.sh" />
<include name="samples/**/*.bat" />
<include name="samples/**/*.txt" />
<include name="samples/**/*.wsdl" />
<include name="samples/templates/**/*.jar" />
<exclude name="samples/**/light.wsdl" />
<!-- <exclude name="samples/**/classes/*" /> -->
<exclude name="samples/contacts/gen-src/*.java" />
<exclude name="samples/contacts_client/gen-src/*.java" />
<exclude name="samples/ServiceType/**/*.*" />
</fileset>
</copy>
<!-- Get etc and put it in dist -->
<copy todir="${dist.dir}">
<fileset dir="se">
<include name="etc/**/*.xml" />
</fileset>
</copy>
<!-- Get etc and put it in dist -->
<copy todir="${dist.dir}">
<fileset dir=".">
<include name="README.txt" />
</fileset>
</copy>
<!-- Get the licenses dir and its contents -->
<copy todir="${lic.dir}">
<fileset dir="licenses">
<include name="jaxws/**/*.txt" />
<include name="jaxws/**/README" />
<include name="*.txt"/>
</fileset>
</copy>
<!-- Get the wiseman wsdls and schemas -->
<copy todir="${dist.dir}/wsdls/wiseman">
<fileset dir="se/src/com/sun/ws/management/resources/wsdls">
<include name="enumeration.wsdl" />
<include name="eventing.wsdl" />
<include name="transfer.wsdl" />
</fileset>
</copy>
<copy todir="${dist.dir}/schemas/wiseman">
<fileset dir="se/src/com/sun/ws/management/resources/schemas">
<include name="addressing.xsd" />
<include name="enumeration.xsd" />
<include name="eventing.xsd" />
<include name="transfer.xsd" />
</fileset>
</copy>
<zip destfile="wiseman_${version}.zip">
<zipfileset dir="dist">
<include name="**"/>
</zipfileset>
</zip>
</target>
</project>