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 4405 daigle
   	   	     <!-- property name="metacat.dir" value="."/ -->
575 2977 tao
   	  </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 4405 daigle
   	     <!-- property name="metacat.dir" value="."/ -->
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 4405 daigle
   	     <property name="metacat.dir" value="."/>
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.postgres}" todir="${war.lib}" / -->
733
       <!--copy file="${lib.dir}/${jdbc.lib.sqlserver1}" todir="${war.lib}" / -->
734
       <!--copy file="${lib.dir}/${jdbc.lib.sqlserver2}" todir="${war.lib}" / -->
735
       <!--copy file="${lib.dir}/${jdbc.lib.sqlserver3}" todir="${war.lib}" / -->
736 1952 jones
       <copy file="${build.dir}/${name}.jar" todir="${war.lib}" />
737
       <copy file="${build.dir}/${name}-client.jar" todir="${war.lib}" />
738 2059 costa
       <copy file="${build.dir}/harvester.jar" todir="${war.lib}" />
739 1952 jones
       <copy todir="${war.lib}" filtering="no">
740 1823 jones
         <fileset dir="lib">
741 4098 daigle
<!--
742
         	<not>
743 2610 tao
               <filename name="${jdbc-jar-name}"/>
744
            </not>
745 4098 daigle
-->
746 2610 tao
            <include name="*.jar"/>
747 1823 jones
         </fileset>
748 3059 berkley
         <fileset dir="lib">
749
           <include name="xalan.jar"/>
750 3194 berkley
           <include name="gwt*.jar"/>
751 1823 jones
         </fileset>
752
       </copy>
753 4080 daigle
       <!-- MCD copy file="lib/web.xml.${tomcatversion}"
754
             tofile="${build.war}/web.xml" / -->
755
       <!-- MCD added next - Remove the tomcat5 reference-->
756
   	   <copy file="lib/web.xml.tomcat5"
757
   	             tofile="${build.war}/web.xml"/>
758 1952 jones
       <copy file="lib/metacat.properties" todir="${war.webinf}"
759 1951 jones
             filtering="yes" />
760 4080 daigle
   	   <copy file="lib/metacat.properties.metadata.xml" todir="${war.webinf}"
761 3099 jones
   	             filtering="no" />
762 4080 daigle
	   <copy file="lib/org.properties.metadata.xml" todir="${war.webinf}"
763
	             filtering="no" />
764 4162 daigle
	   <copy file="lib/ldap.properties.metadata.xml" todir="${war.webinf}"
765
	             filtering="no" />
766 2900 sgarg
       <copy todir="${war.webinf}" filtering="yes">
767
	   	  <fileset dir="lib">
768
           <include name="skin.configs/**"/>
769
		  </fileset>
770
	   </copy>
771 2583 sgarg
       <copy file="lib/log4j.properties" todir="${war.webinf}"
772
             filtering="yes" />
773 1952 jones
       <copy todir="${war.context}" filtering="no">
774 822 jones
         <fileset dir="lib">
775
           <include name="**/*.jpg"/>
776
           <include name="**/*.png"/>
777
           <include name="**/*.gif"/>
778 2844 costa
           <include name="LiveMap_30/**"/>
779 822 jones
         </fileset>
780
       </copy>
781 1952 jones
       <copy todir="${war.context}" filtering="yes">
782 822 jones
         <fileset dir="lib">
783
           <exclude name="*.jar"/>
784
           <exclude name="*.properties"/>
785 4080 daigle
         	<exclude name="*.metadata.xml"/>
786 822 jones
           <exclude name="web.xml"/>
787 1437 berkley
           <exclude name="**/*.jpg"/>
788
           <exclude name="**/*.png"/>
789
           <exclude name="**/*.gif"/>
790 2778 jones
           <exclude name="lsid_lib/**"/>
791
           <exclude name="lsid_conf/**"/>
792 2844 costa
           <exclude name="LiveMap_30/**"/>
793 2900 sgarg
           <exclude name="skin.configs/**"/>
