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 |
1742
|
tao
|
<target name="oracle">
|
34 |
931
|
jones
|
<!-- Customize these properties if you are using oracle -->
|
35 |
|
|
<property name="jdbc-connect"
|
36 |
|
|
value="jdbc:oracle:thin:@dev.nceas.ucsb.edu:1521:exp"/>
|
37 |
925
|
berkley
|
<property name="dbDriver" value="oracle.jdbc.driver.OracleDriver"/>
|
38 |
|
|
<property name="dbAdapter" value="edu.ucsb.nceas.dbadapter.OracleAdapter"/>
|
39 |
|
|
<property name="oracle_home" value="/oracle01/app/oracle/product/8.1.6" />
|
40 |
|
|
<property name="jdbc" value="${oracle_home}/jdbc/lib/classes111.zip" />
|
41 |
|
|
</target>
|
42 |
1311
|
berkley
|
|
43 |
925
|
berkley
|
<target name="postgresql">
|
44 |
931
|
jones
|
<!-- Customize these properties if you are using postgres -->
|
45 |
1311
|
berkley
|
<property name="jdbc-connect"
|
46 |
1570
|
tao
|
value="jdbc:postgresql://localhost/exp"/>
|
47 |
925
|
berkley
|
<property name="dbDriver" value="org.postgresql.Driver"/>
|
48 |
1311
|
berkley
|
<property name="dbAdapter"
|
49 |
931
|
jones
|
value="edu.ucsb.nceas.dbadapter.PostgresqlAdapter"/>
|
50 |
1716
|
berkley
|
<property name="jdbc" value="lib/jdbc7.1-1.2.jar" />
|
51 |
925
|
berkley
|
</target>
|
52 |
1739
|
tao
|
|
53 |
|
|
<target name="sqlserver">
|
54 |
|
|
<!-- Customize these properties if you are using SQL server -->
|
55 |
|
|
<property name="jdbc-connect"
|
56 |
1742
|
tao
|
value="jdbc:microsoft:sqlserver://fatali.nceas.ucsb.edu:1433"/>
|
57 |
1739
|
tao
|
<property name="dbDriver" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
|
58 |
|
|
<property name="dbAdapter"
|
59 |
|
|
value="edu.ucsb.nceas.dbadapter.SqlserverAdapter"/>
|
60 |
1742
|
tao
|
<property name="jdbc-base" value="F:\\Program Files\\Microsoft SQL Server 2000 Driver for JDBC\\lib" />
|
61 |
|
|
<property name="jdbc" value="${jdbc-base}/msbase.jar" />
|
62 |
|
|
<property name="msutil" value="${jdbc-base}/msutil.jar" />
|
63 |
|
|
<property name="mssqlserver" value="${jdbc-base}/mssqlserver.jar" />
|
64 |
1739
|
tao
|
</target>
|
65 |
1311
|
berkley
|
|
66 |
1742
|
tao
|
<target name="config" depends="sqlserver">
|
67 |
1311
|
berkley
|
<!-- Change the 'depends' attribute above to 'postgresql' to install
|
68 |
931
|
jones
|
metacat with postgres instead of oracle -->
|
69 |
|
|
|
70 |
|
|
<!-- Customize these properties for your system -->
|
71 |
1742
|
tao
|
<property name="tomcat" value="f:\\devtools\\jakarta-tomcat" />
|
72 |
|
|
<property name="webapps" value="f:\\devtools\\jakarta-tomcat\\webapps" />
|
73 |
1722
|
tao
|
<property name="context" value="tao" />
|
74 |
|
|
<property name="user" value="tao"/>
|
75 |
1742
|
tao
|
<property name="password" value="tdataint"/>
|
76 |
1729
|
tao
|
<!-- Tomcat version, if you use tomcat 3, please fill it "tomcat3". If you using tomcat4, please fill it "tomcat4"-->
|
77 |
1742
|
tao
|
<property name="tomcatversion" value="tomcat4"/>
|
78 |
1716
|
berkley
|
|
79 |
1742
|
tao
|
<property name="server" value="fatali.nceas.ucsb.edu:8080"/>
|
80 |
|
|
<property name="systemidserver" value="http://fatali.nceas.ucsb.edu:8080" />
|
81 |
|
|
<property name="datafilepath" value="f:\\devtools\\jakarta-tomcat\\data\\tao\\data" />
|
82 |
|
|
<property name="inlinedatafilepath" value="f:\\devtools\\jakarta-tomcat\\data\\tao\\inlinedata" />
|
83 |
1722
|
tao
|
<property name="debuglevel" value="40" />
|
84 |
1716
|
berkley
|
|
85 |
1292
|
tao
|
<property name="forcereplicationwaitingtime" value="30000"/>
|
86 |
1523
|
tao
|
<property name="cvsroot"
|
87 |
1722
|
tao
|
value=":ext:tao@cvs.ecoinformatics.org:/cvs" />
|
88 |
1311
|
berkley
|
<property name="web-base-url"
|
89 |
931
|
jones
|
value="http://knb.ecoinformatics.org"/>
|
90 |
|
|
<property name="default-style" value="knb" />
|
91 |
1522
|
berkley
|
<property name="morphosourcedir" value="../morpho" />
|
92 |
1570
|
tao
|
<property name="defaultcontenttype" value="application/octet-stream" />
|
93 |
931
|
jones
|
|
94 |
|
|
<!-- Make sure these paths match the location of the jar files
|
95 |
|
|
on your system, the defaults should usually work -->
|
96 |
1311
|
berkley
|
<property name="jsdk"
|
97 |
1742
|
tao
|
value="${tomcat}/common/lib/servlet.jar" />
|
98 |
1311
|
berkley
|
<property name="xmlp"
|
99 |
1376
|
tao
|
value="lib/xercesImpl.jar" />
|
100 |
1311
|
berkley
|
<property name="srb"
|
101 |
931
|
jones
|
value="lib/srbrmi" />
|
102 |
1311
|
berkley
|
<property name="cos"
|
103 |
931
|
jones
|
value="lib/cos.jar" />
|
104 |
939
|
tao
|
<property name="morpho"
|
105 |
|
|
value="lib/morpho.jar" />
|
106 |
931
|
jones
|
<property name="xalan"
|
107 |
|
|
value="lib/xalan/xalan.jar" />
|
108 |
|
|
<property name="apis"
|
109 |
|
|
value="lib/xalan/xml-apis.jar" />
|
110 |
1103
|
tao
|
<property name="httpclient"
|
111 |
|
|
value="${morphosourcedir}/lib/httpclient.jar" />
|
112 |
|
|
<property name="itis"
|
113 |
1311
|
berkley
|
value="${morphosourcedir}/lib/itislib.jar" />
|
114 |
1470
|
tao
|
<property name="emlparser"
|
115 |
|
|
value="lib/eml.jar" />
|
116 |
|
|
<property name="configxml"
|
117 |
|
|
value="lib/configxml.jar" />
|
118 |
1578
|
tao
|
<property name="itislib"
|
119 |
|
|
value="lib/itislib.jar" />
|
120 |
1487
|
tao
|
<property name="emlparser"
|
121 |
|
|
value="lib/eml.jar" />
|
122 |
1103
|
tao
|
</target>
|
123 |
|
|
|
124 |
931
|
jones
|
<target name="init" depends="config">
|
125 |
|
|
<!-- It is less likely you'll need to make any changes from here down,
|
126 |
|
|
but customization is possible -->
|
127 |
|
|
<property name="installdir" value="${webapps}/${context}" />
|
128 |
348
|
jones
|
<property name="name" value="metacat"/>
|
129 |
|
|
<property name="Name" value="MetaCat"/>
|
130 |
1538
|
berkley
|
<property name="debugprefix" value="${Name}:"/>
|
131 |
1339
|
tao
|
<property name="release" value="1.2.1"/>
|
132 |
1311
|
berkley
|
<property name="replication-path"
|
133 |
931
|
jones
|
value="/${context}/servlet/replication"/>
|
134 |
|
|
<property name="servlet-path" value="/${context}/servlet/metacat"/>
|
135 |
|
|
<property name="html-path" value="/${context}"/>
|
136 |
1437
|
berkley
|
<property name="image-path" value="/${context}" />
|
137 |
931
|
jones
|
<property name="style-path" value="/${context}/style"/>
|
138 |
923
|
jones
|
<property name="replication-log" value="/tmp/metacatreplication.log"/>
|
139 |
1579
|
tao
|
<property name="replicationerrorlog" value="/tmp/metacatreplication.err"/>
|
140 |
832
|
jones
|
<property name="config-dir" value="${installdir}" />
|
141 |
924
|
jones
|
<property name="eml-module" value="eml" />
|
142 |
877
|
jones
|
<property name="eml-version" value="2.0.0beta6" />
|
143 |
1227
|
tao
|
<property name="eml-tag" value="RELEASE_EML_2_0_0_BETA_6_REV1" />
|
144 |
1722
|
tao
|
<property name="eml2-tag" value="STMML_SCHEMA_UPDATE" />
|
145 |
1570
|
tao
|
<property name="eml2namespace" value="eml://ecoinformatics.org/eml-2.0.0" />
|
146 |
1718
|
tao
|
<property name="stmmlnamespace" value="http://www.xml-cml.org/schema/stmml" />
|
147 |
348
|
jones
|
|
148 |
1311
|
berkley
|
<property name="cpath"
|
149 |
1742
|
tao
|
value="${xmlp}:${xalan}:${apis}:${jdbc}:${jsdk}:${srb}:${cos}:${morpho}:${emlparser}:${msutil}:${mssqlserver}"/>
|
150 |
882
|
jones
|
|
151 |
|
|
<filter token="docrooturl" value="./" />
|
152 |
588
|
berkley
|
<filter token="jdbc-connect" value="${jdbc-connect}"/>
|
153 |
882
|
jones
|
<filter token="dbDriver" value="${dbDriver}"/>
|
154 |
915
|
berkley
|
<filter token="dbAdapter" value="${dbAdapter}"/>
|
155 |
614
|
bojilova
|
<filter token="install-dir" value="${installdir}"/>
|
156 |
586
|
berkley
|
<filter token="server" value="${server}"/>
|
157 |
977
|
tao
|
<filter token="systemidserver" value="${systemidserver}"/>
|
158 |
586
|
berkley
|
<filter token="replication-log" value="${replication-log}"/>
|
159 |
1579
|
tao
|
<filter token="replicationerrorlog" value="${replicationerrorlog}"/>
|
160 |
348
|
jones
|
<filter token="release" value="${release}"/>
|
161 |
|
|
<filter token="servlet-path" value="${servlet-path}"/>
|
162 |
359
|
bojilova
|
<filter token="html-path" value="${html-path}"/>
|
163 |
362
|
jones
|
<filter token="user" value="${user}"/>
|
164 |
|
|
<filter token="password" value="${password}"/>
|
165 |
409
|
berkley
|
<filter token="image-path" value="${image-path}"/>
|
166 |
828
|
jones
|
<filter token="style-path" value="${style-path}"/>
|
167 |
506
|
jones
|
<filter token="web-base-url" value="${web-base-url}"/>
|
168 |
525
|
berkley
|
<filter token="replication-path" value="${replication-path}"/>
|
169 |
832
|
jones
|
<filter token="config-dir" value="${config-dir}"/>
|
170 |
|
|
<filter token="default-style" value="${default-style}"/>
|
171 |
877
|
jones
|
<filter token="eml-version" value="${eml-version}"/>
|
172 |
1570
|
tao
|
<filter token="eml2namespace" value="${eml2namespace}"/>
|
173 |
1718
|
tao
|
<filter token="stmmlnamespace" value="${stmmlnamespace}"/>
|
174 |
1009
|
tao
|
<filter token="context" value="${context}"/>
|
175 |
1292
|
tao
|
<filter token="forcereplicationwaitingtime" value="${forcereplicationwaitingtime}" />
|
176 |
1051
|
tao
|
<filter token="debuglevel" value="${debuglevel}" />
|
177 |
1079
|
tao
|
<filter token="datafilepath" value="${datafilepath}" />
|
178 |
1455
|
tao
|
<filter token="inlinedatafilepath" value="${inlinedatafilepath}" />
|
179 |
1522
|
berkley
|
<filter token="defaultcontenttype" value="${defaultcontenttype}" />
|
180 |
1538
|
berkley
|
<filter token="debugprefix" value="${debugprefix}"/>
|
181 |
1487
|
tao
|
|
182 |
254
|
jones
|
<property name="srcdir" value="./src" />
|
183 |
1116
|
tao
|
<property name="junittestsdir" value="./test/edu/ucsb/nceas/metacattest" />
|
184 |
|
|
<property name="junitnettestsdir" value="./test/edu/ucsb/nceas/metacatnettest" />
|
185 |
348
|
jones
|
<property name="build.dir" value="./build"/>
|
186 |
|
|
<property name="build.src" value="${build.dir}/src"/>
|
187 |
|
|
<property name="build.dest" value="${build.dir}/classes"/>
|
188 |
516
|
jones
|
<property name="build.docs" value="${build.dir}/docs"/>
|
189 |
348
|
jones
|
<property name="build.samples" value="${build.dir}/samples"/>
|
190 |
|
|
<property name="build.tests" value="${build.dir}/tests"/>
|
191 |
1116
|
tao
|
<property name="build.metacattest" value="${build.tests}/metacattest"/>
|
192 |
|
|
<property name="build.metacatnettest" value="${build.tests}/metacatnettest"/>
|
193 |
348
|
jones
|
<property name="build.data" value="${build.dir}/data"/>
|
194 |
806
|
jones
|
<property name="build.javadocs" value="${build.dir}/docs/api"/>
|
195 |
1437
|
berkley
|
<property name="build.img" value="${installdir}"/>
|
196 |
348
|
jones
|
|
197 |
882
|
jones
|
<property name="dist.dir" value="dist"/>
|
198 |
806
|
jones
|
<property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
|
199 |
|
|
<property name="ver.src" value="${ver.dir}/src"/>
|
200 |
|
|
|
201 |
254
|
jones
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
202 |
113
|
jones
|
</target>
|
203 |
1311
|
berkley
|
|
204 |
348
|
jones
|
<target name="prepare" depends="init">
|
205 |
|
|
<mkdir dir="${build.dir}"/>
|
206 |
|
|
<mkdir dir="${build.src}"/>
|
207 |
|
|
<mkdir dir="${build.dest}"/>
|
208 |
516
|
jones
|
<mkdir dir="${build.javadocs}"/>
|
209 |
348
|
jones
|
|
210 |
822
|
jones
|
<copy todir="${build.src}" filtering="yes">
|
211 |
|
|
<fileset dir="${srcdir}">
|
212 |
|
|
<include name="edu/**"/>
|
213 |
|
|
<include name="com/**"/>
|
214 |
877
|
jones
|
<include name="**/*.sql"/>
|
215 |
822
|
jones
|
<exclude name="**/CVS*"/>
|
216 |
|
|
<exclude name="**/.#*"/>
|
217 |
1702
|
tao
|
<exclude name="edu/ucsb/nceas/metacat/harvesterClient/*.*"/>
|
218 |
822
|
jones
|
</fileset>
|
219 |
|
|
</copy>
|
220 |
348
|
jones
|
</target>
|
221 |
|
|
|
222 |
|
|
<target name="compile" depends="prepare">
|
223 |
1311
|
berkley
|
<javac srcdir="${build.src}"
|
224 |
|
|
destdir="${build.dest}"
|
225 |
|
|
classpath="${cpath}"
|
226 |
|
|
excludes="**/*.sql" />
|
227 |
|
|
<copy file="lib/metacat.properties"
|
228 |
|
|
tofile="${build.dest}/${package.home}/metacat.properties"
|
229 |
822
|
jones
|
filtering="yes" />
|
230 |
1311
|
berkley
|
<copy file="lib/srbProps.properties"
|
231 |
822
|
jones
|
tofile="${build.dest}/${package.home}/srbProps.properties"/>
|
232 |
1311
|
berkley
|
</target>
|
233 |
113
|
jones
|
|
234 |
204
|
jones
|
<target name="jar" depends="compile">
|
235 |
353
|
jones
|
<delete file="${build.dir}/${name}.jar" />
|
236 |
822
|
jones
|
<copy todir="${build.dest}">
|
237 |
|
|
<fileset dir="lib/srbrmi"/>
|
238 |
|
|
</copy>
|
239 |
635
|
jones
|
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
|
240 |
|
|
excludes="**/protocols/" />
|
241 |
1311
|
berkley
|
</target>
|
242 |
|
|
|
243 |
635
|
jones
|
<target name="protocol" depends="compile">
|
244 |
|
|
<delete file="${build.dir}/protocol.jar" />
|
245 |
|
|
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
|
246 |
|
|
includes="**/protocols/" />
|
247 |
1311
|
berkley
|
</target>
|
248 |
113
|
jones
|
|
249 |
1612
|
tao
|
<target name="getdtdschema" depends="prepare">
|
250 |
|
|
<echo>Enter CVS password: </echo>
|
251 |
|
|
<cvs cvsRoot="${cvsroot}"
|
252 |
|
|
package="${eml-module}"
|
253 |
|
|
tag="${eml-tag}"
|
254 |
|
|
dest="${build.src}" />
|
255 |
|
|
<mkdir dir="lib/dtd" />
|
256 |
|
|
<copy todir="lib/dtd" filtering="yes">
|
257 |
|
|
<fileset dir="${build.src}/${eml-module}">
|
258 |
|
|
<include name="*.dtd"/>
|
259 |
|
|
</fileset>
|
260 |
|
|
<mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
|
261 |
|
|
</copy>
|
262 |
|
|
<echo>Enter CVS password: </echo>
|
263 |
|
|
<cvs cvsRoot="${cvsroot}"
|
264 |
|
|
package="${eml-module}"
|
265 |
|
|
tag="${eml2-tag}"
|
266 |
|
|
dest="${build.src}" />
|
267 |
|
|
<mkdir dir="lib/schema" />
|
268 |
|
|
<copy todir="lib/schema" filtering="yes">
|
269 |
|
|
<fileset dir="${build.src}/${eml-module}">
|
270 |
|
|
<include name="*.xsd"/>
|
271 |
|
|
</fileset>
|
272 |
|
|
</copy>
|
273 |
|
|
<copy todir="lib/style">
|
274 |
|
|
<fileset dir="${build.src}/${eml-module}/style">
|
275 |
|
|
<include name="*.xsl"/>
|
276 |
|
|
</fileset>
|
277 |
|
|
</copy>
|
278 |
|
|
</target>
|
279 |
|
|
|
280 |
877
|
jones
|
<target name="getdtd" depends="prepare">
|
281 |
1307
|
jones
|
<echo>Enter CVS password: </echo>
|
282 |
|
|
<cvs cvsRoot="${cvsroot}"
|
283 |
|
|
package="${eml-module}"
|
284 |
|
|
tag="${eml-tag}"
|
285 |
|
|
dest="${build.src}" />
|
286 |
|
|
<mkdir dir="lib/dtd" />
|
287 |
|
|
<copy todir="lib/dtd" filtering="yes">
|
288 |
|
|
<fileset dir="${build.src}/${eml-module}">
|
289 |
|
|
<include name="*.dtd"/>
|
290 |
|
|
</fileset>
|
291 |
|
|
<mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
|
292 |
|
|
</copy>
|
293 |
1463
|
tao
|
</target>
|
294 |
1522
|
berkley
|
|
295 |
1463
|
tao
|
<target name="getschema" depends="prepare">
|
296 |
|
|
<echo>Enter CVS password: </echo>
|
297 |
|
|
<cvs cvsRoot="${cvsroot}"
|
298 |
|
|
package="${eml-module}"
|
299 |
|
|
tag="${eml2-tag}"
|
300 |
|
|
dest="${build.src}" />
|
301 |
|
|
<mkdir dir="lib/schema" />
|
302 |
|
|
<copy todir="lib/schema" filtering="yes">
|
303 |
|
|
<fileset dir="${build.src}/${eml-module}">
|
304 |
|
|
<include name="*.xsd"/>
|
305 |
|
|
</fileset>
|
306 |
|
|
</copy>
|
307 |
1314
|
tao
|
<copy todir="lib/style">
|
308 |
1307
|
jones
|
<fileset dir="${build.src}/${eml-module}/style">
|
309 |
1311
|
berkley
|
<include name="*.xsl"/>
|
310 |
|
|
</fileset>
|
311 |
1307
|
jones
|
</copy>
|
312 |
1522
|
berkley
|
</target>
|
313 |
877
|
jones
|
|
314 |
1593
|
tao
|
<target name="dtdschemasql" depends="prepare">
|
315 |
877
|
jones
|
<echo/>
|
316 |
|
|
<echo>Registering the DTDs with the new Metacat instance...</echo>
|
317 |
|
|
<sql driver="${dbDriver}"
|
318 |
1742
|
tao
|
classpath="${jdbc}:${msutil}:${mssqlserver}"
|
319 |
877
|
jones
|
url="${jdbc-connect}"
|
320 |
|
|
userid="${user}"
|
321 |
|
|
password="${password}"
|
322 |
1593
|
tao
|
src="${build.src}/loaddtdschema.sql" />
|
323 |
877
|
jones
|
</target>
|
324 |
1716
|
berkley
|
|
325 |
1570
|
tao
|
<target name="schemasql" depends="prepare">
|
326 |
|
|
<echo/>
|
327 |
|
|
<echo>Registering the DTDs with the new Metacat instance...</echo>
|
328 |
|
|
<sql driver="${dbDriver}"
|
329 |
1742
|
tao
|
classpath="${jdbc}:${msutil}:${mssqlserver}"
|
330 |
1570
|
tao
|
url="${jdbc-connect}"
|
331 |
|
|
userid="${user}"
|
332 |
|
|
password="${password}"
|
333 |
|
|
src="${build.src}/loadschema.sql" />
|
334 |
|
|
</target>
|
335 |
877
|
jones
|
|
336 |
204
|
jones
|
<target name="install" depends="jar">
|
337 |
1079
|
tao
|
<mkdir dir="${datafilepath}" />
|
338 |
1455
|
tao
|
<mkdir dir="${inlinedatafilepath}" />
|
339 |
1079
|
tao
|
<chmod dir="${datafilepath}" perm="ug+w" />
|
340 |
329
|
jones
|
<mkdir dir="${installdir}/WEB-INF/lib" />
|
341 |
1311
|
berkley
|
<copy file="${build.dir}/${name}.jar"
|
342 |
822
|
jones
|
tofile="${installdir}/WEB-INF/lib/${name}.jar" />
|
343 |
1311
|
berkley
|
<copy file="${xmlp}"
|
344 |
1376
|
tao
|
tofile="${installdir}/WEB-INF/lib/xercesImpl.jar" />
|
345 |
1311
|
berkley
|
<copy file="${xalan}"
|
346 |
923
|
jones
|
tofile="${installdir}/WEB-INF/lib/xalan.jar" />
|
347 |
1311
|
berkley
|
<copy file="${apis}"
|
348 |
923
|
jones
|
tofile="${installdir}/WEB-INF/lib/xml-apis.jar" />
|
349 |
1311
|
berkley
|
<copy file="${jdbc}"
|
350 |
1522
|
berkley
|
tofile="${installdir}/WEB-INF/lib/jdbc.jar" />
|
351 |
1742
|
tao
|
<copy file="${msutil}"
|
352 |
|
|
tofile="${installdir}/WEB-INF/lib/msutil.jar" />
|
353 |
|
|
<copy file="${mssqlserver}"
|
354 |
|
|
tofile="${installdir}/WEB-INF/lib/mssqlserver.jar" />
|
355 |
1311
|
berkley
|
<copy file="${cos}"
|
356 |
822
|
jones
|
tofile="${installdir}/WEB-INF/lib/cos.jar" />
|
357 |
939
|
tao
|
<copy file="${morpho}"
|
358 |
1470
|
tao
|
tofile="${installdir}/WEB-INF/lib/morpho.jar" />
|
359 |
|
|
<copy file="${emlparser}"
|
360 |
1522
|
berkley
|
tofile="${installdir}/WEB-INF/lib/eml.jar" />
|
361 |
1470
|
tao
|
<copy file="${configxml}"
|
362 |
|
|
tofile="${installdir}/WEB-INF/lib/configxml.jar" />
|
363 |
1578
|
tao
|
<copy file="${itislib}"
|
364 |
|
|
tofile="${installdir}/WEB-INF/lib/itislib.jar" />
|
365 |
1729
|
tao
|
<copy file="lib/web.xml.${tomcatversion}"
|
366 |
822
|
jones
|
tofile="${installdir}/WEB-INF/web.xml" />
|
367 |
|
|
<copy todir="${build.img}" filtering="no">
|
368 |
|
|
<fileset dir="lib">
|
369 |
|
|
<include name="**/*.jpg"/>
|
370 |
|
|
<include name="**/*.png"/>
|
371 |
|
|
<include name="**/*.gif"/>
|
372 |
|
|
</fileset>
|
373 |
|
|
</copy>
|
374 |
|
|
<copy todir="${installdir}" filtering="yes">
|
375 |
|
|
<fileset dir="lib">
|
376 |
|
|
<exclude name="*.jar"/>
|
377 |
|
|
<exclude name="*.properties"/>
|
378 |
|
|
<exclude name="web.xml"/>
|
379 |
|
|
<exclude name="**/srbrmi*"/>
|
380 |
1437
|
berkley
|
<exclude name="**/*.jpg"/>
|
381 |
|
|
<exclude name="**/*.png"/>
|
382 |
|
|
<exclude name="**/*.gif"/>
|
383 |
822
|
jones
|
</fileset>
|
384 |
|
|
</copy>
|
385 |
877
|
jones
|
<echo>
|
386 |
|
|
***********************************************************
|
387 |
|
|
Remember to register the default DTDs by running the
|
388 |
|
|
"${build.src}/loaddtd.sql script". This is most easily
|
389 |
|
|
done by using the "ant dtdsql" which will run it for you.
|
390 |
|
|
***********************************************************
|
391 |
|
|
</echo>
|
392 |
1311
|
berkley
|
</target>
|
393 |
|
|
|
394 |
971
|
tao
|
<target name="test" depends="install">
|
395 |
|
|
<!-- copy and compile the tests into a jar file -->
|
396 |
1116
|
tao
|
<mkdir dir="${build.metacattest}"/>
|
397 |
1049
|
tao
|
<javac srcdir="${junittestsdir}"
|
398 |
1116
|
tao
|
destdir="${build.metacattest}"
|
399 |
1049
|
tao
|
classpath="${cpath}:${build.dir}/${name}.jar"
|
400 |
1612
|
tao
|
debug="on"
|
401 |
1311
|
berkley
|
includes="**/*.java" />
|
402 |
204
|
jones
|
|
403 |
1311
|
berkley
|
<jar jarfile="${build.dir}/${name}-junittests.jar"
|
404 |
|
|
basedir="${build.metacattest}"
|
405 |
|
|
includes="**/*.class" />
|
406 |
971
|
tao
|
|
407 |
|
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
408 |
|
|
<junit printsummary="yes" haltonfailure="no" fork="no"
|
409 |
|
|
haltonerror="no">
|
410 |
|
|
<classpath>
|
411 |
1049
|
tao
|
<pathelement path="${cpath}:${build.dir}/${name}.jar:${build.dir}/${name}-junittests.jar" />
|
412 |
971
|
tao
|
</classpath>
|
413 |
|
|
|
414 |
|
|
<formatter type="plain" />
|
415 |
|
|
|
416 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
417 |
1116
|
tao
|
<fileset dir="${build.metacattest}">
|
418 |
|
|
<include name="**/*.class" />
|
419 |
971
|
tao
|
</fileset>
|
420 |
|
|
</batchtest>
|
421 |
|
|
</junit>
|
422 |
|
|
</target>
|
423 |
1103
|
tao
|
|
424 |
1500
|
tao
|
<target name="runonetest" depends="install">
|
425 |
|
|
<!-- copy and compile the tests into a jar file -->
|
426 |
|
|
<!--<property name="testtorun" value="SubTreeTest"/> -->
|
427 |
|
|
<echo>testtorun: ${testtorun}</echo>
|
428 |
|
|
<mkdir dir="${build.metacattest}"/>
|
429 |
|
|
<javac srcdir="${junittestsdir}"
|
430 |
|
|
destdir="${build.metacattest}"
|
431 |
|
|
classpath="${cpath}:${build.dir}/${name}.jar"
|
432 |
|
|
includes="**/*.java" />
|
433 |
|
|
|
434 |
|
|
<jar jarfile="${build.dir}/${name}-junittests.jar"
|
435 |
|
|
basedir="${build.metacattest}"
|
436 |
|
|
includes="**/*.class" />
|
437 |
|
|
|
438 |
|
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
439 |
|
|
<junit printsummary="yes" haltonfailure="no" fork="no"
|
440 |
|
|
haltonerror="no">
|
441 |
|
|
<classpath>
|
442 |
|
|
<pathelement path="${cpath}:${build.dir}/${name}.jar:${build.dir}/${name}-junittests.jar" />
|
443 |
|
|
</classpath>
|
444 |
|
|
|
445 |
|
|
<formatter type="plain" />
|
446 |
|
|
|
447 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
448 |
|
|
<fileset dir="${build.metacattest}">
|
449 |
1522
|
berkley
|
|
450 |
1500
|
tao
|
<include name="**/${testtorun}.class" />
|
451 |
|
|
</fileset>
|
452 |
|
|
</batchtest>
|
453 |
|
|
</junit>
|
454 |
|
|
</target>
|
455 |
|
|
|
456 |
1103
|
tao
|
<target name="gethttpclient" depends="prepare">
|
457 |
1311
|
berkley
|
<!--mkdir dir="${morphosourcedir}" -->
|
458 |
1487
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
459 |
1103
|
tao
|
package="morpho"
|
460 |
|
|
dest="." />
|
461 |
1107
|
tao
|
<ant dir="${morphosourcedir}" inheritAll="false" target="jar" />
|
462 |
1103
|
tao
|
</target>
|
463 |
|
|
|
464 |
|
|
<!-- run this target, we need to check out a another morpho souce dir was checked out. -->
|
465 |
|
|
<target name="nettest" depends="install">
|
466 |
|
|
<echo>***********************************
|
467 |
1311
|
berkley
|
Please run ant gethttpclient first!
|
468 |
|
|
***********************************
|
469 |
1103
|
tao
|
</echo>
|
470 |
|
|
<!-- copy and compile the tests into a jar file -->
|
471 |
1116
|
tao
|
<mkdir dir="${build.metacatnettest}"/>
|
472 |
1103
|
tao
|
<javac srcdir="${junitnettestsdir}"
|
473 |
1116
|
tao
|
destdir="${build.metacatnettest}"
|
474 |
1103
|
tao
|
classpath="${cpath}:${build.dir}/${name}.jar:${httpclient}"
|
475 |
|
|
includes="**/*.java" />
|
476 |
|
|
|
477 |
|
|
<jar jarfile="${build.dir}/${name}-junitnettests.jar"
|
478 |
1116
|
tao
|
basedir="${build.metacatnettest}"
|
479 |
1103
|
tao
|
includes="**/*.class" />
|
480 |
|
|
|
481 |
|
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
482 |
1107
|
tao
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
483 |
1103
|
tao
|
haltonerror="no">
|
484 |
1107
|
tao
|
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
|
485 |
1103
|
tao
|
<classpath>
|
486 |
|
|
<pathelement path="${cpath}:${build.dir}/${name}.jar:${httpclient}:${build.dir}/${name}-junitnettests.jar:${itis}" />
|
487 |
|
|
</classpath>
|
488 |
|
|
|
489 |
|
|
<formatter type="plain" />
|
490 |
|
|
|
491 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
492 |
1116
|
tao
|
<fileset dir="${build.metacatnettest}">
|
493 |
|
|
<include name="**/*.class" />
|
494 |
1103
|
tao
|
</fileset>
|
495 |
|
|
</batchtest>
|
496 |
|
|
</junit>
|
497 |
1311
|
berkley
|
</target>
|
498 |
1103
|
tao
|
|
499 |
1522
|
berkley
|
<target name="servletclean" depends="clean">
|
500 |
|
|
<delete dir="${installdir}" />
|
501 |
|
|
</target>
|
502 |
|
|
|
503 |
|
|
|
504 |
113
|
jones
|
<target name="clean" depends="init">
|
505 |
822
|
jones
|
<delete dir="${build.dir}" />
|
506 |
113
|
jones
|
</target>
|
507 |
|
|
|
508 |
516
|
jones
|
<target name="jdoc" depends="prepare">
|
509 |
822
|
jones
|
<javadoc packagenames="edu.ucsb.nceas.*"
|
510 |
516
|
jones
|
sourcepath="${build.src}"
|
511 |
|
|
destdir="${build.javadocs}"
|
512 |
113
|
jones
|
author="true"
|
513 |
|
|
version="true"
|
514 |
|
|
use="true"
|
515 |
348
|
jones
|
windowtitle="${Name} API"
|
516 |
|
|
doctitle="<h1>${Name}</h1>"
|
517 |
113
|
jones
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>"
|
518 |
|
|
/>
|
519 |
|
|
</target>
|
520 |
|
|
|
521 |
1724
|
tao
|
<target name="dist" depends="jar,protocol,jdoc,getdtd,getschema">
|
522 |
806
|
jones
|
<mkdir dir="${dist.dir}"/>
|
523 |
|
|
<delete dir="${ver.dir}" />
|
524 |
|
|
<mkdir dir="${ver.dir}"/>
|
525 |
|
|
<copy todir="${ver.dir}">
|
526 |
1311
|
berkley
|
<fileset dir="."
|
527 |
882
|
jones
|
excludes="**/CVS* **/.#* **/src* **/test* **/build* **/docs* ${dist.dir}"/>
|
528 |
806
|
jones
|
</copy>
|
529 |
|
|
<copy todir="${ver.dir}" file="build.xml"/>
|
530 |
|
|
<copy todir="${ver.dir}/lib" file="${build.dir}/metacat.jar"/>
|
531 |
|
|
<copy todir="${ver.dir}/lib" file="${build.dir}/protocol.jar"/>
|
532 |
882
|
jones
|
|
533 |
|
|
<copy todir="${ver.dir}/docs" filtering="yes">
|
534 |
|
|
<fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
|
535 |
|
|
</copy>
|
536 |
|
|
<copy todir="${ver.dir}/docs" filtering="no">
|
537 |
|
|
<fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
|
538 |
|
|
</copy>
|
539 |
806
|
jones
|
<copy todir="${ver.dir}/docs/dev">
|
540 |
|
|
<fileset dir="${build.dir}/docs"/>
|
541 |
|
|
</copy>
|
542 |
917
|
berkley
|
<copy todir="${ver.dir}/src">
|
543 |
|
|
<fileset dir="${build.dir}/src"/>
|
544 |
|
|
</copy>
|
545 |
|
|
|
546 |
992
|
berkley
|
<delete dir="./${ver.dir}/${build.dir}"/>
|
547 |
|
|
<delete dir="./${ver.dir}/dist"/>
|
548 |
882
|
jones
|
<delete file="./${name}-${release}.zip"/>
|
549 |
1312
|
tao
|
<zip zipfile="./${name}-${release}.zip" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
|
550 |
882
|
jones
|
<delete file="./${name}-${release}.tar.gz" />
|
551 |
1312
|
tao
|
<tar tarfile="./${name}-${release}.tar" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
|
552 |
1311
|
berkley
|
<gzip zipfile="./${name}-${release}.tar.gz"
|
553 |
882
|
jones
|
src="./${name}-${release}.tar"/>
|
554 |
|
|
<delete file="./${name}-${release}.tar" />
|
555 |
1311
|
berkley
|
</target>
|
556 |
806
|
jones
|
|
557 |
|
|
<target name="distsrc" depends="dist">
|
558 |
|
|
<mkdir dir="${ver.src}"/>
|
559 |
|
|
<copy todir="${ver.src}">
|
560 |
|
|
<fileset dir="./src"/>
|
561 |
|
|
</copy>
|
562 |
|
|
|
563 |
882
|
jones
|
<delete file="./${name}-src-${release}.zip"/>
|
564 |
|
|
<zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/>
|
565 |
|
|
<delete file="./${name}-src-${release}.tar.gz" />
|
566 |
|
|
<tar tarfile="./${name}-src-${release}.tar" basedir="${dist.dir}"/>
|
567 |
1311
|
berkley
|
<gzip zipfile="./${name}-src-${release}.tar.gz"
|
568 |
882
|
jones
|
src="./${name}-src-${release}.tar"/>
|
569 |
|
|
<delete file="./${name}-src-${release}.tar" />
|
570 |
807
|
jones
|
<delete dir="${dist.dir}"/>
|
571 |
1311
|
berkley
|
</target>
|
572 |
806
|
jones
|
|
573 |
1702
|
tao
|
<target name="stylesheettest">
|
574 |
|
|
<xslt in="${input}" out="eml.html" style="lib/style/eml2/eml-2.0.0.xsl">
|
575 |
|
|
<param name="displaymodule" expression="${displaymodule}"/>
|
576 |
|
|
<param name="docid" expression="${input}"/>
|
577 |
|
|
<param name="entitytype" expression="${entitytype}"/>
|
578 |
|
|
<param name="entityindex" expression="${entityindex}"/>
|
579 |
|
|
<outputproperty name="method" value="html"/>
|
580 |
|
|
<outputproperty name="standalone" value="yes"/>
|
581 |
|
|
<outputproperty name="encoding" value="iso8859_1"/>
|
582 |
|
|
<outputproperty name="indent" value="yes"/>
|
583 |
|
|
</xslt>
|
584 |
|
|
</target>
|
585 |
1716
|
berkley
|
|
586 |
113
|
jones
|
</project>
|