Project

General

Profile

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