794 3034 perry
           <exclude name="spatial/geoserver/**"/>
795
           <exclude name="spatial/WEB-INF/**"/>
796 822 jones
         </fileset>
797
       </copy>
798 4193 daigle
       <copy todir="${war.context.docs}" filtering="yes">
799
          <fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
800
       </copy>
801
       <copy todir="${war.context.docs}" filtering="no">
802
          <fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
803
       </copy>
804 4098 daigle
	   <copy todir="${war.webinf.sql}" filtering="yes">
805 4080 daigle
	         <fileset dir="src">
806
	           <include name="**/*.sql"/>
807
	         </fileset>
808
	   </copy>
809 4369 daigle
810
   	   <copy file="src/perl/register-dataset.cgi" todir="${war.context.cgi}"/>
811
	   <copy file="src/perl/ldapweb.cgi" todir="${war.context.cgi}" />
812
	   <copy file="src/perl/Metacat/blib/lib/Metacat.pm" todir="${war.lib}" />
813
814
	   <!-- registry cgi section -->
815
	   <!-- TODO SCW: use relative paths to grab these instead of copying to tmp,
816 4240 daigle
                   used in readDocumentFromMetacat -->
817 4369 daigle
	   <!-- TODO MCD copy temp files to actual location using config util?? -->
818
	   <copy todir="${war.context.temp}" filtering="yes">
819
		  <fileset dir="lib/style/common/emlb6toeml2">
820
 		    <include name="*.xsl"/>
821
			<include name="*.xml"/>
822
		  </fileset>
823
	    </copy>
824
	    <available file="lib/style/common/emlb6toeml2" type="dir"
825
                 property="styles.not.needed"/>
826
827
	    <!-- ldap cgi section -->
828
	    <copy todir="${war.context.templates}">
829
		    <fileset dir="lib/style/common/templates">
830
			    <!-- SCW: Copy all files -->
831
		    </fileset>
832
	    </copy>
833
    </target>
834
835
	<target name="cgiPrepare">
836
		<exec dir="src/perl/Metacat/" command="perl" >
837
			<arg value="Makefile.PL" />
838
		</exec>
839
		<exec dir="src/perl/Metacat/" command="make" />
840
	</target>
841 1929 brooke
842 2175 tao
   <target name="getConversionXSL" depends="prepare"
843 1954 jones
            unless="styles.not.needed"
844 1939 brooke
            description="Gets the conversion stylesheets for eml2 beta 6 to eml 2.0.0">
845 2497 sgarg
846 1929 brooke
     <echo>Enter CVS password: </echo>
847 2497 sgarg
     <cvs cvsRoot="${cvsroot}"
848
          package="${eml-module}"
849 3909 tao
          tag="${eml2_0_1-style-tag}"
850
          dest="${build.tmp}/eml_${eml2_0_1-style-tag}" />
851 2343 sgarg
852
     <mkdir dir="lib/style/common/emlb6toeml2" />
853
      <copy todir="lib/style/common/emlb6toeml2" filtering="yes">
854 3909 tao
       <fileset dir="${build.tmp}/eml_${eml2_0_1-style-tag}/${eml-module}/lib/beta6toeml2/xsl">
855 2343 sgarg
         <include name="*.xsl"/>
856
         <include name="*.xml"/>
857
       </fileset>
858
      </copy>
859 1929 brooke
   </target>
860
861 2135 costa
   <target name="testprep" depends="jar,clientjar,harvesterjar">
862 1783 jones
      <mkdir dir="${build.tests}"/>
863
      <copy todir="${build.tests}" filtering="yes">
864
        <fileset dir="${testdir}">
865
          <include name="edu/**"/>
866
        </fileset>
867
      </copy>
868 4382 daigle
   	  <copy todir="${build.tests}" file="${testdir}/test.properties" filtering="yes"/>
869 4121 daigle
870 971 tao
      <!-- copy and compile the tests into a jar file -->
871 1783 jones
      <javac srcdir="${build.tests}"
872
             destdir="${build.tests}"
873 1612 tao
             debug="on"
