1 |
113
|
jones
|
<?xml version="1.0"?>
|
2 |
1311
|
berkley
|
<!--
|
3 |
670
|
jones
|
* '$RCSfile$'
|
4 |
|
|
* Authors: Matt Jones, Chad Berkley, Jivka Bojilova
|
5 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis
|
7 |
|
|
* For Details: http://www.nceas.ucsb.edu/
|
8 |
113
|
jones
|
*
|
9 |
670
|
jones
|
* '$Author$'
|
10 |
1292
|
tao
|
* '$Date$'
|
11 |
|
|
* '$Revision$'
|
12 |
666
|
jones
|
*
|
13 |
670
|
jones
|
* Build file for the Ant cross-platform build system for metacat
|
14 |
|
|
* See http://jakarta.apache.org for details on Ant
|
15 |
113
|
jones
|
*
|
16 |
303
|
jones
|
* usage: ant [compile|jar|install|jdoc]
|
17 |
666
|
jones
|
*
|
18 |
|
|
* This program is free software; you can redistribute it and/or modify
|
19 |
|
|
* it under the terms of the GNU General Public License as published by
|
20 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
21 |
|
|
* (at your option) any later version.
|
22 |
|
|
*
|
23 |
|
|
* This program is distributed in the hope that it will be useful,
|
24 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
25 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
26 |
|
|
* GNU General Public License for more details.
|
27 |
|
|
*
|
28 |
|
|
* You should have received a copy of the GNU General Public License
|
29 |
|
|
* along with this program; if not, write to the Free Software
|
30 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
31 |
1311
|
berkley
|
-->
|
32 |
329
|
jones
|
<project name="metacat" default="jar" basedir=".">
|
33 |
2277
|
jones
|
<property environment="env"/>
|
34 |
1929
|
brooke
|
<property file="build.properties"/> <!-- USER SPECIFIC PROPS -->
|
35 |
2957
|
tao
|
|
36 |
4098
|
daigle
|
|
37 |
|
|
|
38 |
4813
|
daigle
|
<!-- Determine if ecogrid should be installed-->
|
39 |
2957
|
tao
|
<condition property="enable.ecogrid">
|
40 |
|
|
<equals arg1="${install.ecogrid}" arg2="true" />
|
41 |
|
|
</condition>
|
42 |
4813
|
daigle
|
|
43 |
|
|
<!-- Determine if perl should be built-->
|
44 |
|
|
<condition property="build.perl">
|
45 |
|
|
<equals arg1="${make.perl.code}" arg2="true" />
|
46 |
|
|
</condition>
|
47 |
3034
|
perry
|
|
48 |
4098
|
daigle
|
<target name="config">
|
49 |
|
|
<property name="jsdk" value="${build.tomcat.dir}/common/lib/servlet-api.jar"/>
|
50 |
1814
|
tao
|
<!-- usr for client testing, generally you don't need change-->
|
51 |
4098
|
daigle
|
<property name="mcuser" value="uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org"/>
|
52 |
|
|
<property name="mcpassword" value="kepler"/>
|
53 |
|
|
<property name="mcanotheruser" value="uid=tao,o=NCEAS,dc=ecoinformatics,dc=org"/>
|
54 |
|
|
<property name="mcanotherpassword" value="yourpass"/>
|
55 |
|
|
<property name="piscouser" value="uid=tao,o=PISCO,dc=ecoinformatics,dc=org"/>
|
56 |
|
|
<property name="piscopassword" value="yourpass"/>
|
57 |
|
|
<property name="lteruser" value="uid=jtao,o=LTER,dc=ecoinformatics,dc=org"/>
|
58 |
|
|
<property name="lterpassword" value="yourpass"/>
|
59 |
1801
|
tao
|
|
60 |
4098
|
daigle
|
<property name="debug" value="on" />
|
61 |
|
|
<property name="morphosourcedir" value="../morpho" />
|
62 |
|
|
<property name="utilitiesdir" value="../utilities" />
|
63 |
4720
|
daigle
|
<property name="installdir" value="${app.deploy.dir}/${metacat.context}" />
|
64 |
2175
|
tao
|
|
65 |
1941
|
brooke
|
<echo>*********** set jsdk to ${jsdk}</echo>
|
66 |
1103
|
tao
|
</target>
|
67 |
|
|
|
68 |
931
|
jones
|
<target name="init" depends="config">
|
69 |
2631
|
tao
|
<path id="compile.classpath">
|
70 |
|
|
<pathelement location="${jsdk}"/>
|
71 |
4080
|
daigle
|
<pathelement location="lib"/>
|
72 |
2631
|
tao
|
<fileset dir="lib">
|
73 |
|
|
<include name="*.jar"/>
|
74 |
|
|
</fileset>
|
75 |
4121
|
daigle
|
<fileset dir="lib">
|
76 |
3059
|
berkley
|
<include name="xalan.jar"/>
|
77 |
3030
|
sgarg
|
</fileset>
|
78 |
2631
|
tao
|
<fileset dir="lib/lsid_lib">
|
79 |
|
|
<include name="*.jar"/>
|
80 |
4098
|
daigle
|
</fileset>
|
81 |
3034
|
perry
|
|
82 |
|
|
<!-- Include geoserver, geotools, et. al. -->
|
83 |
|
|
<fileset dir="lib/spatial/geoserver/WEB-INF/lib">
|
84 |
|
|
<include name="*.jar"/>
|
85 |
2631
|
tao
|
</fileset>
|
86 |
3034
|
perry
|
<pathelement location="lib/spatial/geoserver/WEB-INF/classes"/>
|
87 |
|
|
|
88 |
4943
|
costa
|
<!-- Include OAI-PMH -->
|
89 |
|
|
<fileset dir="lib/oaipmh">
|
90 |
|
|
<include name="*.jar"/>
|
91 |
|
|
</fileset>
|
92 |
|
|
|
93 |
4121
|
daigle
|
</path>
|
94 |
2631
|
tao
|
|
95 |
931
|
jones
|
<!-- It is less likely you'll need to make any changes from here down,
|
96 |
|
|
but customization is possible -->
|
97 |
1929
|
brooke
|
<property name="name" value="metacat"/>
|
98 |
|
|
<property name="Name" value="MetaCat"/>
|
99 |
|
|
<property name="debugprefix" value="${Name}:"/>
|
100 |
4080
|
daigle
|
<property name="release" value="${metacat.version}"/>
|
101 |
3095
|
cjones
|
<property name="style-common-relpath" value="/style/common"/>
|
102 |
|
|
<property name="style-shared-relpath" value="/style/shared"/>
|
103 |
4098
|
daigle
|
<property name="schema-relpath" value="/schema"/>
|
104 |
3095
|
cjones
|
<property name="style-common-cvsrelpath" value="lib${style-common-relpath}"/>
|
105 |
4098
|
daigle
|
<property name="schema-cvsrelpath" value="lib${schema-relpath}"/>
|
106 |
1929
|
brooke
|
<property name="style-skins-relpath" value="/style/skins"/>
|
107 |
2461
|
sgarg
|
<property name="util-module" value="utilities" />
|
108 |
4611
|
daigle
|
<property name="utilities-tag" value="UTILITIES_1_0_0" />
|
109 |
1929
|
brooke
|
<property name="eml-module" value="eml" />
|
110 |
|
|
<property name="eml-version" value="2.0.0beta6" />
|
111 |
4841
|
daigle
|
<property name="eml-beta-tag" value="BRANCH_EML_2_0_0_BETA_6_FOR_METACAT" />
|
112 |
|
|
<property name="eml2_0_0-schema-tag" value="RELEASE_EML_2_0_0_UPDATE_1" />
|
113 |
3994
|
berkley
|
<property name="eml2_0_1-schema-tag" value="RELEASE_EML_2_0_1" />
|
114 |
4821
|
daigle
|
<property name="eml2_1_0-schema-tag" value="RELEASE_EML_2_1_0" />
|
115 |
4841
|
daigle
|
<property name="eml2-style-tag" value="RELEASE_EML_UTILS_0_9_0" />
|
116 |
2228
|
sgarg
|
<property name="eml2_0_0namespace" value="eml://ecoinformatics.org/eml-2.0.0" />
|
117 |
|
|
<property name="eml2_0_1namespace" value="eml://ecoinformatics.org/eml-2.0.1" />
|
118 |
|
|
<property name="eml2_1_0namespace" value="eml://ecoinformatics.org/eml-2.1.0" />
|
119 |
1929
|
brooke
|
<property name="stmmlnamespace" value="http://www.xml-cml.org/schema/stmml" />
|
120 |
1933
|
brooke
|
<property name="eml-css" value="eml_xsl.css"/>
|
121 |
|
|
<property name="eml-module.default.css"
|
122 |
|
|
value="default.css"/>
|
123 |
4435
|
daigle
|
<property name="systemidserver" value=""/>
|
124 |
|
|
<property name="html-path" value=""/>
|
125 |
|
|
|
126 |
2965
|
tao
|
|
127 |
1929
|
brooke
|
<!-- Config for registry variables -->
|
128 |
4080
|
daigle
|
<!-- TODO: SCW remove these, covered in metacat.properties or in skin.properties -->
|
129 |
1933
|
brooke
|
<property name="scope" value="obfs"/>
|
130 |
|
|
<property name="responseForm" value="genericResponse.tmpl"/>
|
131 |
|
|
<property name="entryForm" value="entryForm.tmpl"/>
|
132 |
|
|
<property name="guide" value="genericGuide.tmpl"/>
|
133 |
2781
|
sgarg
|
<property name="loginForm" value="loginForm.tmpl"/>
|
134 |
2343
|
sgarg
|
<property name="confirmData" value="confirmData.tmpl"/>
|
135 |
|
|
<property name="deleteData" value="deleteData.tmpl"/>
|
136 |
|
|
<property name="genericHeader" value="genericHeader.tmpl"/>
|
137 |
|
|
<property name="genericFooter" value="genericFooter.tmpl"/>
|
138 |
1929
|
brooke
|
|
139 |
2343
|
sgarg
|
<filter token="scope" value="${scope}"/>
|
140 |
|
|
<filter token="responseForm" value="${responseForm}"/>
|
141 |
|
|
<filter token="entryForm" value="${entryForm}"/>
|
142 |
|
|
<filter token="guide" value="${guide}"/>
|
143 |
2781
|
sgarg
|
<filter token="loginForm" value="${loginForm}"/>
|
144 |
2343
|
sgarg
|
<filter token="confirmData" value="${confirmData}"/>
|
145 |
|
|
<filter token="deleteData" value="${deleteData}"/>
|
146 |
|
|
<filter token="genericHeader" value="${genericHeader}"/>
|
147 |
|
|
<filter token="genericFooter" value="${genericFooter}"/>
|
148 |
|
|
<filter token="adminname" value="${adminname}"/>
|
149 |
|
|
<filter token="recipient" value="${recipient}"/>
|
150 |
4080
|
daigle
|
<filter token="metacatVersion" value="${metacat.version}"/>
|
151 |
4797
|
daigle
|
<filter token="metacatRC" value="${metacat.releaseCandidate}"/>
|
152 |
|
|
<filter token="build.context" value="${metacat.context}"/>
|
153 |
2343
|
sgarg
|
|
154 |
4098
|
daigle
|
<filter token="docrooturl" value="./" />
|
155 |
|
|
<filter token="mcuser" value="${mcuser}"/>
|
156 |
|
|
<filter token="mcpassword" value="${mcpassword}"/>
|
157 |
|
|
<filter token="mcanotheruser" value="${mcanotheruser}"/>
|
158 |
|
|
<filter token="mcanotherpassword" value="${mcanotherpassword}"/>
|
159 |
|
|
<filter token="eml-css" value="${eml-css}"/>
|
160 |
|
|
<filter token="style-skins-relpath" value="${style-skins-relpath}"/>
|
161 |
1929
|
brooke
|
<filter token="style-common-relpath" value="${style-common-relpath}"/>
|
162 |
2343
|
sgarg
|
|
163 |
4098
|
daigle
|
<filter token="eml-version" value="${eml-version}"/>
|
164 |
|
|
<filter token="eml2_0_0namespace" value="${eml2_0_0namespace}"/>
|
165 |
|
|
<filter token="eml2_0_1namespace" value="${eml2_0_1namespace}"/>
|
166 |
|
|
<filter token="eml2_1_0namespace" value="${eml2_1_0namespace}"/>
|
167 |
|
|
<filter token="stmmlnamespace" value="${stmmlnamespace}"/>
|
168 |
|
|
<filter token="debugprefix" value="${debugprefix}"/>
|
169 |
1487
|
tao
|
|
170 |
4098
|
daigle
|
<filter token="defaultStage" value="${defaultStage}"/>
|
171 |
|
|
<filter token="defaultHeader" value="${defaultHeader}"/>
|
172 |
|
|
<filter token="defaultFooter" value="${defaultFooter}"/>
|
173 |
|
|
<filter token="defaultChangePass" value="${defaultChangePass}"/>
|
174 |
|
|
<filter token="defaultResetPass" value="${defaultResetPass}"/>
|
175 |
|
|
<filter token="changePassSuccess" value="${changePassSuccess}"/>
|
176 |
|
|
<filter token="resetPassSuccess" value="${resetPassSuccess}"/>
|
177 |
|
|
<filter token="registerFailed" value="${registerFailed}"/>
|
178 |
|
|
<filter token="registerLter" value="${registerLter}"/>
|
179 |
|
|
<filter token="registerMatch" value="${registerMatch}"/>
|
180 |
|
|
<filter token="registerSuccess" value="${registerSuccess}"/>
|
181 |
|
|
<filter token="register" value="${register}"/>
|
182 |
|
|
<filter token="searchResults" value="${searchResults}"/>
|
183 |
3174
|
tao
|
<filter token="ldapMainServerFailure" value="${ldapMainServerFailure}"/>
|
184 |
4098
|
daigle
|
<filter token="lter-user" value="${lteruser}"/>
|
185 |
|
|
<filter token="lter-pass" value="${lterpassword}"/>
|
186 |
|
|
<filter token="pisco-user" value="${piscouser}"/>
|
187 |
|
|
<filter token="pisco-pass" value="${piscopassword}"/>
|
188 |
3575
|
tao
|
|
189 |
2549
|
tao
|
|
190 |
4179
|
daigle
|
<!-- MCD BYE filter token="timedreplication" value="${timedreplication}" / -->
|
191 |
|
|
<!-- MCD BYE filter token="firsttimedreplication" value="${firsttimedreplication}" / -->
|
192 |
|
|
<!-- MCD BYE filter token="timedreplicationinterval" value="${timedreplicationinterval}" / -->
|
193 |
2549
|
tao
|
|
194 |
4098
|
daigle
|
<property name="srcdir" value="./src" />
|
195 |
|
|
<property name="lib.dir" value="./lib" />
|
196 |
|
|
<property name="docdir" value="./docs" />
|
197 |
4240
|
daigle
|
<property name="cgidir" value="./cgi-bin" />
|
198 |
4098
|
daigle
|
<property name="testdir" value="./test" />
|
199 |
|
|
<property name="testtorun" value="BuildIndexTest" />
|
200 |
|
|
<property name="junittestsdir" value="./test/edu/ucsb/nceas/metacattest" />
|
201 |
|
|
<property name="junitnettestsdir" value="./test/edu/ucsb/nceas/metacatnettest" />
|
202 |
|
|
<property name="build.dir" value="./build"/>
|
203 |
|
|
<property name="build.src" value="${build.dir}/src"/>
|
204 |
|
|
<property name="build.dest" value="${build.dir}/classes"/>
|
205 |
|
|
<property name="build.samples" value="${build.dir}/samples"/>
|
206 |
|
|
<property name="build.tests" value="${build.dir}/tests"/>
|
207 |
|
|
<property name="build.tmp" value="${build.dir}/tmp"/>
|
208 |
|
|
<property name="build.metacattest" value="${build.tests}/metacattest"/>
|
209 |
1116
|
tao
|
<property name="build.metacatnettest" value="${build.tests}/metacatnettest"/>
|
210 |
4098
|
daigle
|
<property name="build.data" value="${build.dir}/data"/>
|
211 |
|
|
<property name="build.javadocs" value="${build.dir}/docs/api"/>
|
212 |
|
|
<property name="build.war" value="${build.dir}/war"/>
|
213 |
|
|
<property name="dist.dir" value="dist"/>
|
214 |
|
|
<property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
|
215 |
|
|
<property name="ver.src" value="${ver.dir}/src"/>
|
216 |
|
|
<property name="util.dir" value="${dist.dir}/${util-module}"/>
|
217 |
4648
|
daigle
|
<property name="test.dir" value="${dist.dir}/test"/>
|
218 |
2401
|
costa
|
<!-- directories for creating a Harvest List Editor distribution -->
|
219 |
4098
|
daigle
|
<property name="dist.dir.hle" value="disthle"/>
|
220 |
|
|
<property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/>
|
221 |
4658
|
daigle
|
<property name="pkg.dir" value="./package" />
|
222 |
|
|
<property name="deb.pkg.dir" value="${pkg.dir}/debian" />
|
223 |
4098
|
daigle
|
|
224 |
2965
|
tao
|
<property name="ecogrid-target-name" value="metacatImpl"/>
|
225 |
|
|
<property name="ecogrid-module-dest-dir" value =".."/>
|
226 |
4098
|
daigle
|
<property name="ecogrid-module" value="seek/projects/ecogrid"/>
|
227 |
|
|
<property name="ecogrid-dist-dir" value="${dist.dir}/${ecogrid-module}"/>
|
228 |
|
|
<property name="ecogrid-dir" value="${ecogrid-module-dest-dir}/${ecogrid-module}"/>
|
229 |
806
|
jones
|
|
230 |
4098
|
daigle
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
231 |
2317
|
jones
|
<condition property="utilities.required">
|
232 |
|
|
<or>
|
233 |
|
|
<not><available file="lib/httpclient.jar"/></not>
|
234 |
|
|
<not><available file="lib/utilities.jar"/></not>
|
235 |
4513
|
daigle
|
<not><available file="${utilitiesdir}" type="dir"/></not>
|
236 |
2317
|
jones
|
</or>
|
237 |
|
|
</condition>
|
238 |
4513
|
daigle
|
<!-- peer.utilities.required is used when there is no utilities
|
239 |
|
|
directory at ${utilitiesdir} -->
|
240 |
4515
|
daigle
|
<condition property="peer.utilities.required">
|
241 |
4513
|
daigle
|
<or>
|
242 |
|
|
<not><available file="${utilitiesdir}" type="dir"/></not>
|
243 |
|
|
</or>
|
244 |
|
|
</condition>
|
245 |
2318
|
jones
|
<condition property="eml.required">
|
246 |
|
|
<or>
|
247 |
|
|
<not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not>
|
248 |
|
|
<not><available file="lib/schema/eml-2.0.0/eml.xsd"/></not>
|
249 |
4328
|
daigle
|
<not><available file="lib/schema/eml-2.1.0/eml.xsd"/></not>
|
250 |
2318
|
jones
|
<not><available file="lib/dtd/eml-dataset-2.0.0beta6.dtd"/></not>
|
251 |
|
|
</or>
|
252 |
|
|
</condition>
|
253 |
2965
|
tao
|
|
254 |
|
|
<condition property="ecogrid.required">
|
255 |
|
|
<or>
|
256 |
|
|
<not><available file="${ecogrid-dir}/build.properties"/></not>
|
257 |
|
|
<not><available file="${ecogrid-dir}/buildfiles/metacatImpl.xml"/></not>
|
258 |
|
|
</or>
|
259 |
|
|
</condition>
|
260 |
2599
|
jones
|
|
261 |
113
|
jones
|
</target>
|
262 |
1311
|
berkley
|
|
263 |
348
|
jones
|
<target name="prepare" depends="init">
|
264 |
|
|
<mkdir dir="${build.dir}"/>
|
265 |
|
|
<mkdir dir="${build.src}"/>
|
266 |
|
|
<mkdir dir="${build.dest}"/>
|
267 |
516
|
jones
|
<mkdir dir="${build.javadocs}"/>
|
268 |
1778
|
tao
|
<mkdir dir="${build.tmp}"/>
|
269 |
348
|
jones
|
|
270 |
822
|
jones
|
<copy todir="${build.src}" filtering="yes">
|
271 |
|
|
<fileset dir="${srcdir}">
|
272 |
|
|
<include name="edu/**"/>
|
273 |
|
|
<include name="com/**"/>
|
274 |
3194
|
berkley
|
<include name="org/**"/>
|
275 |
877
|
jones
|
<include name="**/*.sql"/>
|
276 |
822
|
jones
|
<exclude name="**/CVS*"/>
|
277 |
|
|
<exclude name="**/.#*"/>
|
278 |
|
|
</fileset>
|
279 |
|
|
</copy>
|
280 |
2344
|
sgarg
|
<available file="lib/style/common/emlb6toeml2" type="dir"
|
281 |
1954
|
jones
|
property="styles.not.needed"/>
|
282 |
348
|
jones
|
</target>
|
283 |
|
|
|
284 |
1939
|
brooke
|
<target name="compile" depends="prepare,utilities"
|
285 |
1986
|
jones
|
description="Compiles java code to build dir, and copies metacat props files there">
|
286 |
1939
|
brooke
|
|
287 |
1311
|
berkley
|
<javac srcdir="${build.src}"
|
288 |
|
|
destdir="${build.dest}"
|
289 |
1827
|
jones
|
debug="${debug}"
|
290 |
3994
|
berkley
|
excludes="**/*.sql **/stringclient/** **/client/*.java **/harvesterClient/*.java">
|
291 |
2599
|
jones
|
<classpath>
|
292 |
|
|
<path refid="compile.classpath"/>
|
293 |
|
|
</classpath>
|
294 |
|
|
</javac>
|
295 |
1311
|
berkley
|
</target>
|
296 |
113
|
jones
|
|
297 |
2322
|
jones
|
<target name="jar" depends="compile,geteml"
|
298 |
4513
|
daigle
|
description="Compiles and jars metacat java code to metacat.jar in build dir ">
|
299 |
1939
|
brooke
|
|
300 |
353
|
jones
|
<delete file="${build.dir}/${name}.jar" />
|
301 |
635
|
jones
|
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
|
302 |
2135
|
costa
|
excludes="**/protocols/ **/harvesterClient/" />
|
303 |
1311
|
berkley
|
</target>
|
304 |
|
|
|
305 |
1939
|
brooke
|
<target name="protocol" depends="compile"
|
306 |
|
|
description="Compiles and jars protocol java code to protocol.jar in build dir">
|
307 |
635
|
jones
|
<delete file="${build.dir}/protocol.jar" />
|
308 |
|
|
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
|
309 |
|
|
includes="**/protocols/" />
|
310 |
1311
|
berkley
|
</target>
|
311 |
113
|
jones
|
|
312 |
4514
|
daigle
|
<target name="utilities" depends="config,getpeerutilities" if="utilities.required">
|
313 |
1796
|
jones
|
<ant dir="${utilitiesdir}" target="clean" inheritAll="false" />
|
314 |
|
|
<ant dir="${utilitiesdir}" target="jar" inheritAll="false" />
|
315 |
1780
|
jones
|
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" />
|
316 |
|
|
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" />
|
317 |
|
|
</target>
|
318 |
4513
|
daigle
|
|
319 |
|
|
<target name="getpeerutilities" depends="prepare" if="peer.utilities.required"
|
320 |
|
|
description="Checks utilities out of cvs and copies it to your utilitiesdir if it does not already exist">
|
321 |
|
|
<echo>Enter CVS password: </echo>
|
322 |
4819
|
daigle
|
<cvs cvsRoot="${cvsroot}" package="${util-module}"
|
323 |
|
|
tag="${utilities-tag}" dest="${utilitiesdir}/.." />
|
324 |
4513
|
daigle
|
</target>
|
325 |
1780
|
jones
|
|
326 |
2461
|
sgarg
|
<target name="getutilities" depends="prepare"
|
327 |
|
|
description="Checks utility out of cvs and copies it to your metacat cvs sandbox">
|
328 |
|
|
<echo>Enter CVS password: </echo>
|
329 |
|
|
<cvs cvsRoot="${cvsroot}"
|
330 |
2468
|
sgarg
|
package="${util-module}"
|
331 |
4611
|
daigle
|
tag="${utilities-tag}"
|
332 |
2461
|
sgarg
|
dest="${build.tmp}" />
|
333 |
|
|
</target>
|
334 |
|
|
|
335 |
1939
|
brooke
|
<target name="client" depends="utilities, prepare"
|
336 |
|
|
description="Compiles metacat-client java code to build dir">
|
337 |
1780
|
jones
|
<javac srcdir="${build.src}"
|
338 |
|
|
destdir="${build.dest}"
|
339 |
2599
|
jones
|
includes="edu/ucsb/nceas/metacat/client/*">
|
340 |
|
|
<classpath>
|
341 |
|
|
<path refid="compile.classpath"/>
|
342 |
|
|
</classpath>
|
343 |
|
|
</javac>
|
344 |
1780
|
jones
|
</target>
|
345 |
|
|
|
346 |
1939
|
brooke
|
<target name="clientjar" depends="client"
|
347 |
|
|
description="Compiles and jars metacat-client java code to metacat-client.jar in build dir">
|
348 |
1780
|
jones
|
<delete file="${build.dir}/${name}-client.jar" />
|
349 |
|
|
<jar jarfile="${build.dir}/${name}-client.jar" basedir="${build.dest}"
|
350 |
|
|
includes="**/metacat/client/" />
|
351 |
|
|
</target>
|
352 |
|
|
|
353 |
2748
|
costa
|
<target name="advancedsearchjar" depends="compile"
|
354 |
|
|
description="Compiles and jars advanced search Java code to advancedsearch.jar in build dir">
|
355 |
|
|
<delete file="${build.dir}/advancedsearch.jar" />
|
356 |
|
|
<jar jarfile="${build.dir}/advancedsearch.jar" basedir="${build.dest}"
|
357 |
|
|
includes="**/metacat/advancedsearch/" />
|
358 |
|
|
</target>
|
359 |
|
|
|
360 |
2059
|
costa
|
<target name="harvester" depends="client"
|
361 |
1950
|
costa
|
description="Compiles harvester java code to build dir">
|
362 |
|
|
<javac srcdir="${build.src}"
|
363 |
|
|
destdir="${build.dest}"
|
364 |
2599
|
jones
|
includes="edu/ucsb/nceas/metacat/harvesterClient/*">
|
365 |
|
|
<classpath>
|
366 |
|
|
<path refid="compile.classpath"/>
|
367 |
|
|
</classpath>
|
368 |
|
|
</javac>
|
369 |
1950
|
costa
|
</target>
|
370 |
|
|
|
371 |
|
|
<target name="harvesterjar" depends="harvester"
|
372 |
2059
|
costa
|
description="Compiles and jars harvester java code to harvester.jar in build dir">
|
373 |
|
|
<delete file="${build.dir}/harvester.jar" />
|
374 |
|
|
<jar jarfile="${build.dir}/harvester.jar" basedir="${build.dest}"
|
375 |
1950
|
costa
|
includes="**/metacat/harvesterClient/" />
|
376 |
|
|
</target>
|
377 |
|
|
|
378 |
2369
|
costa
|
<target name="harvestListEditorDist" depends="harvesterjar"
|
379 |
|
|
description="Prepares a distribution of the Harvest List Editor tool">
|
380 |
2401
|
costa
|
<mkdir dir="${dist.dir.hle}"/>
|
381 |
|
|
<delete dir="${ver.dir.hle}" />
|
382 |
|
|
<mkdir dir="${ver.dir.hle}"/>
|
383 |
|
|
<copy todir="${ver.dir.hle}" file="${build.dir}/harvester.jar"/>
|
384 |
|
|
<copy todir="${ver.dir.hle}" file="lib/xercesImpl.jar"/>
|
385 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestList.xsd"/>
|
386 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.bat"/>
|
387 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.sh"/>
|
388 |
|
|
<delete file="./harvest-list-editor-${release}.zip"/>
|
389 |
|
|
<zip zipfile="./harvest-list-editor-${release}.zip" basedir="${ver.dir.hle}" />
|
390 |
|
|
<delete file="./harvest-list-editor-${release}.tar.gz" />
|
391 |
|
|
<tar tarfile="./harvest-list-editor-${release}.tar" basedir="${ver.dir.hle}" />
|
392 |
|
|
<gzip zipfile="./harvest-list-editor-${release}.tar.gz"
|
393 |
|
|
src="./harvest-list-editor-${release}.tar"/>
|
394 |
|
|
<delete file="./harvest-list-editor-${release}.tar" />
|
395 |
2369
|
costa
|
</target>
|
396 |
4513
|
daigle
|
|
397 |
4240
|
daigle
|
<target name="geteml" depends="getemlpre2,geteml2+,getConversionXSL" if="eml.required"
|
398 |
1939
|
brooke
|
description="Calls getemlpre2 and geteml2+ targets" />
|
399 |
|
|
|
400 |
2318
|
jones
|
<target name="getemlpre2" depends="prepare" if="eml.required"
|
401 |
1939
|
brooke
|
description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox">
|
402 |
1612
|
tao
|
<echo>Enter CVS password: </echo>
|
403 |
|
|
<cvs cvsRoot="${cvsroot}"
|
404 |
|
|
package="${eml-module}"
|
405 |
4841
|
daigle
|
tag="${eml-beta-tag}"
|
406 |
|
|
dest="${build.tmp}/eml_${eml-beta-tag}" />
|
407 |
1612
|
tao
|
<mkdir dir="lib/dtd" />
|
408 |
|
|
<copy todir="lib/dtd" filtering="yes">
|
409 |
4841
|
daigle
|
<fileset dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}">
|
410 |
1612
|
tao
|
<include name="*.dtd"/>
|
411 |
|
|
</fileset>
|
412 |
|
|
<mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
|
413 |
|
|
</copy>
|
414 |
2228
|
sgarg
|
|
415 |
|
|
<copy todir="${style-common-cvsrelpath}" filtering="yes">
|
416 |
4841
|
daigle
|
<fileset dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}/style">
|
417 |
2228
|
sgarg
|
<include name="**/*.xsl"/>
|
418 |
|
|
</fileset>
|
419 |
|
|
</copy>
|
420 |
1939
|
brooke
|
</target>
|
421 |
|
|
|
422 |
2318
|
jones
|
<target name="geteml2+" depends="prepare" if="eml.required"
|
423 |
1939
|
brooke
|
description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox">
|
424 |
|
|
<echo>Enter CVS password: </echo>
|
425 |
1612
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
426 |
|
|
package="${eml-module}"
|
427 |
4841
|
daigle
|
tag="${eml2_0_0-schema-tag}"
|
428 |
|
|
dest="${build.tmp}/eml_${eml2_0_0-schema-tag}" />
|
429 |
2228
|
sgarg
|
<mkdir dir="lib/schema/eml-2.0.0" />
|
430 |
|
|
<copy todir="lib/schema/eml-2.0.0" filtering="yes">
|
431 |
4841
|
daigle
|
<fileset dir="${build.tmp}/eml_${eml2_0_0-schema-tag}/${eml-module}">
|
432 |
1612
|
tao
|
<include name="*.xsd"/>
|
433 |
|
|
</fileset>
|
434 |
2175
|
tao
|
|
435 |
1939
|
brooke
|
<!-- shouldn't we have a mapper here like this??
|
436 |
|
|
<mapper type="glob" from="eml-*.xsd" to="eml-*-${eml-version}.xsd" />
|
437 |
2175
|
tao
|
|
438 |
|
|
Jing's code didn't nave one - does it need to be added?
|
439 |
1939
|
brooke
|
NOTE that eml-version is set to beta 6, so this would need changing -->
|
440 |
2175
|
tao
|
|
441 |
1612
|
tao
|
</copy>
|
442 |
3018
|
sgarg
|
<!-- <antcall target="copyxsl">
|
443 |
4841
|
daigle
|
<param name="cvs.tagname" value="${eml2_0_0-schema-tag}" />
|
444 |
2228
|
sgarg
|
<param name="dirname" value="eml-2.0.0" />
|
445 |
3018
|
sgarg
|
</antcall> -->
|
446 |
3807
|
tao
|
|
447 |
|
|
<!-- Checkout eml201 for given schema tag-->
|
448 |
2228
|
sgarg
|
<echo>Enter CVS password: </echo>
|
449 |
|
|
<cvs cvsRoot="${cvsroot}"
|
450 |
|
|
package="${eml-module}"
|
451 |
3807
|
tao
|
tag="${eml2_0_1-schema-tag}"
|
452 |
|
|
dest="${build.tmp}/eml_${eml2_0_1-schema-tag}" />
|
453 |
2228
|
sgarg
|
<mkdir dir="lib/schema/eml-2.0.1" />
|
454 |
|
|
<copy todir="lib/schema/eml-2.0.1" filtering="yes">
|
455 |
3807
|
tao
|
<fileset dir="${build.tmp}/eml_${eml2_0_1-schema-tag}/${eml-module}">
|
456 |
2228
|
sgarg
|
<include name="*.xsd"/>
|
457 |
|
|
</fileset>
|
458 |
|
|
</copy>
|
459 |
3807
|
tao
|
|
460 |
|
|
<!-- Checkout eml201 again for given style sheet tag-->
|
461 |
4841
|
daigle
|
<!-- echo>Enter CVS password: </echo>
|
462 |
3807
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
463 |
|
|
package="${eml-module}"
|
464 |
|
|
tag="${eml2_0_1-style-tag}"
|
465 |
|
|
dest="${build.tmp}/eml_${eml2_0_1-style-tag}" />
|
466 |
2228
|
sgarg
|
<antcall target="copyxsl">
|
467 |
3807
|
tao
|
<param name="cvs.tagname" value="${eml2_0_1-style-tag}" />
|
468 |
2228
|
sgarg
|
<param name="dirname" value="eml-2.0.1" />
|
469 |
4841
|
daigle
|
</antcall -->
|
470 |
4328
|
daigle
|
|
471 |
|
|
<!-- Checkout eml210 for given schema tag-->
|
472 |
|
|
<echo>Enter CVS password: </echo>
|
473 |
|
|
<cvs cvsRoot="${cvsroot}"
|
474 |
|
|
package="${eml-module}"
|
475 |
|
|
tag="${eml2_1_0-schema-tag}"
|
476 |
|
|
dest="${build.tmp}/eml_${eml2_1_0-schema-tag}" />
|
477 |
|
|
<mkdir dir="lib/schema/eml-2.1.0" />
|
478 |
|
|
<copy todir="lib/schema/eml-2.1.0" filtering="yes">
|
479 |
|
|
<fileset dir="${build.tmp}/eml_${eml2_1_0-schema-tag}/${eml-module}">
|
480 |
|
|
<include name="*.xsd"/>
|
481 |
|
|
</fileset>
|
482 |
|
|
</copy>
|
483 |
|
|
|
484 |
|
|
<!-- Checkout eml210 for given style sheet tag-->
|
485 |
|
|
<echo>Enter CVS password: </echo>
|
486 |
|
|
<cvs cvsRoot="${cvsroot}"
|
487 |
|
|
package="${eml-module}"
|
488 |
4841
|
daigle
|
tag="${eml2-style-tag}"
|
489 |
|
|
dest="${build.tmp}/eml_${eml2-style-tag}" />
|
490 |
4328
|
daigle
|
<antcall target="copyxsl">
|
491 |
4841
|
daigle
|
<param name="cvs.tagname" value="${eml2-style-tag}" />
|
492 |
|
|
<!-- param name="dirname" value="eml-2.1.0" / -->
|
493 |
|
|
<param name="dirname" value="eml-2" />
|
494 |
4328
|
daigle
|
</antcall>
|
495 |
1939
|
brooke
|
</target>
|
496 |
|
|
|
497 |
2175
|
tao
|
<target name="copyxsl"
|
498 |
1939
|
brooke
|
description="Copies xsl stylesheets from checkout in build/tmp to your metacat cvs sandbox">
|
499 |
4080
|
daigle
|
|
500 |
1939
|
brooke
|
<delete file="${style-common-cvsrelpath}/${eml-css}"/>
|
501 |
2175
|
tao
|
|
502 |
2228
|
sgarg
|
<copy todir="${style-common-cvsrelpath}/${dirname}" filtering="yes">
|
503 |
|
|
<fileset dir="${build.tmp}/eml_${cvs.tagname}/${eml-module}/style/eml">
|
504 |
1929
|
brooke
|
<include name="**/*.xsl"/>
|
505 |
1612
|
tao
|
</fileset>
|
506 |
|
|
</copy>
|
507 |
1939
|
brooke
|
|
508 |
2175
|
tao
|
|
509 |
|
|
<!-- now copy default css from eml module and put it in style-common-path
|
510 |
1933
|
brooke
|
dir with a new name, so other skin-specific css can import it if reqd -->
|
511 |
1939
|
brooke
|
<copy file="${build.tmp}/eml_${cvs.tagname}/${eml-module}/${eml-module.default.css}"
|
512 |
1938
|
brooke
|
tofile="${style-common-cvsrelpath}/${eml-css}" />
|
513 |
1612
|
tao
|
|
514 |
1463
|
tao
|
</target>
|
515 |
3335
|
tao
|
|
516 |
3817
|
tao
|
<target name="correctEML201Docs" depends="jar"
|
517 |
|
|
description="Uses the ant task to run a JAVA patch class to correct invalide eml201 documents which were generated by wrong schema">
|
518 |
|
|
<copy todir="${build.dir}" file="lib/metacat.properties" filtering="yes"/>
|
519 |
|
|
<java classname="edu.ucsb.nceas.metacat.EML201DocumentCorrector" >
|
520 |
|
|
<classpath>
|
521 |
|
|
<path refid="compile.classpath"/>
|
522 |
|
|
<fileset dir="${build.dir}">
|
523 |
|
|
<include name="${name}.jar"/>
|
524 |
|
|
</fileset>
|
525 |
|
|
</classpath>
|
526 |
|
|
</java>
|
527 |
|
|
</target>
|
528 |
2353
|
sgarg
|
|
529 |
3072
|
perry
|
<target name="install-spatial" depends="jar,clientjar,harvesterjar"
|
530 |
3034
|
perry
|
description="Installs spatial option for metacat">
|
531 |
|
|
|
532 |
|
|
<property name="spatial.dir" value="./lib/spatial"/>
|
533 |
|
|
<property name="spatial.geoserver.dir" value="${spatial.dir}/geoserver"/>
|
534 |
|
|
<property name="spatial.webinf-mods" value="${spatial.dir}/WEB-INF"/>
|
535 |
|
|
|
536 |
|
|
<!-- Copy geoserver libs into ${war.lib} -->
|
537 |
|
|
<copy todir="${war.lib}" filtering="no">
|
538 |
|
|
<fileset dir="${spatial.geoserver.dir}/WEB-INF/lib">
|
539 |
|
|
<include name="**"/>
|
540 |
|
|
</fileset>
|
541 |
|
|
</copy>
|
542 |
|
|
|
543 |
|
|
<!-- Copy everything in geoservers WEB-INF (except the libs) into ${war.webinf} -->
|
544 |
|
|
<copy todir="${war.webinf}" filtering="no">
|
545 |
|
|
<fileset dir="${spatial.geoserver.dir}/WEB-INF">
|
546 |
|
|
<exclude name="lib/**"/>
|
547 |
|
|
<exclude name="web.xml"/>
|
548 |
|
|
</fileset>
|
549 |
|
|
</copy>
|
550 |
|
|
|
551 |
|
|
<!-- Copy the rest of the geoserver codebase into ${war.context} -->
|
552 |
|
|
<copy todir="${war.context}" filtering="no">
|
553 |
|
|
<fileset dir="${spatial.geoserver.dir}">
|
554 |
|
|
<exclude name="WEB-INF/**"/>
|
555 |
|
|
<exclude name="index.jsp"/>
|
556 |
|
|
</fileset>
|
557 |
|
|
</copy>
|
558 |
|
|
|
559 |
|
|
<!-- Copy the geoserver index.jsp but rename it to avoid conflicting w/metcat -->
|
560 |
|
|
<copy file="${spatial.geoserver.dir}/WEB-INF/pages/index.jsp"
|
561 |
|
|
tofile="${war.context}/geoserver.jsp"
|
562 |
|
|
overwrite="true"
|
563 |
|
|
filtering="no"/>
|
564 |
|
|
|
565 |
|
|
<!-- Copy the rest of the modified geoserver web-inf files
|
566 |
|
|
<copy todir="${war.webinf}" filtering="no">
|
567 |
|
|
<fileset dir="${spatial.webinf-mods}">
|
568 |
|
|
<exclude name="web.xml.combined"/>
|
569 |
|
|
</fileset>
|
570 |
|
|
</copy> -->
|
571 |
|
|
|
572 |
|
|
</target>
|
573 |
|
|
|
574 |
4873
|
daigle
|
<target name="install" depends="build-metacat" description="* Full Install For Development *">
|
575 |
4720
|
daigle
|
<copy file="${dist.dir}/${metacat.context}.war" todir="${app.deploy.dir}"/>
|
576 |
|
|
<delete dir="${app.deploy.dir}/${metacat.context}" />
|
577 |
4080
|
daigle
|
<tstamp>
|
578 |
|
|
<format property="NOW" pattern="MM/dd/yyyy hh:mm:ss aa"/>
|
579 |
|
|
</tstamp>
|
580 |
|
|
<echo>Dev install completed at ${NOW}</echo>
|
581 |
|
|
</target>
|
582 |
3034
|
perry
|
|
583 |
4638
|
daigle
|
<target name="build-metacat" depends="install-ecogrid"
|
584 |
|
|
description="Build Metacat">
|
585 |
|
|
</target>
|
586 |
2957
|
tao
|
|
587 |
4797
|
daigle
|
<target name="install-ecogrid" depends="warPrepare, get-ecogrid" if="enable.ecogrid"
|
588 |
2957
|
tao
|
description="Install Ecogrid Compentent">
|
589 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="clean" inheritall="false">
|
590 |
2977
|
tao
|
<property name="context" value="${metacat.context}"/>
|
591 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
592 |
4405
|
daigle
|
<!-- property name="metacat.dir" value="."/ -->
|
593 |
2977
|
tao
|
</ant>
|
594 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="war" inheritall="false">
|
595 |
2957
|
tao
|
<property name="context" value="${metacat.context}"/>
|
596 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
597 |
4405
|
daigle
|
<!-- property name="metacat.dir" value="."/ -->
|
598 |
2957
|
tao
|
</ant>
|
599 |
4797
|
daigle
|
<!-- war destfile="${ecogrid-dir}/build/${metacat.context}.war" update="true">
|
600 |
2978
|
tao
|
<webinf dir="${ecogrid-dir}/lib">
|
601 |
|
|
<include name="server-config.wsdd"/>
|
602 |
|
|
</webinf>
|
603 |
4797
|
daigle
|
</war -->
|
604 |
2965
|
tao
|
<copy file="${ecogrid-dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/>
|
605 |
2978
|
tao
|
|
606 |
|
|
|
607 |
2957
|
tao
|
</target>
|
608 |
2965
|
tao
|
|
609 |
|
|
<target name="get-ecogrid" depends="init" if="ecogrid.required" description="Check out ecogrid module">
|
610 |
|
|
<echo>Enter CVS password: </echo>
|
611 |
|
|
<cvs cvsRoot="${cvsroot}"
|
612 |
|
|
package="${ecogrid-module}" dest="${ecogrid-module-dest-dir}"/>
|
613 |
4098
|
daigle
|
</target>
|
614 |
2965
|
tao
|
|
615 |
4841
|
daigle
|
<!-- target name="deploy-ecogrid" depends="clean-ecogrid-server-config-wsdd" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service">
|
616 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="deploy" inheritall="false">
|
617 |
2957
|
tao
|
<property name="context" value="${metacat.context}"/>
|
618 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
619 |
4405
|
daigle
|
<property name="metacat.dir" value="."/>
|
620 |
4794
|
daigle
|
<property name="hostname" value="${ecogrid.hostname}"/>
|
621 |
2977
|
tao
|
<property name="port" value="${config.port}"/>
|
622 |
2957
|
tao
|
</ant>
|
623 |
4841
|
daigle
|
</target -->
|
624 |
2978
|
tao
|
|
625 |
|
|
<target name="clean-ecogrid-server-config-wsdd" depends="init" description="Automately generate wsdd for ecogrid service">
|
626 |
4720
|
daigle
|
<delete file="${app.deploy.dir}/${metacat.context}/WEB-INF/server-config.wsdd"/>
|
627 |
2978
|
tao
|
</target>
|
628 |
1952
|
jones
|
|
629 |
4240
|
daigle
|
<!-- target name="install-registry" depends="init,getConversionXSL"
|
630 |
1952
|
jones
|
description="Install Registry">
|
631 |
2175
|
tao
|
|
632 |
4080
|
daigle
|
<mkdir dir="${inst.cgi.dir}" />
|
633 |
1952
|
jones
|
<copy file="${srcdir}/perl/register-dataset.cgi"
|
634 |
4080
|
daigle
|
todir="${inst.cgi.dir}"/>
|
635 |
1952
|
jones
|
<chmod file="${inst.cgi.dir}/register-dataset.cgi" perm="ugo+x" />
|
636 |
2175
|
tao
|
|
637 |
4240
|
daigle
|
<! - - TODO SCW: set the permissions on this folder to be writable by the apache user - - >
|
638 |
1952
|
jones
|
<mkdir dir="${temp-dir}" />
|
639 |
4240
|
daigle
|
<! - - TODO SCW: use relative paths to grab these instead of copying to tmp,
|
640 |
|
|
used in readDocumentFromMetacat - - >
|
641 |
2343
|
sgarg
|
<copy todir="${temp-dir}" filtering="yes">
|
642 |
|
|
<fileset dir="lib/style/common/emlb6toeml2">
|
643 |
1952
|
jones
|
<include name="*.xsl"/>
|
644 |
|
|
<include name="*.xml"/>
|
645 |
|
|
</fileset>
|
646 |
2343
|
sgarg
|
</copy>
|
647 |
1952
|
jones
|
|
648 |
|
|
<echo message="Install Registry completed." />
|
649 |
4240
|
daigle
|
</target -->
|
650 |
1952
|
jones
|
|
651 |
4240
|
daigle
|
<!-- target name="install-ldap" depends="init"
|
652 |
4080
|
daigle
|
description="Install Metacat LDAP Access">
|
653 |
|
|
|
654 |
|
|
<mkdir dir="${inst.cgi.dir}" />
|
655 |
2343
|
sgarg
|
<copy file="${srcdir}/perl/ldapweb.cgi"
|
656 |
4080
|
daigle
|
todir="${inst.cgi.dir}" />
|
657 |
2343
|
sgarg
|
<chmod file="${inst.cgi.dir}/ldapweb.cgi" perm="ugo+x" />
|
658 |
|
|
<mkdir dir="${templates.dir}" />
|
659 |
4080
|
daigle
|
<copy todir="${templates.dir}">
|
660 |
2343
|
sgarg
|
<fileset dir="lib/style/common/templates">
|
661 |
4240
|
daigle
|
< ! - - SCW: Copy all files - - >
|
662 |
2343
|
sgarg
|
</fileset>
|
663 |
|
|
</copy>
|
664 |
|
|
<echo message="ldapweb install complete." />
|
665 |
4240
|
daigle
|
</target -->
|
666 |
2343
|
sgarg
|
|
667 |
|
|
|
668 |
2175
|
tao
|
<target name="install-skin" depends="init"
|
669 |
2052
|
sgarg
|
description="Install a Skin">
|
670 |
|
|
|
671 |
3994
|
berkley
|
<input message="Please enter name of the skin"
|
672 |
|
|
addproperty="skin-name"/>
|
673 |
2052
|
sgarg
|
|
674 |
|
|
<mkdir dir="${installdir}/style/skins/${skin-name}" />
|
675 |
|
|
<copy todir="${installdir}/style/skins/${skin-name}" filtering="yes">
|
676 |
|
|
<fileset dir="lib/style/skins/${skin-name}">
|
677 |
3014
|
costa
|
<exclude name="**/*.png"/>
|
678 |
|
|
<exclude name="**/*.gif"/>
|
679 |
|
|
<exclude name="**/*.jpg"/>
|
680 |
2277
|
jones
|
<exclude name="**/CVS*"/>
|
681 |
|
|
<exclude name="**/.#*"/>
|
682 |
2052
|
sgarg
|
</fileset>
|
683 |
|
|
</copy>
|
684 |
2054
|
sgarg
|
<copy todir="${installdir}/style/skins/${skin-name}" filtering="no">
|
685 |
|
|
<fileset dir="lib/style/skins/${skin-name}">
|
686 |
3014
|
costa
|
<include name="**/*.png"/>
|
687 |
3994
|
berkley
|
<include name="**/*.gif"/>
|
688 |
3014
|
costa
|
<include name="**/*.jpg"/>
|
689 |
2277
|
jones
|
<exclude name="**/CVS*"/>
|
690 |
|
|
<exclude name="**/.#*"/>
|
691 |
2054
|
sgarg
|
</fileset>
|
692 |
|
|
</copy>
|
693 |
2974
|
jones
|
<copy todir="${installdir}/style/common" filtering="yes">
|
694 |
|
|
<fileset dir="lib/style/common">
|
695 |
|
|
<include name="*.js"/>
|
696 |
|
|
<include name="*.jsp"/>
|
697 |
|
|
<include name="*.css"/>
|
698 |
|
|
<exclude name="*.png"/>
|
699 |
|
|
<exclude name="*.gif"/>
|
700 |
|
|
<exclude name="*.jpg"/>
|
701 |
|
|
<exclude name="**/CVS*"/>
|
702 |
|
|
<exclude name="**/.#*"/>
|
703 |
|
|
</fileset>
|
704 |
|
|
</copy>
|
705 |
2277
|
jones
|
<!--
|
706 |
2210
|
jones
|
<mkdir dir="${installdir}/style/skins/${skin-name}/images" />
|
707 |
|
|
<copy todir="${installdir}/style/skins/${skin-name}/images" filtering="no">
|
708 |
|
|
<fileset dir="lib/style/skins/${skin-name}/images">
|
709 |
|
|
<include name="*.png"/>
|
710 |
|
|
<include name="*.gif"/>
|
711 |
|
|
<include name="*.jpg"/>
|
712 |
|
|
</fileset>
|
713 |
|
|
</copy>
|
714 |
2277
|
jones
|
-->
|
715 |
2052
|
sgarg
|
|
716 |
|
|
<echo message="Install Skin completed." />
|
717 |
|
|
</target>
|
718 |
|
|
|
719 |
4098
|
daigle
|
<target name="war" depends="warPrepare,install-spatial"
|
720 |
1952
|
jones
|
description="Create a web archive (WAR) for servlet deployment">
|
721 |
2737
|
jones
|
<mkdir dir="${dist.dir}" />
|
722 |
|
|
<war destfile="${dist.dir}/${metacat.context}.war"
|
723 |
1952
|
jones
|
webxml="${build.war}/web.xml">
|
724 |
|
|
<fileset dir="${war.context}"/>
|
725 |
|
|
<lib dir="${war.lib}"/>
|
726 |
|
|
<webinf dir="${war.webinf}"/>
|
727 |
|
|
</war>
|
728 |
|
|
</target>
|
729 |
2957
|
tao
|
|
730 |
4435
|
daigle
|
<target name="warPrepare" depends="cgiPrepare,jar,clientjar,harvesterjar,testPrepare"
|
731 |
1952
|
jones
|
description="Prepare files for creating a web archive (WAR)">
|
732 |
|
|
|
733 |
|
|
<property name="war.lib" value="${build.war}/lib" />
|
734 |
|
|
<property name="war.webinf" value="${build.war}/WEB-INF" />
|
735 |
2737
|
jones
|
<property name="war.context" value="${build.war}/${metacat.context}" />
|
736 |
4098
|
daigle
|
<property name="war.webinf.sql" value="${war.webinf}/sql" />
|
737 |
4819
|
daigle
|
<property name="war.webinf.scripts" value="${war.webinf}/scripts" />
|
738 |
4369
|
daigle
|
<property name="war.context.cgi" value="${war.context}/cgi-bin" />
|
739 |
4080
|
daigle
|
<property name="war.context.docs" value="${war.context}/docs" />
|
740 |
4240
|
daigle
|
<property name="war.context.temp" value="${war.context}/temp" />
|
741 |
|
|
<property name="war.context.templates" value="${war.context}${style-common-relpath}/templates" />
|
742 |
1952
|
jones
|
<mkdir dir="${war.lib}" />
|
743 |
|
|
<mkdir dir="${war.webinf}" />
|
744 |
|
|
<mkdir dir="${war.context}" />
|
745 |
4098
|
daigle
|
<mkdir dir="${war.webinf.sql}" />
|
746 |
4369
|
daigle
|
<mkdir dir="${war.context.cgi}" />
|
747 |
4080
|
daigle
|
<mkdir dir="${war.context.docs}" />
|
748 |
4240
|
daigle
|
<mkdir dir="${war.context.temp}" />
|
749 |
|
|
<mkdir dir="${war.context.templates}" />
|
750 |
2610
|
tao
|
|
751 |
4098
|
daigle
|
<!--copy file="${lib.dir}/${jdbc.lib.postgres}" todir="${war.lib}" / -->
|
752 |
|
|
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver1}" todir="${war.lib}" / -->
|
753 |
|
|
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver2}" todir="${war.lib}" / -->
|
754 |
|
|
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver3}" todir="${war.lib}" / -->
|
755 |
1952
|
jones
|
<copy file="${build.dir}/${name}.jar" todir="${war.lib}" />
|
756 |
|
|
<copy file="${build.dir}/${name}-client.jar" todir="${war.lib}" />
|
757 |
2059
|
costa
|
<copy file="${build.dir}/harvester.jar" todir="${war.lib}" />
|
758 |
1952
|
jones
|
<copy todir="${war.lib}" filtering="no">
|
759 |
1823
|
jones
|
<fileset dir="lib">
|
760 |
4098
|
daigle
|
<!--
|
761 |
|
|
<not>
|
762 |
2610
|
tao
|
<filename name="${jdbc-jar-name}"/>
|
763 |
|
|
</not>
|
764 |
4098
|
daigle
|
-->
|
765 |
2610
|
tao
|
<include name="*.jar"/>
|
766 |
1823
|
jones
|
</fileset>
|
767 |
3059
|
berkley
|
<fileset dir="lib">
|
768 |
|
|
<include name="xalan.jar"/>
|
769 |
3194
|
berkley
|
<include name="gwt*.jar"/>
|
770 |
1823
|
jones
|
</fileset>
|
771 |
4943
|
costa
|
<fileset dir="lib/oaipmh">
|
772 |
|
|
<include name="oaicat.jar"/>
|
773 |
|
|
</fileset>
|
774 |
1823
|
jones
|
</copy>
|
775 |
4080
|
daigle
|
<!-- MCD copy file="lib/web.xml.${tomcatversion}"
|
776 |
|
|
tofile="${build.war}/web.xml" / -->
|
777 |
|
|
<!-- MCD added next - Remove the tomcat5 reference-->
|
778 |
|
|
<copy file="lib/web.xml.tomcat5"
|
779 |
|
|
tofile="${build.war}/web.xml"/>
|
780 |
1952
|
jones
|
<copy file="lib/metacat.properties" todir="${war.webinf}"
|
781 |
1951
|
jones
|
filtering="yes" />
|
782 |
4080
|
daigle
|
<copy file="lib/metacat.properties.metadata.xml" todir="${war.webinf}"
|
783 |
3099
|
jones
|
filtering="no" />
|
784 |
4080
|
daigle
|
<copy file="lib/org.properties.metadata.xml" todir="${war.webinf}"
|
785 |
|
|
filtering="no" />
|
786 |
4593
|
daigle
|
<copy file="lib/auth.properties.metadata.xml" todir="${war.webinf}"
|
787 |
4162
|
daigle
|
filtering="no" />
|
788 |
2900
|
sgarg
|
<copy todir="${war.webinf}" filtering="yes">
|
789 |
|
|
<fileset dir="lib">
|
790 |
|
|
<include name="skin.configs/**"/>
|
791 |
|
|
</fileset>
|
792 |
|
|
</copy>
|
793 |
2583
|
sgarg
|
<copy file="lib/log4j.properties" todir="${war.webinf}"
|
794 |
|
|
filtering="yes" />
|
795 |
1952
|
jones
|
<copy todir="${war.context}" filtering="no">
|
796 |
822
|
jones
|
<fileset dir="lib">
|
797 |
|
|
<include name="**/*.jpg"/>
|
798 |
|
|
<include name="**/*.png"/>
|
799 |
|
|
<include name="**/*.gif"/>
|
800 |
2844
|
costa
|
<include name="LiveMap_30/**"/>
|
801 |
4943
|
costa
|
<include name="oaipmh/**"/>
|
802 |
822
|
jones
|
</fileset>
|
803 |
|
|
</copy>
|
804 |
1952
|
jones
|
<copy todir="${war.context}" filtering="yes">
|
805 |
822
|
jones
|
<fileset dir="lib">
|
806 |
|
|
<exclude name="*.jar"/>
|
807 |
|
|
<exclude name="*.properties"/>
|
808 |
4080
|
daigle
|
<exclude name="*.metadata.xml"/>
|
809 |
822
|
jones
|
<exclude name="web.xml"/>
|
810 |
1437
|
berkley
|
<exclude name="**/*.jpg"/>
|
811 |
|
|
<exclude name="**/*.png"/>
|
812 |
|
|
<exclude name="**/*.gif"/>
|
813 |
2778
|
jones
|
<exclude name="lsid_lib/**"/>
|
814 |
|
|
<exclude name="lsid_conf/**"/>
|
815 |
2844
|
costa
|
<exclude name="LiveMap_30/**"/>
|
816 |
4943
|
costa
|
<exclude name="oaipmh/**"/>
|
817 |
2900
|
sgarg
|
<exclude name="skin.configs/**"/>
|
818 |
3034
|
perry
|
<exclude name="spatial/geoserver/**"/>
|
819 |
|
|
<exclude name="spatial/WEB-INF/**"/>
|
820 |
822
|
jones
|
</fileset>
|
821 |
|
|
</copy>
|
822 |
4193
|
daigle
|
<copy todir="${war.context.docs}" filtering="yes">
|
823 |
|
|
<fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
|
824 |
|
|
</copy>
|
825 |
|
|
<copy todir="${war.context.docs}" filtering="no">
|
826 |
|
|
<fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
|
827 |
|
|
</copy>
|
828 |
4098
|
daigle
|
<copy todir="${war.webinf.sql}" filtering="yes">
|
829 |
4080
|
daigle
|
<fileset dir="src">
|
830 |
|
|
<include name="**/*.sql"/>
|
831 |
|
|
</fileset>
|
832 |
|
|
</copy>
|
833 |
4819
|
daigle
|
<copy todir="${war.webinf.scripts}" filtering="yes">
|
834 |
|
|
<fileset dir="src/scripts"/>
|
835 |
|
|
</copy>
|
836 |
|
|
<copy todir="${war.webinf.scripts}"
|
837 |
|
|
file="src/perl/Metacat/blib/lib/auto/Metacat/autosplit.ix"
|
838 |
|
|
failonerror="false"/>
|
839 |
4369
|
daigle
|
|
840 |
|
|
<copy file="src/perl/register-dataset.cgi" todir="${war.context.cgi}"/>
|
841 |
|
|
<copy file="src/perl/ldapweb.cgi" todir="${war.context.cgi}" />
|
842 |
4515
|
daigle
|
<copy file="src/perl/Metacat/Metacat.pm" todir="${war.lib}" />
|
843 |
4369
|
daigle
|
|
844 |
|
|
<!-- registry cgi section -->
|
845 |
|
|
<!-- TODO SCW: use relative paths to grab these instead of copying to tmp,
|
846 |
4240
|
daigle
|
used in readDocumentFromMetacat -->
|
847 |
4369
|
daigle
|
<!-- TODO MCD copy temp files to actual location using config util?? -->
|
848 |
|
|
<copy todir="${war.context.temp}" filtering="yes">
|
849 |
|
|
<fileset dir="lib/style/common/emlb6toeml2">
|
850 |
|
|
<include name="*.xsl"/>
|
851 |
|
|
<include name="*.xml"/>
|
852 |
|
|
</fileset>
|
853 |
|
|
</copy>
|
854 |
|
|
<available file="lib/style/common/emlb6toeml2" type="dir"
|
855 |
|
|
property="styles.not.needed"/>
|
856 |
|
|
|
857 |
|
|
<!-- ldap cgi section -->
|
858 |
|
|
<copy todir="${war.context.templates}">
|
859 |
|
|
<fileset dir="lib/style/common/templates">
|
860 |
|
|
<!-- SCW: Copy all files -->
|
861 |
|
|
</fileset>
|
862 |
|
|
</copy>
|
863 |
|
|
</target>
|
864 |
|
|
|
865 |
4820
|
daigle
|
<target name="cgiPrepare" if="build.perl">
|
866 |
|
|
<exec dir="src/perl/Metacat/" executable="make" >
|
867 |
|
|
<arg value="clean" />
|
868 |
|
|
</exec>
|
869 |
|
|
<exec dir="src/perl/Metacat/" executable="perl" >
|
870 |
4369
|
daigle
|
<arg value="Makefile.PL" />
|
871 |
|
|
</exec>
|
872 |
4820
|
daigle
|
<exec dir="src/perl/Metacat/" executable="make" />
|
873 |
4369
|
daigle
|
</target>
|
874 |
4435
|
daigle
|
|
875 |
4550
|
daigle
|
<target name="testPrepare"
|
876 |
4435
|
daigle
|
description="Copies test files into the war directories">
|
877 |
|
|
<echo>in testPrepare</echo>
|
878 |
|
|
<property name="war.context.test" value="${build.war}/${metacat.context}/test" />
|
879 |
|
|
<mkdir dir="${war.context.test}" />
|
880 |
|
|
<copy todir="${war.context.test}" filtering="yes">
|
881 |
|
|
<fileset dir="test/servertestfiles">
|
882 |
|
|
<include name="*/**"/>
|
883 |
|
|
</fileset>
|
884 |
|
|
</copy>
|
885 |
|
|
</target>
|
886 |
1929
|
brooke
|
|
887 |
2175
|
tao
|
<target name="getConversionXSL" depends="prepare"
|
888 |
1954
|
jones
|
unless="styles.not.needed"
|
889 |
1939
|
brooke
|
description="Gets the conversion stylesheets for eml2 beta 6 to eml 2.0.0">
|
890 |
2497
|
sgarg
|
|
891 |
1929
|
brooke
|
<echo>Enter CVS password: </echo>
|
892 |
2497
|
sgarg
|
<cvs cvsRoot="${cvsroot}"
|
893 |
|
|
package="${eml-module}"
|
894 |
4843
|
daigle
|
tag="${eml2-style-tag}"
|
895 |
|
|
dest="${build.tmp}/eml_${eml2-style-tag}" />
|
896 |
2343
|
sgarg
|
|
897 |
|
|
<mkdir dir="lib/style/common/emlb6toeml2" />
|
898 |
|
|
<copy todir="lib/style/common/emlb6toeml2" filtering="yes">
|
899 |
4843
|
daigle
|
<fileset dir="${build.tmp}/eml_${eml2-style-tag}/${eml-module}/lib/beta6toeml2/xsl">
|
900 |
2343
|
sgarg
|
<include name="*.xsl"/>
|
901 |
|
|
<include name="*.xml"/>
|
902 |
|
|
</fileset>
|
903 |
|
|
</copy>
|
904 |
1929
|
brooke
|
</target>
|
905 |
|
|
|
906 |
2135
|
costa
|
<target name="testprep" depends="jar,clientjar,harvesterjar">
|
907 |
1783
|
jones
|
<mkdir dir="${build.tests}"/>
|
908 |
|
|
<copy todir="${build.tests}" filtering="yes">
|
909 |
|
|
<fileset dir="${testdir}">
|
910 |
|
|
<include name="edu/**"/>
|
911 |
|
|
</fileset>
|
912 |
|
|
</copy>
|
913 |
4382
|
daigle
|
<copy todir="${build.tests}" file="${testdir}/test.properties" filtering="yes"/>
|
914 |
4121
|
daigle
|
|
915 |
971
|
tao
|
<!-- copy and compile the tests into a jar file -->
|
916 |
1783
|
jones
|
<javac srcdir="${build.tests}"
|
917 |
|
|
destdir="${build.tests}"
|
918 |
1612
|
tao
|
debug="on"
|
919 |
2982
|
jones
|
includes="**/*.java">
|
920 |
2599
|
jones
|
<classpath>
|
921 |
|
|
<path refid="compile.classpath"/>
|
922 |
|
|
<fileset dir="${build.dir}">
|
923 |
2982
|
jones
|
<include name="${name}.jar"/>
|
924 |
|
|
<include name="${name}-client.jar"/>
|
925 |
|
|
<include name="harvester.jar"/>
|
926 |
2599
|
jones
|
</fileset>
|
927 |
|
|
</classpath>
|
928 |
|
|
</javac>
|
929 |
204
|
jones
|
|
930 |
1311
|
berkley
|
<jar jarfile="${build.dir}/${name}-junittests.jar"
|
931 |
1783
|
jones
|
basedir="${build.tests}"
|
932 |
1311
|
berkley
|
includes="**/*.class" />
|
933 |
1822
|
jones
|
</target>
|
934 |
971
|
tao
|
|
935 |
1939
|
brooke
|
<target name="test" depends="testprep"
|
936 |
|
|
description="Uses the ant junit task to run all JUnit tests">
|
937 |
1822
|
jones
|
|
938 |
971
|
tao
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
939 |
1783
|
jones
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
940 |
971
|
tao
|
haltonerror="no">
|
941 |
1783
|
jones
|
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
|
942 |
971
|
tao
|
<classpath>
|
943 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
944 |
|
|
<fileset dir="${build.dir}">
|
945 |
2982
|
jones
|
<include name="${name}.jar"/>
|
946 |
|
|
<include name="${name}-client.jar"/>
|
947 |
|
|
<include name="harvester.jar"/>
|
948 |
|
|
<include name="${name}-junittests.jar"/>
|
949 |
2599
|
jones
|
</fileset>
|
950 |
971
|
tao
|
</classpath>
|
951 |
|
|
|
952 |
|
|
<formatter type="plain" />
|
953 |
|
|
|
954 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
955 |
1783
|
jones
|
<fileset dir="${build.tests}">
|
956 |
4304
|
daigle
|
<include name="**/*.class"/>
|
957 |
4147
|
daigle
|
<exclude name="**/MCTestCase.class" />
|
958 |
4304
|
daigle
|
<exclude name="**/ClientViewHelperTest.class" />
|
959 |
971
|
tao
|
</fileset>
|
960 |
|
|
</batchtest>
|
961 |
|
|
</junit>
|
962 |
|
|
</target>
|
963 |
1103
|
tao
|
|
964 |
1939
|
brooke
|
<target name="runonetest" depends="testprep"
|
965 |
|
|
description="Uses the ant junit task to run a single JUnit test, defined by the ${testtorun} property">
|
966 |
1500
|
tao
|
|
967 |
1939
|
brooke
|
<echo>testtorun: ${testtorun}</echo>
|
968 |
|
|
|
969 |
1500
|
tao
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
970 |
1783
|
jones
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
971 |
3747
|
tao
|
haltonerror="no" showoutput="yes">
|
972 |
2044
|
tao
|
<!--<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>-->
|
973 |
1500
|
tao
|
<classpath>
|
974 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
975 |
|
|
<fileset dir="${build.dir}">
|
976 |
2982
|
jones
|
<include name="${name}.jar"/>
|
977 |
|
|
<include name="${name}-client.jar"/>
|
978 |
|
|
<include name="harvester.jar"/>
|
979 |
|
|
<include name="${name}-junittests.jar"/>
|
980 |
2599
|
jones
|
</fileset>
|
981 |
1500
|
tao
|
</classpath>
|
982 |
|
|
|
983 |
|
|
<formatter type="plain" />
|
984 |
|
|
|
985 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
986 |
1783
|
jones
|
<fileset dir="${build.tests}">
|
987 |
1500
|
tao
|
<include name="**/${testtorun}.class" />
|
988 |
|
|
</fileset>
|
989 |
|
|
</batchtest>
|
990 |
|
|
</junit>
|
991 |
|
|
</target>
|
992 |
|
|
|
993 |
2175
|
tao
|
<target name="testharvester"
|
994 |
2135
|
costa
|
depends="testprep"
|
995 |
|
|
description="Uses the ant junit task to test only the Harvester code">
|
996 |
2175
|
tao
|
<junit printsummary="yes"
|
997 |
|
|
haltonfailure="off"
|
998 |
2135
|
costa
|
fork="yes"
|
999 |
|
|
haltonerror="off">
|
1000 |
2599
|
jones
|
<classpath>
|
1001 |
|
|
<path refid="compile.classpath"/>
|
1002 |
|
|
<fileset dir="${build.dir}">
|
1003 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1004 |
|
|
<include name="${name}-client.jar"/>
|
1005 |
|
|
<include name="harvester.jar"/>
|
1006 |
|
|
<include name="${name}-junittests.jar"/>
|
1007 |
2599
|
jones
|
</fileset>
|
1008 |
|
|
</classpath>
|
1009 |
2135
|
costa
|
<formatter type="plain" />
|
1010 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1011 |
|
|
<fileset dir="${build.tests}">
|
1012 |
|
|
<include name="**/harvesterClient/*.class" />
|
1013 |
|
|
</fileset>
|
1014 |
|
|
</batchtest>
|
1015 |
|
|
</junit>
|
1016 |
|
|
</target>
|
1017 |
|
|
|
1018 |
1939
|
brooke
|
<target name="gethttpclient" depends="prepare"
|
1019 |
|
|
description="checks out and compiles morpho httpclient code">
|
1020 |
1311
|
berkley
|
<!--mkdir dir="${morphosourcedir}" -->
|
1021 |
1487
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
1022 |
1103
|
tao
|
package="morpho"
|
1023 |
|
|
dest="." />
|
1024 |
1107
|
tao
|
<ant dir="${morphosourcedir}" inheritAll="false" target="jar" />
|
1025 |
1103
|
tao
|
</target>
|
1026 |
|
|
|
1027 |
|
|
<!-- run this target, we need to check out a another morpho souce dir was checked out. -->
|
1028 |
4720
|
daigle
|
<target name="nettest" depends="install"
|
1029 |
1939
|
brooke
|
description="compiles and runs the metacatnettest code">
|
1030 |
2175
|
tao
|
|
1031 |
1103
|
tao
|
<echo>***********************************
|
1032 |
1311
|
berkley
|
Please run ant gethttpclient first!
|
1033 |
|
|
***********************************
|
1034 |
1103
|
tao
|
</echo>
|
1035 |
|
|
<!-- copy and compile the tests into a jar file -->
|
1036 |
1116
|
tao
|
<mkdir dir="${build.metacatnettest}"/>
|
1037 |
1103
|
tao
|
<javac srcdir="${junitnettestsdir}"
|
1038 |
1116
|
tao
|
destdir="${build.metacatnettest}"
|
1039 |
2599
|
jones
|
includes="**/*.java">
|
1040 |
|
|
<classpath>
|
1041 |
|
|
<path refid="compile.classpath"/>
|
1042 |
|
|
<fileset dir="${build.dir}">
|
1043 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1044 |
2599
|
jones
|
</fileset>
|
1045 |
|
|
</classpath>
|
1046 |
|
|
</javac>
|
1047 |
1103
|
tao
|
|
1048 |
|
|
<jar jarfile="${build.dir}/${name}-junitnettests.jar"
|
1049 |
1116
|
tao
|
basedir="${build.metacatnettest}"
|
1050 |
1103
|
tao
|
includes="**/*.class" />
|
1051 |
|
|
|
1052 |
|
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
1053 |
1107
|
tao
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
1054 |
1103
|
tao
|
haltonerror="no">
|
1055 |
1107
|
tao
|
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
|
1056 |
1103
|
tao
|
<classpath>
|
1057 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
1058 |
|
|
<fileset dir="${build.dir}">
|
1059 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1060 |
|
|
<include name="${name}-junitnettests.jar"/>
|
1061 |
2599
|
jones
|
</fileset>
|
1062 |
1103
|
tao
|
</classpath>
|
1063 |
|
|
|
1064 |
|
|
<formatter type="plain" />
|
1065 |
|
|
|
1066 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1067 |
1116
|
tao
|
<fileset dir="${build.metacatnettest}">
|
1068 |
|
|
<include name="**/*.class" />
|
1069 |
1103
|
tao
|
</fileset>
|
1070 |
|
|
</batchtest>
|
1071 |
|
|
</junit>
|
1072 |
1311
|
berkley
|
</target>
|
1073 |
1103
|
tao
|
|
1074 |
1939
|
brooke
|
<target name="cleanweb" depends="clean"
|
1075 |
|
|
description="deletes tomcat web context dir and all its contents">
|
1076 |
1522
|
berkley
|
<delete dir="${installdir}" />
|
1077 |
|
|
</target>
|
1078 |
|
|
|
1079 |
|
|
|
1080 |
1939
|
brooke
|
<target name="clean" depends="init"
|
1081 |
2320
|
jones
|
description="deletes build dir and files that can be regenerated form the release">
|
1082 |
822
|
jones
|
<delete dir="${build.dir}" />
|
1083 |
2737
|
jones
|
<delete dir="${dist.dir}" />
|
1084 |
2320
|
jones
|
</target>
|
1085 |
|
|
|
1086 |
4098
|
daigle
|
<target name="localclean" depends="clean"
|
1087 |
|
|
description="deletes even jars that depend on external sources such as stylesheets and jars">
|
1088 |
|
|
<delete file="lib/httpclient.jar" />
|
1089 |
|
|
<delete file="lib/utilities.jar" />
|
1090 |
|
|
</target>
|
1091 |
|
|
|
1092 |
|
|
<target name="fullclean" depends="localclean"
|
1093 |
|
|
description="deletes code and eml">
|
1094 |
1939
|
brooke
|
<delete includeEmptyDirs="true" failonerror="false">
|
1095 |
|
|
<fileset dir="${style-common-cvsrelpath}">
|
1096 |
|
|
<include name="${eml-css}" />
|
1097 |
|
|
<include name="eml-*/*.xsl" />
|
1098 |
|
|
<include name="eml-*" />
|
1099 |
|
|
</fileset>
|
1100 |
4080
|
daigle
|
<fileset dir="${schema-cvsrelpath}">
|
1101 |
|
|
<include name="eml-*/*.xsd" />
|
1102 |
|
|
</fileset>
|
1103 |
4369
|
daigle
|
<fileset dir="${ecogrid-dir}">
|
1104 |
|
|
<include name="build.properties" />
|
1105 |
|
|
<include name="buildfiles/metacatImpl.xml" />
|
1106 |
|
|
</fileset>
|
1107 |
2320
|
jones
|
</delete>
|
1108 |
113
|
jones
|
</target>
|
1109 |
|
|
|
1110 |
1939
|
brooke
|
<target name="jdoc" depends="prepare"
|
1111 |
|
|
description="generates javadoc documentation">
|
1112 |
822
|
jones
|
<javadoc packagenames="edu.ucsb.nceas.*"
|
1113 |
516
|
jones
|
sourcepath="${build.src}"
|
1114 |
|
|
destdir="${build.javadocs}"
|
1115 |
113
|
jones
|
author="true"
|
1116 |
|
|
version="true"
|
1117 |
|
|
use="true"
|
1118 |
348
|
jones
|
windowtitle="${Name} API"
|
1119 |
|
|
doctitle="<h1>${Name}</h1>"
|
1120 |
2599
|
jones
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>">
|
1121 |
|
|
<classpath>
|
1122 |
|
|
<path refid="compile.classpath"/>
|
1123 |
|
|
</classpath>
|
1124 |
|
|
</javadoc>
|
1125 |
113
|
jones
|
</target>
|
1126 |
|
|
|
1127 |
2461
|
sgarg
|
<target name="dist"
|
1128 |
2965
|
tao
|
depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
|
1129 |
1939
|
brooke
|
description="prepares a full release distribution">
|
1130 |
806
|
jones
|
<mkdir dir="${dist.dir}"/>
|
1131 |
|
|
<delete dir="${ver.dir}" />
|
1132 |
|
|
<mkdir dir="${ver.dir}"/>
|
1133 |
|
|
<copy todir="${ver.dir}">
|
1134 |
1311
|
berkley
|
<fileset dir="."
|
1135 |
4648
|
daigle
|
excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/** metacat*.tar.gz metacat*.tar metacat*.zip"/>
|
1136 |
806
|
jones
|
</copy>
|
1137 |
|
|
<copy todir="${ver.dir}" file="build.xml"/>
|
1138 |
2317
|
jones
|
<copy todir="${ver.dir}" file="build.properties"/>
|
1139 |
882
|
jones
|
|
1140 |
|
|
<copy todir="${ver.dir}/docs" filtering="yes">
|
1141 |
|
|
<fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
|
1142 |
|
|
</copy>
|
1143 |
|
|
<copy todir="${ver.dir}/docs" filtering="no">
|
1144 |
|
|
<fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
|
1145 |
|
|
</copy>
|
1146 |
806
|
jones
|
<copy todir="${ver.dir}/docs/dev">
|
1147 |
|
|
<fileset dir="${build.dir}/docs"/>
|
1148 |
|
|
</copy>
|
1149 |
917
|
berkley
|
<copy todir="${ver.dir}/src">
|
1150 |
|
|
<fileset dir="${build.dir}/src"/>
|
1151 |
|
|
</copy>
|
1152 |
4648
|
daigle
|
|
1153 |
|
|
<mkdir dir="${ver.dir}/tests/servertestfiles"/>
|
1154 |
|
|
<copy todir="${ver.dir}/test/servertestfiles">
|
1155 |
|
|
<fileset dir="./test/servertestfiles"/>
|
1156 |
|
|
</copy>
|
1157 |
1311
|
berkley
|
</target>
|
1158 |
806
|
jones
|
|
1159 |
4797
|
daigle
|
<target name="distbin" depends="build-metacat,war-lsid" description="prepares a binary distribution">
|
1160 |
4372
|
daigle
|
<copy todir="${dist.dir}">
|
1161 |
4641
|
daigle
|
<fileset dir="./src/scripts" />
|
1162 |
4372
|
daigle
|
</copy>
|
1163 |
|
|
<delete file="./${name}-bin-${release}.zip" />
|
1164 |
|
|
<zip zipfile="./${name}-bin-${release}.zip"
|
1165 |
|
|
basedir="${dist.dir}"
|
1166 |
|
|
excludes="metacat-*/**"/>
|
1167 |
|
|
<delete file="./${name}-bin-${release}.tar.gz" />
|
1168 |
|
|
<tar tarfile="./${name}-bin-${release}.tar"
|
1169 |
|
|
basedir="${dist.dir}"
|
1170 |
|
|
excludes="metacat-*/**"/>
|
1171 |
|
|
<gzip zipfile="./${name}-bin-${release}.tar.gz" src="./${name}-bin-${release}.tar" />
|
1172 |
|
|
<delete file="./${name}-bin-${release}.tar" />
|
1173 |
|
|
</target>
|
1174 |
|
|
|
1175 |
1939
|
brooke
|
<target name="distsrc" depends="dist"
|
1176 |
|
|
description="prepares a source distribution">
|
1177 |
806
|
jones
|
<mkdir dir="${ver.src}"/>
|
1178 |
|
|
<copy todir="${ver.src}">
|
1179 |
|
|
<fileset dir="./src"/>
|
1180 |
|
|
</copy>
|
1181 |
2461
|
sgarg
|
<mkdir dir="${util.dir}"/>
|
1182 |
|
|
<copy todir="${util.dir}">
|
1183 |
|
|
<fileset dir="${build.tmp}/utilities" excludes="**/CVS*" />
|
1184 |
|
|
</copy>
|
1185 |
2965
|
tao
|
|
1186 |
|
|
<mkdir dir="${ecogrid-dist-dir}"/>
|
1187 |
|
|
<copy todir="${ecogrid-dist-dir}">
|
1188 |
|
|
<fileset dir="${ecogrid-dir}" excludes="**/CVS*" />
|
1189 |
|
|
</copy>
|
1190 |
806
|
jones
|
|
1191 |
3131
|
perry
|
<delete file="${ver.dir}/lib/utilities.jar"/>
|
1192 |
|
|
|
1193 |
882
|
jones
|
<delete file="./${name}-src-${release}.zip"/>
|
1194 |
4648
|
daigle
|
<zip zipfile="./${name}-src-${release}.zip"
|
1195 |
|
|
basedir="${dist.dir}"
|
1196 |
|
|
excludes="metacat*.tar.gz,metacat*.zip"/>
|
1197 |
882
|
jones
|
<delete file="./${name}-src-${release}.tar.gz" />
|
1198 |
4648
|
daigle
|
<tar tarfile="./${name}-src-${release}.tar"
|
1199 |
|
|
basedir="${dist.dir}"
|
1200 |
|
|
excludes="metacat*.tar.gz,metacat*.zip"/>
|
1201 |
1311
|
berkley
|
<gzip zipfile="./${name}-src-${release}.tar.gz"
|
1202 |
882
|
jones
|
src="./${name}-src-${release}.tar"/>
|
1203 |
4669
|
daigle
|
<delete file="./${name}-src-${release}.tar" />
|
1204 |
|
|
<!--delete dir="${dist.dir}"/ -->
|
1205 |
1311
|
berkley
|
</target>
|
1206 |
4658
|
daigle
|
|
1207 |
|
|
<target name="deb-package" depends="distbin"
|
1208 |
|
|
description="create a debian installation package">
|
1209 |
|
|
<delete dir="${deb.pkg.dir}"/>
|
1210 |
|
|
<mkdir dir="${deb.pkg.dir}/DEBIAN"/>
|
1211 |
|
|
<copy todir="${deb.pkg.dir}/DEBIAN" filtering="yes">
|
1212 |
|
|
<fileset dir="./src/scripts/debian"
|
1213 |
|
|
includes="control postinst"/>
|
1214 |
|
|
</copy>
|
1215 |
|
|
|
1216 |
|
|
<mkdir dir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"/>
|
1217 |
|
|
<copy todir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"
|
1218 |
|
|
filtering="yes">
|
1219 |
|
|
<fileset dir="./src/scripts/debian"
|
1220 |
|
|
excludes="control postinst" />
|
1221 |
|
|
</copy>
|
1222 |
|
|
<chmod file="${deb.pkg.dir}/DEBIAN/postinst"
|
1223 |
|
|
perm="755"/>
|
1224 |
|
|
|
1225 |
|
|
<copy file="${dist.dir}/knb.war"
|
1226 |
|
|
todir="${deb.pkg.dir}/usr/share/metacat-${metacat.version}"/>
|
1227 |
|
|
<copy file="./metacat-bin-${metacat.version}.tar.gz"
|
1228 |
|
|
tofile="${deb.pkg.dir}/metacat_${metacat.version}.orig.tar.gz" />
|
1229 |
|
|
|
1230 |
|
|
<exec dir="${pkg.dir}" executable="dpkg" os="Linux, Unix" failonerror="true">
|
1231 |
|
|
<arg line="--build debian" />
|
1232 |
|
|
</exec>
|
1233 |
|
|
|
1234 |
|
|
<move file="${pkg.dir}/debian.deb"
|
1235 |
|
|
tofile="${pkg.dir}/metacat_${metacat.version}${metacat.releaseCandidate}_all.deb"/>
|
1236 |
|
|
</target>
|
1237 |
806
|
jones
|
|
1238 |
1702
|
tao
|
<target name="stylesheettest">
|
1239 |
1939
|
brooke
|
<xslt in="${input}" out="eml.html" style="${style-common-cvsrelpath}/eml-2.0.0/eml-2.0.0.xsl">
|
1240 |
1702
|
tao
|
<param name="displaymodule" expression="${displaymodule}"/>
|
1241 |
|
|
<param name="docid" expression="${input}"/>
|
1242 |
|
|
<param name="entitytype" expression="${entitytype}"/>
|
1243 |
|
|
<param name="entityindex" expression="${entityindex}"/>
|
1244 |
|
|
<outputproperty name="method" value="html"/>
|
1245 |
|
|
<outputproperty name="standalone" value="yes"/>
|
1246 |
|
|
<outputproperty name="encoding" value="iso8859_1"/>
|
1247 |
|
|
<outputproperty name="indent" value="yes"/>
|
1248 |
|
|
</xslt>
|
1249 |
|
|
</target>
|
1250 |
2175
|
tao
|
|
1251 |
3210
|
tao
|
|
1252 |
1814
|
tao
|
<target name="compilewebclient" depends="prepare">
|
1253 |
|
|
<javac srcdir="${build.src}" destdir="${build.dest}" includes="**/application/*.java" classpathref="webservicepath" />
|
1254 |
|
|
</target>
|
1255 |
2175
|
tao
|
|
1256 |
1814
|
tao
|
<target name="runwebclient" depends="compilewebclient">
|
1257 |
2175
|
tao
|
<java classname="edu.ucsb.nceas.metacat.stringclient.application.MetacatStringServiceApplication"
|
1258 |
1814
|
tao
|
dir="${build.dest}" fork="yes"
|
1259 |
|
|
classpathref="webservicepath" classpath="./lib/utilities.jar" failonerror="true">
|
1260 |
|
|
<arg value="${serviceUrl}"/>
|
1261 |
|
|
<arg value="${docid}"/>
|
1262 |
|
|
</java>
|
1263 |
|
|
</target>
|
1264 |
2598
|
harris
|
|
1265 |
2639
|
harris
|
<target name="spatial_option" depends="prepare" description=" -- compiles code for the spatial option">
|
1266 |
2598
|
harris
|
|
1267 |
|
|
<echo message="Compiling the metatcat shapefile creator"/>
|
1268 |
|
|
<echo message="using the shapelib at: ${shapelib.dir}"/>
|
1269 |
|
|
<exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
|
1270 |
|
|
<arg line="./src/spatial/cpp/metacat_shapefile.cpp -I ${shapelib.dir} -c -o build/metacat_shapefile.o" />
|
1271 |
|
|
</exec>
|
1272 |
|
|
|
1273 |
|
|
<exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
|
1274 |
2639
|
harris
|
<arg line="build/metacat_shapefile.o ${shapelib.dir}/.libs/libshp.a -o bin/metacat_shapefile" />
|
1275 |
2598
|
harris
|
</exec>
|
1276 |
|
|
</target>
|
1277 |
|
|
|
1278 |
2737
|
jones
|
<!-- LSID Authority support -->
|
1279 |
|
|
<patternset id="lsid.jars">
|
1280 |
|
|
<include name="axis.jar" />
|
1281 |
2772
|
jones
|
<include name="commons-discovery-0.2.jar" />
|
1282 |
2737
|
jones
|
<include name="jaxrpc.jar" />
|
1283 |
|
|
<include name="lsid-client-1.1.1.jar" />
|
1284 |
|
|
<include name="lsid-server-1.1.1.jar" />
|
1285 |
|
|
<include name="saaj.jar" />
|
1286 |
2772
|
jones
|
<include name="wsdl4j-1.5.1.jar" />
|
1287 |
2737
|
jones
|
<include name="activation.jar" />
|
1288 |
|
|
<include name="castor-0.9.5.jar" />
|
1289 |
|
|
<include name="dnsjava-1.3.2.jar" />
|
1290 |
|
|
<include name="mail.jar" />
|
1291 |
2778
|
jones
|
<include name="commons-logging-1.0.4.jar" />
|
1292 |
|
|
<!-- These jars may be needed but seem to not actually be,
|
1293 |
|
|
so leaving them out for now
|
1294 |
|
|
<include name="axis-ant.jar" />
|
1295 |
2737
|
jones
|
-->
|
1296 |
|
|
<!--<include name="GenCastor.class" />-->
|
1297 |
|
|
</patternset>
|
1298 |
|
|
<patternset id="lib.jars">
|
1299 |
|
|
<include name="httpclient.jar" />
|
1300 |
|
|
<include name="log4j-1.2.12.jar" />
|
1301 |
|
|
<include name="utilities.jar" />
|
1302 |
|
|
<include name="xercesImpl.jar" />
|
1303 |
|
|
<include name="xalan.jar" />
|
1304 |
|
|
<include name="xml-apis.jar" />
|
1305 |
|
|
</patternset>
|
1306 |
|
|
|
1307 |
|
|
<path id="lsid.classpath">
|
1308 |
|
|
<fileset dir="${lsid.lib.dir}">
|
1309 |
|
|
<patternset refid="lsid.jars"/>
|
1310 |
|
|
</fileset>
|
1311 |
|
|
<fileset dir="${lib.dir}">
|
1312 |
|
|
<patternset refid="lsid.jars"/>
|
1313 |
|
|
</fileset>
|
1314 |
3059
|
berkley
|
<fileset dir="${lib.dir}">
|
1315 |
2737
|
jones
|
<include name="xalan.jar" />
|
1316 |
|
|
<include name="xml-apis.jar" />
|
1317 |
|
|
</fileset>
|
1318 |
|
|
<fileset dir="${build.dir}">
|
1319 |
|
|
<include name="metacat-client.jar" />
|
1320 |
|
|
</fileset>
|
1321 |
|
|
</path>
|
1322 |
|
|
|
1323 |
|
|
<filterset id="configFilters">
|
1324 |
4080
|
daigle
|
<!-- MCD BYE filter token="LSID_AUTHORITY_HOSTNAME"
|
1325 |
|
|
value="${config.hostname}" / -->
|
1326 |
|
|
<!-- MCD BYE filter token="LSID_AUTHORITY_PORT"
|
1327 |
|
|
value="${config.port}" / -->
|
1328 |
|
|
<!-- MCD BYE filter token="METADATA_LABELS"
|
1329 |
|
|
value="${config.metadataLabelLsid}" / -->
|
1330 |
|
|
<!-- MCD BYE filter token="METACAT_SERVER"
|
1331 |
|
|
value="${config.metacatserver}" / -->
|
1332 |
|
|
<!-- MCD BYE filter token="LSID_AUTHORITY_STRING"
|
1333 |
|
|
value="${config.lsidauthority}" / -->
|
1334 |
2737
|
jones
|
</filterset>
|
1335 |
|
|
|
1336 |
|
|
<target name="prepare-lsid"
|
1337 |
|
|
depends="prepare,utilities,clientjar"
|
1338 |
|
|
description="Configure files prior to compilation">
|
1339 |
|
|
<mkdir dir="${lsid.build.dir}" />
|
1340 |
|
|
<!-- Copy the properties file into the build -->
|
1341 |
|
|
<copy file="${conf.dir}/metacat-lsid.properties"
|
1342 |
|
|
tofile="${lsid.build.dir}/WEB-INF/classes/metacat-lsid.properties"
|
1343 |
|
|
overwrite="true">
|
1344 |
|
|
<filterset refid="configFilters" />
|
1345 |
|
|
</copy>
|
1346 |
2817
|
jones
|
<copy file="${conf.dir}/log4j.properties"
|
1347 |
|
|
tofile="${lsid.build.dir}/WEB-INF/classes/log4j.properties"
|
1348 |
|
|
overwrite="true">
|
1349 |
|
|
<filterset refid="configFilters" />
|
1350 |
|
|
</copy>
|
1351 |
2737
|
jones
|
<!-- Copy config files into the build -->
|
1352 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF">
|
1353 |
|
|
<fileset dir="${webinf.dir}"
|
1354 |
|
|
includes="**/*.wsdd" />
|
1355 |
|
|
</copy>
|
1356 |
|
|
<!-- Copy the metadata configuration files into the build -->
|
1357 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}" />
|
1358 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}">
|
1359 |
|
|
<fileset dir="${conf.dir}"
|
1360 |
|
|
includes="**/*.xml" />
|
1361 |
|
|
<fileset dir="${conf.dir}"
|
1362 |
|
|
includes="**/*.xslt" />
|
1363 |
|
|
<filterset refid="configFilters" />
|
1364 |
|
|
</copy>
|
1365 |
|
|
<!-- Copy services files into the build -->
|
1366 |
|
|
<mkdir dir="${lsid.build.dir}/services" />
|
1367 |
|
|
<copy todir="${lsid.build.dir}/services">
|
1368 |
|
|
<fileset dir="${services.dir}" />
|
1369 |
|
|
<filterset refid="configFilters" />
|
1370 |
|
|
</copy>
|
1371 |
2778
|
jones
|
<!-- Copy axis files into the build -->
|
1372 |
|
|
<mkdir dir="${lsid.build.dir}" />
|
1373 |
|
|
<copy todir="${lsid.build.dir}">
|
1374 |
|
|
<fileset dir="${conf.dir}/axis"
|
1375 |
|
|
excludes="*.properties"/>
|
1376 |
|
|
</copy>
|
1377 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
|
1378 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF/classes">
|
1379 |
|
|
<fileset dir="${conf.dir}/axis"
|
1380 |
|
|
includes="*.properties"/>
|
1381 |
|
|
</copy>
|
1382 |
2737
|
jones
|
</target>
|
1383 |
|
|
|
1384 |
|
|
<target name="compile-lsid"
|
1385 |
|
|
depends="prepare-lsid"
|
1386 |
|
|
description="Compile Java sources">
|
1387 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
|
1388 |
|
|
<javac srcdir="src/edu/ucsb/nceas/metacat/lsid"
|
1389 |
|
|
destdir="${lsid.build.dir}/WEB-INF/classes"
|
1390 |
|
|
debug="${compile.debug}"
|
1391 |
|
|
deprecation="${compile.deprecation}"
|
1392 |
|
|
optimize="${compile.optimize}">
|
1393 |
|
|
<classpath refid="lsid.classpath" />
|
1394 |
|
|
</javac>
|
1395 |
|
|
</target>
|
1396 |
|
|
|
1397 |
|
|
<target name="war-lsid"
|
1398 |
|
|
depends="compile-lsid"
|
1399 |
|
|
description="Create a war file for the application">
|
1400 |
|
|
<mkdir dir="${dist.dir}" />
|
1401 |
|
|
<war destfile="${dist.dir}/${authority.context}.war"
|
1402 |
|
|
webxml="${webinf.dir}/web.xml">
|
1403 |
|
|
<fileset dir="${lsid.build.dir}" />
|
1404 |
|
|
<lib dir="${lsid.lib.dir}">
|
1405 |
|
|
<patternset refid="lsid.jars"/>
|
1406 |
|
|
</lib>
|
1407 |
|
|
<lib dir="${lib.dir}">
|
1408 |
|
|
<patternset refid="lib.jars"/>
|
1409 |
|
|
</lib>
|
1410 |
3059
|
berkley
|
<lib dir="${lib.dir}">
|
1411 |
2737
|
jones
|
<include name="xalan.jar" />
|
1412 |
|
|
<include name="xml-apis.jar" />
|
1413 |
|
|
</lib>
|
1414 |
|
|
<lib dir="${build.dir}">
|
1415 |
|
|
<include name="metacat-client.jar" />
|
1416 |
|
|
</lib>
|
1417 |
|
|
</war>
|
1418 |
|
|
</target>
|
1419 |
|
|
|
1420 |
|
|
<target name="deploy-lsid"
|
1421 |
|
|
depends="war-lsid"
|
1422 |
|
|
description="Deploy LSID war to servlet container">
|
1423 |
4720
|
daigle
|
<delete dir="${app.deploy.dir}/${authority.context}" />
|
1424 |
|
|
<delete file="${app.deploy.dir}/${authority.context}.war" />
|
1425 |
|
|
<mkdir dir="${app.deploy.dir}" />
|
1426 |
|
|
<copy todir="${app.deploy.dir}">
|
1427 |
2737
|
jones
|
<fileset dir="${dist.dir}" />
|
1428 |
|
|
</copy>
|
1429 |
|
|
</target>
|
1430 |
113
|
jones
|
</project>
|