874 2982 jones
             includes="**/*.java">
875 2599 jones
        <classpath>
876
          <path refid="compile.classpath"/>
877
          <fileset dir="${build.dir}">
878 2982 jones
            <include name="${name}.jar"/>
879
            <include name="${name}-client.jar"/>
880
            <include name="harvester.jar"/>
881 2599 jones
          </fileset>
882
        </classpath>
883
      </javac>
884 204 jones
885 1311 berkley
      <jar jarfile="${build.dir}/${name}-junittests.jar"
886 1783 jones
        basedir="${build.tests}"
887 1311 berkley
                includes="**/*.class" />
888 1822 jones
   </target>
889 971 tao
890 1939 brooke
   <target name="test" depends="testprep"
891
            description="Uses the ant junit task to run all JUnit tests">
892 1822 jones
893 971 tao
      <!-- use the ant "junit" task to run JUnit tests. -->
894 1783 jones
      <junit printsummary="yes" haltonfailure="no" fork="yes"
895 971 tao
             haltonerror="no">
896 1783 jones
        <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
897 971 tao
        <classpath>
898 2599 jones
          <path refid="compile.classpath"/>
899
          <fileset dir="${build.dir}">
900 2982 jones
            <include name="${name}.jar"/>
901
            <include name="${name}-client.jar"/>
902
            <include name="harvester.jar"/>
903
            <include name="${name}-junittests.jar"/>
904 2599 jones
          </fileset>
905 971 tao
        </classpath>
906
907
        <formatter type="plain" />
908
909
        <batchtest fork="yes" todir="${build.dir}">
910 1783 jones
          <fileset dir="${build.tests}">
911 4304 daigle
            <include name="**/*.class"/>
912 4147 daigle
          	<exclude name="**/MCTestCase.class" />
913 4304 daigle
          	<exclude name="**/ClientViewHelperTest.class" />
914 971 tao
          </fileset>
915
        </batchtest>
916
     </junit>
917
   </target>
918 1103 tao
919 1939 brooke
    <target name="runonetest" depends="testprep"
920
            description="Uses the ant junit task to run a single JUnit test, defined by the ${testtorun} property">
921 1500 tao
922 1939 brooke
              <echo>testtorun: ${testtorun}</echo>
923
924 1500 tao
      <!-- use the ant "junit" task to run JUnit tests. -->
925 1783 jones
      <junit printsummary="yes" haltonfailure="no" fork="yes"
926 3747 tao
             haltonerror="no" showoutput="yes">
927 2044 tao
        <!--<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>-->
928 1500 tao
        <classpath>
929 2599 jones
          <path refid="compile.classpath"/>
930
          <fileset dir="${build.dir}">
931 2982 jones
            <include name="${name}.jar"/>
932
            <include name="${name}-client.jar"/>
933
            <include name="harvester.jar"/>
934
            <include name="${name}-junittests.jar"/>
935 2599 jones
          </fileset>
936 1500 tao
        </classpath>
937
938
        <formatter type="plain" />
939
940
        <batchtest fork="yes" todir="${build.dir}">
941 1783 jones
          <fileset dir="${build.tests}">
942 1500 tao
            <include name="**/${testtorun}.class" />
943
          </fileset>
944
        </batchtest>
945
     </junit>
946
   </target>
947
948 2175 tao
   <target name="testharvester"
949 2135 costa
           depends="testprep"
950
           description="Uses the ant junit task to test only the Harvester code">
951 2175 tao
     <junit printsummary="yes"
952
            haltonfailure="off"
953 2135 costa
            fork="yes"
954
            haltonerror="off">
955 2599 jones
        <classpath>
956
          <path refid="compile.classpath"/>
957
          <fileset dir="${build.dir}">
958 2982 jones
            <include name="${name}.jar"/>
959
            <include name="${name}-client.jar"/>
960
            <include name="harvester.jar"/>
961
            <include name="${name}-junittests.jar"/>
962 2599 jones
          </fileset>
963
        </classpath>
964 2135 costa
       <formatter type="plain" />
965
       <batchtest fork="yes" todir="${build.dir}">
966
         <fileset dir="${build.tests}">
967
           <include name="**/harvesterClient/*.class" />
968
         </fileset>
969
       </batchtest>
970
     </junit>
971
   </target>
972
973 1939 brooke
  <target name="gethttpclient" depends="prepare"
974
            description="checks out and compiles morpho httpclient code">
975 1311 berkley
  <!--mkdir dir="${morphosourcedir}" -->
976 1487 tao
        <cvs cvsRoot="${cvsroot}"
977 1103 tao
             package="morpho"
978
             dest="." />
979 1107 tao
        <ant dir="${morphosourcedir}" inheritAll="false"  target="jar" />
980 1103 tao
   </target>
981
982
   <!-- run this target, we need to check out a another morpho souce dir was checked out. -->
983 4080 daigle
   <target name="nettest" depends="dev-install"
984 1939 brooke
            description="compiles and runs the metacatnettest code">
985 2175 tao
986 1103 tao
      <echo>***********************************
987 1311 berkley
      Please run ant gethttpclient first!
988
      ***********************************
989 1103 tao
      </echo>
990
      <!-- copy and compile the tests into a jar file -->
991 1116 tao
      <mkdir dir="${build.metacatnettest}"/>
992 1103 tao
      <javac srcdir="${junitnettestsdir}"
993 1116 tao
             destdir="${build.metacatnettest}"
994 2599 jones
             includes="**/*.java">
995
        <classpath>
996
          <path refid="compile.classpath"/>
997
          <fileset dir="${build.dir}">
998 2982 jones
            <include name="${name}.jar"/>
999 2599 jones
          </fileset>
1000
        </classpath>
1001
      </javac>
1002 1103 tao
1003
      <jar jarfile="${build.dir}/${name}-junitnettests.jar"
1004 1116 tao
                    basedir="${build.metacatnettest}"
1005 1103 tao
                    includes="**/*.class" />
1006
1007
      <!-- use the ant "junit" task to run JUnit tests. -->
1008 1107 tao
      <junit printsummary="yes" haltonfailure="no" fork="yes"
1009 1103 tao
             haltonerror="no">
1010 1107 tao
        <jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
1011 1103 tao
        <classpath>
1012 2599 jones
          <path refid="compile.classpath"/>
1013
          <fileset dir="${build.dir}">
1014 2982 jones
            <include name="${name}.jar"/>
1015
            <include name="${name}-junitnettests.jar"/>
1016 2599 jones
          </fileset>
1017 1103 tao
        </classpath>
1018
1019
        <formatter type="plain" />
1020
1021
        <batchtest fork="yes" todir="${build.dir}">
1022 1116 tao
          <fileset dir="${build.metacatnettest}">
1023
            <include name="**/*.class" />
1024 1103 tao
          </fileset>
1025
        </batchtest>
1026
     </junit>
1027 1311 berkley
   </target>
1028 1103 tao
1029 1939 brooke
   <target name="cleanweb" depends="clean"
1030
            description="deletes tomcat web context dir and all its contents">
1031 1522 berkley
     <delete dir="${installdir}" />
1032
   </target>
1033
1034
1035 1939 brooke
   <target name="clean" depends="init"
1036 2320 jones
            description="deletes build dir and files that can be regenerated form the release">
1037 822 jones
       <delete dir="${build.dir}" />
1038 2737 jones
       <delete dir="${dist.dir}" />
1039 2320 jones
   </target>
1040
1041 4098 daigle
	<target name="localclean" depends="clean"
1042
	            description="deletes even jars that depend on external sources such as stylesheets and jars">
1043
	       <delete file="lib/httpclient.jar" />
1044
	       <delete file="lib/utilities.jar" />
1045
	</target>
1046
1047
   <target name="fullclean" depends="localclean"
1048
            description="deletes code and eml">
1049 1939 brooke
       <delete includeEmptyDirs="true" failonerror="false">
1050
         <fileset dir="${style-common-cvsrelpath}">
1051
           <include name="${eml-css}" />
1052
           <include name="eml-*/*.xsl" />
1053
           <include name="eml-*" />
1054
         </fileset>
1055 4080 daigle
       	 <fileset dir="${schema-cvsrelpath}">
1056
       	   <include name="eml-*/*.xsd" />
1057
       	 </fileset>
1058 4369 daigle
       	 <fileset dir="${ecogrid-dir}">
1059
       		<include name="build.properties" />
1060
       		<include name="buildfiles/metacatImpl.xml" />
1061
         </fileset>
1062 2320 jones
       </delete>
1063 113 jones
   </target>
1064
1065 1939 brooke
   <target name="jdoc" depends="prepare"
1066
            description="generates javadoc documentation">
1067 822 jones
       <javadoc packagenames="edu.ucsb.nceas.*"
1068 516 jones
           sourcepath="${build.src}"
1069
           destdir="${build.javadocs}"
1070 113 jones
           author="true"
1071
           version="true"
1072
           use="true"
1073 348 jones
           windowtitle="${Name} API"
1074
           doctitle="&lt;h1&gt;${Name}&lt;/h1&gt;"
1075 2599 jones
           bottom="&lt;i&gt;Copyright &#169; 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.&lt;/i&gt;">
1076
         <classpath>
1077
           <path refid="compile.classpath"/>
1078
         </classpath>
1079
       </javadoc>
1080 113 jones
   </target>
1081
1082 2461 sgarg
   <target name="dist"
1083 2965 tao
       depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
1084 1939 brooke
            description="prepares a full release distribution">
1085 806 jones
      <mkdir dir="${dist.dir}"/>
1086
      <delete dir="${ver.dir}" />
1087
      <mkdir dir="${ver.dir}"/>
1088
      <copy todir="${ver.dir}">
1089 1311 berkley
        <fileset dir="."
1090 2401 costa
            excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/**"/>
1091 806 jones
      </copy>
1092
      <copy todir="${ver.dir}" file="build.xml"/>
1093 2317 jones
      <copy todir="${ver.dir}" file="build.properties"/>
1094 882 jones
1095
      <copy todir="${ver.dir}/docs" filtering="yes">
1096
        <fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
1097
      </copy>
1098
      <copy todir="${ver.dir}/docs" filtering="no">
1099
        <fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
1100
      </copy>
1101 806 jones
      <copy todir="${ver.dir}/docs/dev">
1102
        <fileset dir="${build.dir}/docs"/>
1103
      </copy>
1104 917 berkley
      <copy todir="${ver.dir}/src">
1105
        <fileset dir="${build.dir}/src"/>
1106
      </copy>
1107 2391 tao
      <!-- copy loaddtdschemal.sql form src dir(which has the server token to ver.dir/src-->
1108 4118 daigle
      <!-- copy todir="${ver.dir}/src" file="${srcdir}/loaddtdschema.sql" overwrite="yes" filtering="no"/ -->
1109
      <!-- copy todir="${ver.dir}/src" file="${srcdir}/upgrade-db-to-1.5.sql" overwrite="yes" filtering="no"/ -->
1110 2323 jones
      <!--
1111 992 berkley
      <delete dir="./${ver.dir}/${build.dir}"/>
1112
      <delete dir="./${ver.dir}/dist"/>
1113 2323 jones
      -->
1114 882 jones
      <delete file="./${name}-${release}.zip"/>
1115 1312 tao
      <zip zipfile="./${name}-${release}.zip" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
1116 882 jones
      <delete file="./${name}-${release}.tar.gz" />
1117 1312 tao
      <tar tarfile="./${name}-${release}.tar" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
1118 1311 berkley
      <gzip zipfile="./${name}-${release}.tar.gz"
1119 882 jones
                src="./${name}-${release}.tar"/>
1120
      <delete file="./${name}-${release}.tar" />
1121 1311 berkley
  </target>
1122 806 jones
1123 4372 daigle
	<target name="distbin" depends="war" description="prepares a binary distribution">
1124
		<copy todir="${dist.dir}">
1125
			<fileset dir="./bin/install"  />
1126
		</copy>
1127
		<delete file="./${name}-bin-${release}.zip" />
1128
		<zip zipfile="./${name}-bin-${release}.zip"
1129
			basedir="${dist.dir}"
1130
			excludes="metacat-*/**"/>
1131
		<delete file="./${name}-bin-${release}.tar.gz" />
1132
		<tar tarfile="./${name}-bin-${release}.tar"
1133
			basedir="${dist.dir}"
1134
			excludes="metacat-*/**"/>
1135
		<gzip zipfile="./${name}-bin-${release}.tar.gz" src="./${name}-bin-${release}.tar" />
1136
		<delete file="./${name}-bin-${release}.tar" />
1137
		<delete dir="${dist.dir}" />
1138
	</target>
1139
1140 1939 brooke
  <target name="distsrc" depends="dist"
1141
            description="prepares a source distribution">
1142 806 jones
      <mkdir dir="${ver.src}"/>
1143
      <copy todir="${ver.src}">
1144
        <fileset dir="./src"/>
1145
      </copy>
1146 2461 sgarg
      <mkdir dir="${util.dir}"/>
1147
      <copy todir="${util.dir}">
1148
        <fileset dir="${build.tmp}/utilities" excludes="**/CVS*" />
1149
      </copy>
1150 2965 tao
1151
  	  <mkdir dir="${ecogrid-dist-dir}"/>
1152
  	  <copy todir="${ecogrid-dist-dir}">
1153
  	        <fileset dir="${ecogrid-dir}" excludes="**/CVS*" />
1154
  	  </copy>
1155 806 jones
1156 3131 perry
      <delete file="${ver.dir}/lib/utilities.jar"/>
1157
1158 882 jones
      <delete file="./${name}-src-${release}.zip"/>
1159
      <zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/>
1160
      <delete file="./${name}-src-${release}.tar.gz" />
1161
      <tar tarfile="./${name}-src-${release}.tar" basedir="${dist.dir}"/>
1162 1311 berkley
      <gzip zipfile="./${name}-src-${release}.tar.gz"
1163 882 jones
                src="./${name}-src-${release}.tar"/>
1164
      <delete file="./${name}-src-${release}.tar" />
1165 3131 perry
      <delete dir="${dist.dir}"/>
1166 1311 berkley
  </target>
1167 806 jones
1168 1702 tao
   <target name="stylesheettest">
1169 1939 brooke
     <xslt in="${input}" out="eml.html" style="${style-common-cvsrelpath}/eml-2.0.0/eml-2.0.0.xsl">
1170 1702 tao
      <param name="displaymodule" expression="${displaymodule}"/>
1171
      <param name="docid" expression="${input}"/>
1172
      <param name="entitytype" expression="${entitytype}"/>
1173
      <param name="entityindex" expression="${entityindex}"/>
1174
      <outputproperty name="method" value="html"/>
1175
      <outputproperty name="standalone" value="yes"/>
1176
      <outputproperty name="encoding" value="iso8859_1"/>
1177
      <outputproperty name="indent" value="yes"/>
1178
    </xslt>
1179
  </target>
1180 2175 tao
1181 3210 tao
1182 1814 tao
  <target name="compilewebclient" depends="prepare">
1183
     <javac srcdir="${build.src}" destdir="${build.dest}" includes="**/application/*.java" classpathref="webservicepath" />
1184
  </target>
1185 2175 tao
1186 1814 tao
  <target name="runwebclient" depends="compilewebclient">
1187 2175 tao
     <java classname="edu.ucsb.nceas.metacat.stringclient.application.MetacatStringServiceApplication"
1188 1814 tao
           dir="${build.dest}" fork="yes"
1189
           classpathref="webservicepath" classpath="./lib/utilities.jar" failonerror="true">
1190
         <arg value="${serviceUrl}"/>
1191
         <arg value="${docid}"/>
1192
     </java>
1193
  </target>
1194 2598 harris
1195 2639 harris
  <target name="spatial_option" depends="prepare" description=" -- compiles code for the spatial option">
1196 2598 harris
1197
    <echo message="Compiling the metatcat shapefile creator"/>
1198
    <echo message="using the shapelib at: ${shapelib.dir}"/>
1199
    <exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
1200
     <arg line="./src/spatial/cpp/metacat_shapefile.cpp -I ${shapelib.dir} -c -o build/metacat_shapefile.o" />
1201
    </exec>
1202
1203
    <exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
1204 2639 harris
     <arg line="build/metacat_shapefile.o ${shapelib.dir}/.libs/libshp.a -o bin/metacat_shapefile" />
1205 2598 harris
    </exec>
1206
  </target>
1207
1208 2737 jones
    <!-- LSID Authority support -->
1209
    <patternset id="lsid.jars">
1210
        <include name="axis.jar" />
1211 2772 jones
        <include name="commons-discovery-0.2.jar" />
1212 2737 jones
        <include name="jaxrpc.jar" />
1213
        <include name="lsid-client-1.1.1.jar" />
1214
        <include name="lsid-server-1.1.1.jar" />
1215
        <include name="saaj.jar" />
1216 2772 jones
        <include name="wsdl4j-1.5.1.jar" />
1217 2737 jones
        <include name="activation.jar" />
1218
        <include name="castor-0.9.5.jar" />
1219
        <include name="dnsjava-1.3.2.jar" />
1220
        <include name="mail.jar" />
1221 2778 jones
        <include name="commons-logging-1.0.4.jar" />
1222
        <!-- These jars may be needed but seem to not actually be,
1223
             so leaving them out for now
1224
        <include name="axis-ant.jar" />
1225 2737 jones
        -->
1226
        <!--<include name="GenCastor.class" />-->
1227
    </patternset>
1228
    <patternset id="lib.jars">
1229
        <include name="httpclient.jar" />
1230
        <include name="log4j-1.2.12.jar" />
1231
        <include name="utilities.jar" />
1232
        <include name="xercesImpl.jar" />
1233
        <include name="xalan.jar" />
1234
        <include name="xml-apis.jar" />
1235
    </patternset>
1236
1237
    <path id="lsid.classpath">
1238
        <fileset dir="${lsid.lib.dir}">
1239
            <patternset refid="lsid.jars"/>
1240
        </fileset>
1241
        <fileset dir="${lib.dir}">
1242
            <patternset refid="lsid.jars"/>
1243
        </fileset>
1244 3059 berkley
        <fileset dir="${lib.dir}">
1245 2737 jones
            <include name="xalan.jar" />
1246
            <include name="xml-apis.jar" />
1247
        </fileset>
1248
        <fileset dir="${build.dir}">
1249
            <include name="metacat-client.jar" />
1250
        </fileset>
1251
    </path>
1252
1253
    <filterset id="configFilters">
1254 4080 daigle
        <!-- MCD BYE filter token="LSID_AUTHORITY_HOSTNAME"
1255
                value="${config.hostname}" / -->
1256
        <!-- MCD BYE filter token="LSID_AUTHORITY_PORT"
1257
                value="${config.port}" / -->
1258
        <!-- MCD BYE filter token="METADATA_LABELS"
1259
                value="${config.metadataLabelLsid}" / -->
1260
        <!-- MCD BYE filter token="METACAT_SERVER"
1261
                value="${config.metacatserver}" / -->
1262
        <!-- MCD BYE filter token="LSID_AUTHORITY_STRING"
1263
                value="${config.lsidauthority}" / -->
1264 2737 jones
    </filterset>
1265
1266
    <target name="prepare-lsid"
1267
            depends="prepare,utilities,clientjar"
1268
            description="Configure files prior to compilation">
1269
        <mkdir dir="${lsid.build.dir}" />
1270
        <!-- Copy the properties file into the build -->
1271
        <copy file="${conf.dir}/metacat-lsid.properties"
1272
              tofile="${lsid.build.dir}/WEB-INF/classes/metacat-lsid.properties"
1273
              overwrite="true">
1274
            <filterset refid="configFilters" />
1275
        </copy>
1276 2817 jones
        <copy file="${conf.dir}/log4j.properties"
1277
              tofile="${lsid.build.dir}/WEB-INF/classes/log4j.properties"
1278
              overwrite="true">
1279
            <filterset refid="configFilters" />
1280
        </copy>
1281 2737 jones
        <!-- Copy config files into the build -->
1282
        <copy todir="${lsid.build.dir}/WEB-INF">
1283
            <fileset dir="${webinf.dir}"
1284
                     includes="**/*.wsdd" />
1285
        </copy>
1286
        <!-- Copy the metadata configuration files into the build -->
1287
        <mkdir dir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}" />
1288
        <copy todir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}">
1289
            <fileset dir="${conf.dir}"
1290
                     includes="**/*.xml" />
1291
            <fileset dir="${conf.dir}"
1292
                     includes="**/*.xslt" />
1293
            <filterset refid="configFilters" />
1294
        </copy>
1295
        <!-- Copy services files into the build -->
1296
        <mkdir dir="${lsid.build.dir}/services" />
1297
        <copy todir="${lsid.build.dir}/services">
1298
            <fileset dir="${services.dir}" />
1299
            <filterset refid="configFilters" />
1300
        </copy>
1301 2778 jones
        <!-- Copy axis files into the build -->
1302
        <mkdir dir="${lsid.build.dir}" />
1303
        <copy todir="${lsid.build.dir}">
1304
            <fileset dir="${conf.dir}/axis"
1305
                     excludes="*.properties"/>
1306
        </copy>
1307
        <mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
1308
        <copy todir="${lsid.build.dir}/WEB-INF/classes">
1309
            <fileset dir="${conf.dir}/axis"
1310
                     includes="*.properties"/>
1311
        </copy>
1312 2737 jones
    </target>
1313
1314
    <target name="compile-lsid"
1315
            depends="prepare-lsid"
1316
            description="Compile Java sources">
1317
        <mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
1318
        <javac srcdir="src/edu/ucsb/nceas/metacat/lsid"
1319
               destdir="${lsid.build.dir}/WEB-INF/classes"
1320
               debug="${compile.debug}"
1321
               deprecation="${compile.deprecation}"
1322
               optimize="${compile.optimize}">
1323
            <classpath refid="lsid.classpath" />
1324
        </javac>
1325
    </target>
1326
1327
    <target name="war-lsid"
1328
            depends="compile-lsid"
1329
            description="Create a war file for the application">
1330
        <mkdir dir="${dist.dir}" />
1331
        <war destfile="${dist.dir}/${authority.context}.war"
1332
             webxml="${webinf.dir}/web.xml">
1333
            <fileset dir="${lsid.build.dir}" />
1334
            <lib dir="${lsid.lib.dir}">
1335
                <patternset refid="lsid.jars"/>
1336
            </lib>
1337
            <lib dir="${lib.dir}">
1338
                <patternset refid="lib.jars"/>
1339
            </lib>
1340 3059 berkley
            <lib dir="${lib.dir}">
1341 2737 jones
                <include name="xalan.jar" />
1342
                <include name="xml-apis.jar" />
1343
            </lib>
1344
            <lib dir="${build.dir}">
1345
                <include name="metacat-client.jar" />
1346
            </lib>
1347
        </war>
1348
    </target>
1349
1350
    <target name="deploy-lsid"
1351
            depends="war-lsid"
1352
            description="Deploy LSID war to servlet container">
1353 4080 daigle
        <delete dir="${dev.deploy.dir}/${authority.context}" />
1354
        <delete file="${dev.deploy.dir}/${authority.context}.war" />
1355
        <mkdir dir="${dev.deploy.dir}" />
1356
        <copy todir="${dev.deploy.dir}">
1357 2737 jones
            <fileset dir="${dist.dir}" />
1358
        </copy>
1359
    </target>
1360 113 jones
</project>