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 |
|
|
|
36 |
2599
|
jones
|
<!-- Determine which tomcat we are using and tomcat-specific settings -->
|
37 |
|
|
<condition property="jsdk" value="${tomcat}/lib/common/servlet.jar">
|
38 |
|
|
<equals arg1="${tomcatversion}" arg2="tomcat3" />
|
39 |
|
|
</condition>
|
40 |
|
|
<condition property="jsdk" value="${tomcat}/common/lib/servlet.jar">
|
41 |
|
|
<equals arg1="${tomcatversion}" arg2="tomcat4" />
|
42 |
|
|
</condition>
|
43 |
|
|
<condition property="jsdk" value="${tomcat}/common/lib/servlet-api.jar">
|
44 |
|
|
<equals arg1="${tomcatversion}" arg2="tomcat5" />
|
45 |
|
|
</condition>
|
46 |
2957
|
tao
|
|
47 |
|
|
<!-- Determine if installed ecogrid -->
|
48 |
|
|
<condition property="enable.ecogrid">
|
49 |
|
|
<equals arg1="${install.ecogrid}" arg2="true" />
|
50 |
|
|
</condition>
|
51 |
3034
|
perry
|
|
52 |
|
|
<!-- Determine if geoserver and spatial options are to be enabled -->
|
53 |
|
|
<condition property="enable.spatial">
|
54 |
|
|
<equals arg1="${install.spatial}" arg2="true" />
|
55 |
|
|
</condition>
|
56 |
2957
|
tao
|
|
57 |
1929
|
brooke
|
<target name="check-db">
|
58 |
|
|
<condition property="use-oracle">
|
59 |
|
|
<equals arg1="${database}" arg2="oracle" />
|
60 |
|
|
</condition>
|
61 |
|
|
<condition property="use-postgresql">
|
62 |
|
|
<equals arg1="${database}" arg2="postgresql" />
|
63 |
|
|
</condition>
|
64 |
|
|
<condition property="use-sqlserver">
|
65 |
|
|
<equals arg1="${database}" arg2="sqlserver" />
|
66 |
|
|
</condition>
|
67 |
|
|
</target>
|
68 |
|
|
|
69 |
|
|
<target name="oracle" if="use-oracle">
|
70 |
931
|
jones
|
<!-- Customize these properties if you are using oracle -->
|
71 |
1929
|
brooke
|
<echo message="Using oracle..."/>
|
72 |
925
|
berkley
|
<property name="dbDriver" value="oracle.jdbc.driver.OracleDriver"/>
|
73 |
|
|
<property name="dbAdapter" value="edu.ucsb.nceas.dbadapter.OracleAdapter"/>
|
74 |
2617
|
tao
|
<property name="jdbc-jar-name" value="classes111.zip" />
|
75 |
|
|
<property name="jdbc" value="${jdbc_base}/${jdbc-jar-name}" />
|
76 |
1744
|
tao
|
<!-- Property to indicate is not MSSQL installation-->
|
77 |
|
|
<property name="other" value="yes"/>
|
78 |
2175
|
tao
|
<property name="install-sql"
|
79 |
2103
|
jones
|
value="xmltables.sql" />
|
80 |
2175
|
tao
|
<property name="upgrade-1.2-sql"
|
81 |
2103
|
jones
|
value="upgrade-db-to-1.2.sql" />
|
82 |
2175
|
tao
|
<property name="upgrade-1.3-sql"
|
83 |
2103
|
jones
|
value="upgrade-db-to-1.3.sql" />
|
84 |
2175
|
tao
|
<property name="upgrade-1.4-sql"
|
85 |
2103
|
jones
|
value="upgrade-db-to-1.4.sql" />
|
86 |
2518
|
sgarg
|
<property name="upgrade-1.5-sql"
|
87 |
2431
|
sgarg
|
value="upgrade-db-to-1.5.sql" />
|
88 |
2518
|
sgarg
|
<property name="upgrade-1.6-sql"
|
89 |
|
|
value="upgrade-db-to-1.6.sql" />
|
90 |
925
|
berkley
|
</target>
|
91 |
1311
|
berkley
|
|
92 |
1929
|
brooke
|
<target name="postgresql" if="use-postgresql">
|
93 |
931
|
jones
|
<!-- Customize these properties if you are using postgres -->
|
94 |
1929
|
brooke
|
<echo message="Using PostgreSQL..."/>
|
95 |
925
|
berkley
|
<property name="dbDriver" value="org.postgresql.Driver"/>
|
96 |
1311
|
berkley
|
<property name="dbAdapter"
|
97 |
931
|
jones
|
value="edu.ucsb.nceas.dbadapter.PostgresqlAdapter"/>
|
98 |
2610
|
tao
|
<property name="jdbc-jar-name" value="postgresql-8.0-312.jdbc3.jar" />
|
99 |
|
|
<property name="jdbc" value="lib/${jdbc-jar-name}" />
|
100 |
1744
|
tao
|
<!-- Property to indicate is not MSSQL installation-->
|
101 |
|
|
<property name="other" value="yes"/>
|
102 |
2175
|
tao
|
<property name="install-sql"
|
103 |
2277
|
jones
|
value="xmltables-postgres.sql" />
|
104 |
2175
|
tao
|
<property name="upgrade-1.2-sql"
|
105 |
2277
|
jones
|
value="upgrade-db-to-1.2-postgres.sql" />
|
106 |
2175
|
tao
|
<property name="upgrade-1.3-sql"
|
107 |
2277
|
jones
|
value="upgrade-db-to-1.3-postgres.sql" />
|
108 |
2175
|
tao
|
<property name="upgrade-1.4-sql"
|
109 |
2277
|
jones
|
value="upgrade-db-to-1.4-postgres.sql" />
|
110 |
2518
|
sgarg
|
<property name="upgrade-1.5-sql"
|
111 |
2431
|
sgarg
|
value="upgrade-db-to-1.5-postgres.sql" />
|
112 |
2518
|
sgarg
|
<property name="upgrade-1.6-sql"
|
113 |
|
|
value="upgrade-db-to-1.6-postgres.sql" />
|
114 |
1744
|
tao
|
</target>
|
115 |
2175
|
tao
|
|
116 |
1929
|
brooke
|
<target name="sqlserver" if="use-sqlserver">
|
117 |
1739
|
tao
|
<!-- Customize these properties if you are using SQL server -->
|
118 |
1929
|
brooke
|
<echo message="Using SQL Server..."/>
|
119 |
1739
|
tao
|
<property name="dbDriver" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
|
120 |
|
|
<property name="dbAdapter"
|
121 |
|
|
value="edu.ucsb.nceas.dbadapter.SqlserverAdapter"/>
|
122 |
2296
|
sgarg
|
<property name="jdbc" value="${jdbc_base}/msbase.jar" />
|
123 |
|
|
<property name="jdbc-add1" value="${jdbc_base}/msutil.jar" />
|
124 |
|
|
<property name="jdbc-add2" value="${jdbc_base}/mssqlserver.jar" />
|
125 |
1744
|
tao
|
<!-- Property to indicate is a MSSQL installation-->
|
126 |
|
|
<property name="MSSQL" value="yes"/>
|
127 |
2175
|
tao
|
<property name="install-sql"
|
128 |
2118
|
costa
|
value="xmltables-sqlserver.sql" />
|
129 |
1739
|
tao
|
</target>
|
130 |
1311
|
berkley
|
|
131 |
1929
|
brooke
|
<target name="config" depends="check-db,oracle,postgresql,sqlserver">
|
132 |
1814
|
tao
|
<!-- usr for client testing, generally you don't need change-->
|
133 |
2991
|
berkley
|
<property name="mcuser" value="uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org"/>
|
134 |
|
|
<property name="mcpassword" value="kepler"/>
|
135 |
1801
|
tao
|
<property name="mcanotheruser" value="uid=jtao,o=LTER,dc=ecoinformatics,dc=org"/>
|
136 |
|
|
<property name="mcanotherpassword" value=""/>
|
137 |
|
|
|
138 |
1827
|
jones
|
<property name="debug" value="on" />
|
139 |
2053
|
sgarg
|
<property name="debuglevel" value="55" />
|
140 |
1716
|
berkley
|
|
141 |
1522
|
berkley
|
<property name="morphosourcedir" value="../morpho" />
|
142 |
1570
|
tao
|
<property name="defaultcontenttype" value="application/octet-stream" />
|
143 |
1780
|
jones
|
<property name="utilitiesdir" value="../utilities" />
|
144 |
2175
|
tao
|
|
145 |
1941
|
brooke
|
<echo>*********** tomcatversion = ${tomcatversion}</echo>
|
146 |
|
|
<echo>*********** set jsdk to ${jsdk}</echo>
|
147 |
1103
|
tao
|
</target>
|
148 |
|
|
|
149 |
931
|
jones
|
<target name="init" depends="config">
|
150 |
2631
|
tao
|
<path id="compile.classpath">
|
151 |
|
|
<pathelement location="${jsdk}"/>
|
152 |
|
|
<pathelement location="lib" />
|
153 |
|
|
<fileset dir="lib">
|
154 |
|
|
<include name="*.jar"/>
|
155 |
|
|
</fileset>
|
156 |
3030
|
sgarg
|
<fileset dir="lib/xalan">
|
157 |
|
|
<include name="*.jar"/>
|
158 |
|
|
</fileset>
|
159 |
2631
|
tao
|
<fileset dir="lib/lsid_lib">
|
160 |
|
|
<include name="*.jar"/>
|
161 |
|
|
</fileset>
|
162 |
|
|
<fileset dir="${jdbc_base}">
|
163 |
|
|
<include name="${jdbc-jar-name}"/>
|
164 |
|
|
<include name="msbase.jar"/>
|
165 |
|
|
<include name="msutil.jar"/>
|
166 |
|
|
<include name="mssqlserver.jar"/>
|
167 |
3034
|
perry
|
</fileset>
|
168 |
|
|
|
169 |
|
|
<!-- Include geoserver, geotools, et. al. -->
|
170 |
|
|
<fileset dir="lib/spatial/geoserver/WEB-INF/lib">
|
171 |
|
|
<include name="*.jar"/>
|
172 |
2631
|
tao
|
</fileset>
|
173 |
3034
|
perry
|
<pathelement location="lib/spatial/geoserver/WEB-INF/classes"/>
|
174 |
|
|
|
175 |
2631
|
tao
|
</path>
|
176 |
|
|
|
177 |
931
|
jones
|
<!-- It is less likely you'll need to make any changes from here down,
|
178 |
|
|
but customization is possible -->
|
179 |
2737
|
jones
|
<property name="installdir" value="${deploy.dir}/${metacat.context}" />
|
180 |
|
|
<property name="temp-dir" value="/tmp/${metacat.context}" />
|
181 |
1929
|
brooke
|
<property name="name" value="metacat"/>
|
182 |
|
|
<property name="Name" value="MetaCat"/>
|
183 |
|
|
<property name="debugprefix" value="${Name}:"/>
|
184 |
2577
|
sgarg
|
<property name="release" value="1.6.0"/>
|
185 |
2737
|
jones
|
<property name="replication-path" value="/${metacat.context}/servlet/replication"/>
|
186 |
|
|
<property name="harvester-registration-login-path" value="/${metacat.context}/harvesterRegistrationLogin"/>
|
187 |
|
|
<property name="harvester-registration-path" value="/${metacat.context}/harvesterRegistration"/>
|
188 |
|
|
<property name="servlet-path" value="/${metacat.context}/metacat"/>
|
189 |
|
|
<property name="html-path" value="/${metacat.context}"/>
|
190 |
2974
|
jones
|
<property name="systemidserver" value="${http.protocol}://${httpserver}"/>
|
191 |
2175
|
tao
|
<property name="style-common-relpath"
|
192 |
1933
|
brooke
|
value="/style/common"/>
|
193 |
2175
|
tao
|
<property name="style-common-cvsrelpath"
|
194 |
1938
|
brooke
|
value="lib${style-common-relpath}"/>
|
195 |
2175
|
tao
|
<property name="style-common-fullpath"
|
196 |
1933
|
brooke
|
value="/${installdir}${style-common-relpath}"/>
|
197 |
2343
|
sgarg
|
<property name="templates.dir" value="${style-common-fullpath}/templates"/>
|
198 |
2175
|
tao
|
<property name="style-common-path"
|
199 |
2737
|
jones
|
value="/${metacat.context}${style-common-relpath}"/>
|
200 |
1929
|
brooke
|
<property name="style-skins-relpath" value="/style/skins"/>
|
201 |
2737
|
jones
|
<property name="style-skins-path" value="/${metacat.context}${style-skins-relpath}"/>
|
202 |
1929
|
brooke
|
<property name="replication-log" value="/tmp/metacatreplication.log"/>
|
203 |
1579
|
tao
|
<property name="replicationerrorlog" value="/tmp/metacatreplication.err"/>
|
204 |
2737
|
jones
|
<property name="config-dir" value="${deploy.dir}/${style-skins-path}" />
|
205 |
2461
|
sgarg
|
<property name="util-module" value="utilities" />
|
206 |
1929
|
brooke
|
<property name="eml-module" value="eml" />
|
207 |
|
|
<property name="eml-version" value="2.0.0beta6" />
|
208 |
|
|
<property name="eml-tag" value="EML_2_0_0_BETA_6_FOR_METACAT" />
|
209 |
2232
|
sgarg
|
<property name="eml2_0_0-tag" value="RELEASE_EML_2_0_0_UPDATE_1" />
|
210 |
3012
|
sgarg
|
<property name="eml2_0_1-tag" value="RELEASE_EML_2_0_1_UPDATE_3" />
|
211 |
2228
|
sgarg
|
<property name="eml2_0_0namespace" value="eml://ecoinformatics.org/eml-2.0.0" />
|
212 |
|
|
<property name="eml2_0_1namespace" value="eml://ecoinformatics.org/eml-2.0.1" />
|
213 |
|
|
<property name="eml2_1_0namespace" value="eml://ecoinformatics.org/eml-2.1.0" />
|
214 |
1929
|
brooke
|
<property name="stmmlnamespace" value="http://www.xml-cml.org/schema/stmml" />
|
215 |
1933
|
brooke
|
<property name="eml-css" value="eml_xsl.css"/>
|
216 |
|
|
<property name="eml-module.default.css"
|
217 |
|
|
value="default.css"/>
|
218 |
2965
|
tao
|
|
219 |
1929
|
brooke
|
<!-- Config for registry variables -->
|
220 |
1933
|
brooke
|
<property name="scope" value="obfs"/>
|
221 |
|
|
<property name="responseForm" value="genericResponse.tmpl"/>
|
222 |
|
|
<property name="entryForm" value="entryForm.tmpl"/>
|
223 |
|
|
<property name="guide" value="genericGuide.tmpl"/>
|
224 |
2781
|
sgarg
|
<property name="loginForm" value="loginForm.tmpl"/>
|
225 |
2343
|
sgarg
|
<property name="confirmData" value="confirmData.tmpl"/>
|
226 |
|
|
<property name="deleteData" value="deleteData.tmpl"/>
|
227 |
|
|
<property name="genericHeader" value="genericHeader.tmpl"/>
|
228 |
|
|
<property name="genericFooter" value="genericFooter.tmpl"/>
|
229 |
|
|
<property name="adminname" value="KNB Support"/>
|
230 |
|
|
<property name="recipient" value="knb-software\@nceas.ucsb.edu"/>
|
231 |
1929
|
brooke
|
|
232 |
2343
|
sgarg
|
<property name="defaultStage" value="initregister"/>
|
233 |
|
|
<property name="defaultHeader" value="genericHeader.tmpl"/>
|
234 |
|
|
<property name="defaultFooter" value="genericFooter.tmpl"/>
|
235 |
|
|
<property name="defaultChangePass" value="ldapChangePass.tmpl"/>
|
236 |
|
|
<property name="defaultResetPass" value="ldapResetPass.tmpl"/>
|
237 |
|
|
<property name="changePassSuccess" value="ldapChangePassSuccess.tmpl"/>
|
238 |
|
|
<property name="resetPassSuccess" value="ldapResetPassSuccess.tmpl"/>
|
239 |
|
|
<property name="registerFailed" value="ldapRegisterFailed.tmpl"/>
|
240 |
|
|
<property name="registerLter" value="ldapRegisterLter.tmpl"/>
|
241 |
|
|
<property name="registerMatch" value="ldapRegisterMatch.tmpl"/>
|
242 |
|
|
<property name="registerSuccess" value="ldapRegisterSuccess.tmpl"/>
|
243 |
|
|
<property name="register" value="ldapRegister.tmpl"/>
|
244 |
|
|
<property name="searchResults" value="searchResults.tmpl"/>
|
245 |
|
|
|
246 |
|
|
<filter token="scope" value="${scope}"/>
|
247 |
|
|
<filter token="responseForm" value="${responseForm}"/>
|
248 |
|
|
<filter token="entryForm" value="${entryForm}"/>
|
249 |
|
|
<filter token="guide" value="${guide}"/>
|
250 |
2781
|
sgarg
|
<filter token="loginForm" value="${loginForm}"/>
|
251 |
2343
|
sgarg
|
<filter token="confirmData" value="${confirmData}"/>
|
252 |
|
|
<filter token="deleteData" value="${deleteData}"/>
|
253 |
|
|
<filter token="genericHeader" value="${genericHeader}"/>
|
254 |
|
|
<filter token="genericFooter" value="${genericFooter}"/>
|
255 |
|
|
<filter token="adminname" value="${adminname}"/>
|
256 |
|
|
<filter token="recipient" value="${recipient}"/>
|
257 |
|
|
|
258 |
|
|
<filter token="ldapurl" value="ldap.ecoinformatics.org"/>
|
259 |
|
|
<filter token="ldapSearchBase" value="dc=ecoinformatics,dc=org"/>
|
260 |
|
|
<filter token="ldap_user" value="cn=Manager,dc=ecoinformatics,dc=org"/>
|
261 |
|
|
<filter token="ldap_password" value="ldap_password"/>
|
262 |
2870
|
sgarg
|
<filter token="mailhost" value="localhost"/>
|
263 |
2343
|
sgarg
|
<filter token="sender" value="knb-software\@nceas.ucsb.edu"/>
|
264 |
2974
|
jones
|
<filter token="cgiurl" value="${cgi-prefix}/ldapweb.cgi"/>
|
265 |
2343
|
sgarg
|
|
266 |
882
|
jones
|
<filter token="docrooturl" value="./" />
|
267 |
2356
|
sgarg
|
<filter token="database" value="${database}" />
|
268 |
588
|
berkley
|
<filter token="jdbc-connect" value="${jdbc-connect}"/>
|
269 |
882
|
jones
|
<filter token="dbDriver" value="${dbDriver}"/>
|
270 |
915
|
berkley
|
<filter token="dbAdapter" value="${dbAdapter}"/>
|
271 |
614
|
bojilova
|
<filter token="install-dir" value="${installdir}"/>
|
272 |
1929
|
brooke
|
<filter token="temp-dir" value="${temp-dir}"/>
|
273 |
586
|
berkley
|
<filter token="server" value="${server}"/>
|
274 |
977
|
tao
|
<filter token="systemidserver" value="${systemidserver}"/>
|
275 |
1929
|
brooke
|
<filter token="cgi-prefix" value="${cgi-prefix}"/>
|
276 |
|
|
<filter token="ldapUrl" value="${ldapUrl}"/>
|
277 |
586
|
berkley
|
<filter token="replication-log" value="${replication-log}"/>
|
278 |
1579
|
tao
|
<filter token="replicationerrorlog" value="${replicationerrorlog}"/>
|
279 |
348
|
jones
|
<filter token="release" value="${release}"/>
|
280 |
|
|
<filter token="servlet-path" value="${servlet-path}"/>
|
281 |
359
|
bojilova
|
<filter token="html-path" value="${html-path}"/>
|
282 |
362
|
jones
|
<filter token="user" value="${user}"/>
|
283 |
|
|
<filter token="password" value="${password}"/>
|
284 |
1783
|
jones
|
<filter token="mcuser" value="${mcuser}"/>
|
285 |
|
|
<filter token="mcpassword" value="${mcpassword}"/>
|
286 |
1801
|
tao
|
<filter token="mcanotheruser" value="${mcanotheruser}"/>
|
287 |
|
|
<filter token="mcanotherpassword" value="${mcanotherpassword}"/>
|
288 |
1929
|
brooke
|
<filter token="knb-site-url" value="${knb-site-url}"/>
|
289 |
1933
|
brooke
|
<filter token="eml-css" value="${eml-css}"/>
|
290 |
1929
|
brooke
|
<filter token="style-skins-relpath" value="${style-skins-relpath}"/>
|
291 |
|
|
<filter token="style-skins-path" value="${style-skins-path}"/>
|
292 |
|
|
<filter token="style-common-relpath" value="${style-common-relpath}"/>
|
293 |
|
|
<filter token="style-common-fullpath" value="${style-common-fullpath}"/>
|
294 |
|
|
<filter token="style-common-path" value="${style-common-path}"/>
|
295 |
2343
|
sgarg
|
<filter token="templates.dir" value="${templates.dir}"/>
|
296 |
|
|
|
297 |
1929
|
brooke
|
<!-- The "style-path" filter is used by the eml xsl stylesheets!! -->
|
298 |
|
|
<filter token="style-path" value="${style-skins-path}"/>
|
299 |
525
|
berkley
|
<filter token="replication-path" value="${replication-path}"/>
|
300 |
2299
|
costa
|
<filter token="harvester-registration-login-path" value="${harvester-registration-login-path}"/>
|
301 |
|
|
<filter token="harvester-registration-path" value="${harvester-registration-path}"/>
|
302 |
832
|
jones
|
<filter token="config-dir" value="${config-dir}"/>
|
303 |
|
|
<filter token="default-style" value="${default-style}"/>
|
304 |
877
|
jones
|
<filter token="eml-version" value="${eml-version}"/>
|
305 |
2175
|
tao
|
<filter token="eml2_0_0namespace" value="${eml2_0_0namespace}"/>
|
306 |
2228
|
sgarg
|
<filter token="eml2_0_1namespace" value="${eml2_0_1namespace}"/>
|
307 |
2175
|
tao
|
<filter token="eml2_1_0namespace" value="${eml2_1_0namespace}"/>
|
308 |
1718
|
tao
|
<filter token="stmmlnamespace" value="${stmmlnamespace}"/>
|
309 |
2737
|
jones
|
<filter token="context" value="${metacat.context}"/>
|
310 |
2961
|
tao
|
<filter token="httpserver" value="${httpserver}"/>
|
311 |
1292
|
tao
|
<filter token="forcereplicationwaitingtime" value="${forcereplicationwaitingtime}" />
|
312 |
1051
|
tao
|
<filter token="debuglevel" value="${debuglevel}" />
|
313 |
1079
|
tao
|
<filter token="datafilepath" value="${datafilepath}" />
|
314 |
1455
|
tao
|
<filter token="inlinedatafilepath" value="${inlinedatafilepath}" />
|
315 |
1522
|
berkley
|
<filter token="defaultcontenttype" value="${defaultcontenttype}" />
|
316 |
1538
|
berkley
|
<filter token="debugprefix" value="${debugprefix}"/>
|
317 |
2308
|
jones
|
<filter token="administrators" value="${administrators}"/>
|
318 |
2577
|
sgarg
|
<filter token="moderators" value="${moderators}"/>
|
319 |
|
|
<filter token="allowedSubmitters" value="${allowedSubmitters}"/>
|
320 |
|
|
<filter token="deniedSubmitters" value="${deniedSubmitters}"/>
|
321 |
2872
|
sgarg
|
<filter token="indexPaths" value="${indexPaths}"/>
|
322 |
1487
|
tao
|
|
323 |
2343
|
sgarg
|
<filter token="defaultStage" value="${defaultStage}"/>
|
324 |
|
|
<filter token="defaultHeader" value="${defaultHeader}"/>
|
325 |
|
|
<filter token="defaultFooter" value="${defaultFooter}"/>
|
326 |
|
|
<filter token="defaultChangePass" value="${defaultChangePass}"/>
|
327 |
|
|
<filter token="defaultResetPass" value="${defaultResetPass}"/>
|
328 |
|
|
<filter token="changePassSuccess" value="${changePassSuccess}"/>
|
329 |
|
|
<filter token="resetPassSuccess" value="${resetPassSuccess}"/>
|
330 |
|
|
<filter token="registerFailed" value="${registerFailed}"/>
|
331 |
|
|
<filter token="registerLter" value="${registerLter}"/>
|
332 |
|
|
<filter token="registerMatch" value="${registerMatch}"/>
|
333 |
|
|
<filter token="registerSuccess" value="${registerSuccess}"/>
|
334 |
|
|
<filter token="register" value="${register}"/>
|
335 |
|
|
<filter token="searchResults" value="${searchResults}"/>
|
336 |
2549
|
tao
|
|
337 |
|
|
<filter token="timedreplication" value="${timedreplication}" />
|
338 |
|
|
<filter token="firsttimedreplication" value="${firsttimedreplication}" />
|
339 |
|
|
<filter token="timedreplicationinterval" value="${timedreplicationinterval}" />
|
340 |
|
|
|
341 |
|
|
<property name="srcdir" value="./src" />
|
342 |
2599
|
jones
|
<property name="lib.dir" value="./lib" />
|
343 |
1783
|
jones
|
<property name="testdir" value="./test" />
|
344 |
2277
|
jones
|
<property name="testtorun" value="BuildIndexTest" />
|
345 |
1116
|
tao
|
<property name="junittestsdir" value="./test/edu/ucsb/nceas/metacattest" />
|
346 |
|
|
<property name="junitnettestsdir" value="./test/edu/ucsb/nceas/metacatnettest" />
|
347 |
348
|
jones
|
<property name="build.dir" value="./build"/>
|
348 |
|
|
<property name="build.src" value="${build.dir}/src"/>
|
349 |
|
|
<property name="build.dest" value="${build.dir}/classes"/>
|
350 |
516
|
jones
|
<property name="build.docs" value="${build.dir}/docs"/>
|
351 |
348
|
jones
|
<property name="build.samples" value="${build.dir}/samples"/>
|
352 |
|
|
<property name="build.tests" value="${build.dir}/tests"/>
|
353 |
1778
|
tao
|
<property name="build.tmp" value="${build.dir}/tmp"/>
|
354 |
1116
|
tao
|
<property name="build.metacattest" value="${build.tests}/metacattest"/>
|
355 |
|
|
<property name="build.metacatnettest" value="${build.tests}/metacatnettest"/>
|
356 |
348
|
jones
|
<property name="build.data" value="${build.dir}/data"/>
|
357 |
806
|
jones
|
<property name="build.javadocs" value="${build.dir}/docs/api"/>
|
358 |
1952
|
jones
|
<property name="build.war" value="${build.dir}/war"/>
|
359 |
348
|
jones
|
|
360 |
882
|
jones
|
<property name="dist.dir" value="dist"/>
|
361 |
806
|
jones
|
<property name="ver.dir" value="${dist.dir}/${name}-${release}"/>
|
362 |
|
|
<property name="ver.src" value="${ver.dir}/src"/>
|
363 |
2461
|
sgarg
|
<property name="util.dir" value="${dist.dir}/${util-module}"/>
|
364 |
2401
|
costa
|
<!-- directories for creating a Harvest List Editor distribution -->
|
365 |
|
|
<property name="dist.dir.hle" value="disthle"/>
|
366 |
|
|
<property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/>
|
367 |
2965
|
tao
|
|
368 |
|
|
|
369 |
|
|
<property name="ecogrid-target-name" value="metacatImpl"/>
|
370 |
|
|
<property name="ecogrid-module-dest-dir" value =".."/>
|
371 |
|
|
<property name="ecogrid-module" value="seek/projects/ecogrid"/>
|
372 |
|
|
<property name="ecogrid-dist-dir" value="${dist.dir}/${ecogrid-module}"/>
|
373 |
|
|
<property name="ecogrid-dir" value="${ecogrid-module-dest-dir}/${ecogrid-module}"/>
|
374 |
806
|
jones
|
|
375 |
254
|
jones
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
376 |
2317
|
jones
|
<condition property="utilities.required">
|
377 |
|
|
<or>
|
378 |
|
|
<not><available file="lib/httpclient.jar"/></not>
|
379 |
|
|
<not><available file="lib/utilities.jar"/></not>
|
380 |
|
|
</or>
|
381 |
|
|
</condition>
|
382 |
2318
|
jones
|
<condition property="eml.required">
|
383 |
|
|
<or>
|
384 |
|
|
<not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not>
|
385 |
|
|
<not><available file="lib/schema/eml-2.0.0/eml.xsd"/></not>
|
386 |
|
|
<not><available file="lib/dtd/eml-dataset-2.0.0beta6.dtd"/></not>
|
387 |
|
|
</or>
|
388 |
|
|
</condition>
|
389 |
2965
|
tao
|
|
390 |
|
|
<condition property="ecogrid.required">
|
391 |
|
|
<or>
|
392 |
|
|
<not><available file="${ecogrid-dir}/build.properties"/></not>
|
393 |
|
|
<not><available file="${ecogrid-dir}/buildfiles/metacatImpl.xml"/></not>
|
394 |
|
|
</or>
|
395 |
|
|
</condition>
|
396 |
2599
|
jones
|
|
397 |
113
|
jones
|
</target>
|
398 |
1311
|
berkley
|
|
399 |
348
|
jones
|
<target name="prepare" depends="init">
|
400 |
|
|
<mkdir dir="${build.dir}"/>
|
401 |
|
|
<mkdir dir="${build.src}"/>
|
402 |
|
|
<mkdir dir="${build.dest}"/>
|
403 |
516
|
jones
|
<mkdir dir="${build.javadocs}"/>
|
404 |
1778
|
tao
|
<mkdir dir="${build.tmp}"/>
|
405 |
348
|
jones
|
|
406 |
822
|
jones
|
<copy todir="${build.src}" filtering="yes">
|
407 |
|
|
<fileset dir="${srcdir}">
|
408 |
|
|
<include name="edu/**"/>
|
409 |
|
|
<include name="com/**"/>
|
410 |
877
|
jones
|
<include name="**/*.sql"/>
|
411 |
822
|
jones
|
<exclude name="**/CVS*"/>
|
412 |
|
|
<exclude name="**/.#*"/>
|
413 |
|
|
</fileset>
|
414 |
|
|
</copy>
|
415 |
2344
|
sgarg
|
<available file="lib/style/common/emlb6toeml2" type="dir"
|
416 |
1954
|
jones
|
property="styles.not.needed"/>
|
417 |
348
|
jones
|
</target>
|
418 |
|
|
|
419 |
1939
|
brooke
|
<target name="compile" depends="prepare,utilities"
|
420 |
1986
|
jones
|
description="Compiles java code to build dir, and copies metacat props files there">
|
421 |
1939
|
brooke
|
|
422 |
1311
|
berkley
|
<javac srcdir="${build.src}"
|
423 |
|
|
destdir="${build.dest}"
|
424 |
1827
|
jones
|
debug="${debug}"
|
425 |
2599
|
jones
|
excludes="**/*.sql **/stringclient/** **/client/*.java **/harvesterClient/*.java">
|
426 |
|
|
<classpath>
|
427 |
|
|
<path refid="compile.classpath"/>
|
428 |
|
|
</classpath>
|
429 |
|
|
</javac>
|
430 |
1311
|
berkley
|
</target>
|
431 |
113
|
jones
|
|
432 |
2322
|
jones
|
<target name="jar" depends="compile,geteml"
|
433 |
1939
|
brooke
|
description="Compiles and jars metacat java code to metacat.jar in build dir">
|
434 |
|
|
|
435 |
353
|
jones
|
<delete file="${build.dir}/${name}.jar" />
|
436 |
635
|
jones
|
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
|
437 |
2135
|
costa
|
excludes="**/protocols/ **/harvesterClient/" />
|
438 |
1311
|
berkley
|
</target>
|
439 |
|
|
|
440 |
1939
|
brooke
|
<target name="protocol" depends="compile"
|
441 |
|
|
description="Compiles and jars protocol java code to protocol.jar in build dir">
|
442 |
635
|
jones
|
<delete file="${build.dir}/protocol.jar" />
|
443 |
|
|
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
|
444 |
|
|
includes="**/protocols/" />
|
445 |
1311
|
berkley
|
</target>
|
446 |
113
|
jones
|
|
447 |
2317
|
jones
|
<target name="utilities" depends="config" if="utilities.required">
|
448 |
1796
|
jones
|
<ant dir="${utilitiesdir}" target="clean" inheritAll="false" />
|
449 |
|
|
<ant dir="${utilitiesdir}" target="jar" inheritAll="false" />
|
450 |
1780
|
jones
|
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" />
|
451 |
|
|
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" />
|
452 |
|
|
</target>
|
453 |
|
|
|
454 |
2461
|
sgarg
|
<target name="getutilities" depends="prepare"
|
455 |
|
|
description="Checks utility out of cvs and copies it to your metacat cvs sandbox">
|
456 |
|
|
<echo>Enter CVS password: </echo>
|
457 |
|
|
<cvs cvsRoot="${cvsroot}"
|
458 |
2468
|
sgarg
|
package="${util-module}"
|
459 |
2461
|
sgarg
|
dest="${build.tmp}" />
|
460 |
|
|
</target>
|
461 |
|
|
|
462 |
1939
|
brooke
|
<target name="client" depends="utilities, prepare"
|
463 |
|
|
description="Compiles metacat-client java code to build dir">
|
464 |
1780
|
jones
|
<javac srcdir="${build.src}"
|
465 |
|
|
destdir="${build.dest}"
|
466 |
2599
|
jones
|
includes="edu/ucsb/nceas/metacat/client/*">
|
467 |
|
|
<classpath>
|
468 |
|
|
<path refid="compile.classpath"/>
|
469 |
|
|
</classpath>
|
470 |
|
|
</javac>
|
471 |
1780
|
jones
|
</target>
|
472 |
|
|
|
473 |
1939
|
brooke
|
<target name="clientjar" depends="client"
|
474 |
|
|
description="Compiles and jars metacat-client java code to metacat-client.jar in build dir">
|
475 |
1780
|
jones
|
<delete file="${build.dir}/${name}-client.jar" />
|
476 |
|
|
<jar jarfile="${build.dir}/${name}-client.jar" basedir="${build.dest}"
|
477 |
|
|
includes="**/metacat/client/" />
|
478 |
|
|
</target>
|
479 |
|
|
|
480 |
2748
|
costa
|
<target name="advancedsearchjar" depends="compile"
|
481 |
|
|
description="Compiles and jars advanced search Java code to advancedsearch.jar in build dir">
|
482 |
|
|
<delete file="${build.dir}/advancedsearch.jar" />
|
483 |
|
|
<jar jarfile="${build.dir}/advancedsearch.jar" basedir="${build.dest}"
|
484 |
|
|
includes="**/metacat/advancedsearch/" />
|
485 |
|
|
</target>
|
486 |
|
|
|
487 |
2059
|
costa
|
<target name="harvester" depends="client"
|
488 |
1950
|
costa
|
description="Compiles harvester java code to build dir">
|
489 |
|
|
<javac srcdir="${build.src}"
|
490 |
|
|
destdir="${build.dest}"
|
491 |
2599
|
jones
|
includes="edu/ucsb/nceas/metacat/harvesterClient/*">
|
492 |
|
|
<classpath>
|
493 |
|
|
<path refid="compile.classpath"/>
|
494 |
|
|
</classpath>
|
495 |
|
|
</javac>
|
496 |
1950
|
costa
|
</target>
|
497 |
|
|
|
498 |
|
|
<target name="harvesterjar" depends="harvester"
|
499 |
2059
|
costa
|
description="Compiles and jars harvester java code to harvester.jar in build dir">
|
500 |
|
|
<delete file="${build.dir}/harvester.jar" />
|
501 |
|
|
<jar jarfile="${build.dir}/harvester.jar" basedir="${build.dest}"
|
502 |
1950
|
costa
|
includes="**/metacat/harvesterClient/" />
|
503 |
|
|
</target>
|
504 |
|
|
|
505 |
2369
|
costa
|
<target name="harvestListEditorDist" depends="harvesterjar"
|
506 |
|
|
description="Prepares a distribution of the Harvest List Editor tool">
|
507 |
2401
|
costa
|
<mkdir dir="${dist.dir.hle}"/>
|
508 |
|
|
<delete dir="${ver.dir.hle}" />
|
509 |
|
|
<mkdir dir="${ver.dir.hle}"/>
|
510 |
|
|
<copy todir="${ver.dir.hle}" file="${build.dir}/harvester.jar"/>
|
511 |
|
|
<copy todir="${ver.dir.hle}" file="lib/xercesImpl.jar"/>
|
512 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestList.xsd"/>
|
513 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.bat"/>
|
514 |
|
|
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.sh"/>
|
515 |
|
|
<delete file="./harvest-list-editor-${release}.zip"/>
|
516 |
|
|
<zip zipfile="./harvest-list-editor-${release}.zip" basedir="${ver.dir.hle}" />
|
517 |
|
|
<delete file="./harvest-list-editor-${release}.tar.gz" />
|
518 |
|
|
<tar tarfile="./harvest-list-editor-${release}.tar" basedir="${ver.dir.hle}" />
|
519 |
|
|
<gzip zipfile="./harvest-list-editor-${release}.tar.gz"
|
520 |
|
|
src="./harvest-list-editor-${release}.tar"/>
|
521 |
|
|
<delete file="./harvest-list-editor-${release}.tar" />
|
522 |
2369
|
costa
|
</target>
|
523 |
|
|
|
524 |
2318
|
jones
|
<target name="geteml" depends="getemlpre2,geteml2+" if="eml.required"
|
525 |
1939
|
brooke
|
description="Calls getemlpre2 and geteml2+ targets" />
|
526 |
|
|
|
527 |
2318
|
jones
|
<target name="getemlpre2" depends="prepare" if="eml.required"
|
528 |
1939
|
brooke
|
description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox">
|
529 |
1612
|
tao
|
<echo>Enter CVS password: </echo>
|
530 |
|
|
<cvs cvsRoot="${cvsroot}"
|
531 |
|
|
package="${eml-module}"
|
532 |
|
|
tag="${eml-tag}"
|
533 |
1939
|
brooke
|
dest="${build.tmp}/eml_${eml-tag}" />
|
534 |
1612
|
tao
|
<mkdir dir="lib/dtd" />
|
535 |
|
|
<copy todir="lib/dtd" filtering="yes">
|
536 |
1939
|
brooke
|
<fileset dir="${build.tmp}/eml_${eml-tag}/${eml-module}">
|
537 |
1612
|
tao
|
<include name="*.dtd"/>
|
538 |
|
|
</fileset>
|
539 |
|
|
<mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" />
|
540 |
|
|
</copy>
|
541 |
2228
|
sgarg
|
|
542 |
|
|
<copy todir="${style-common-cvsrelpath}" filtering="yes">
|
543 |
|
|
<fileset dir="${build.tmp}/eml_${eml-tag}/${eml-module}/style">
|
544 |
|
|
<include name="**/*.xsl"/>
|
545 |
|
|
</fileset>
|
546 |
|
|
</copy>
|
547 |
1939
|
brooke
|
</target>
|
548 |
|
|
|
549 |
2318
|
jones
|
<target name="geteml2+" depends="prepare" if="eml.required"
|
550 |
1939
|
brooke
|
description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox">
|
551 |
|
|
<echo>Enter CVS password: </echo>
|
552 |
1612
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
553 |
|
|
package="${eml-module}"
|
554 |
2228
|
sgarg
|
tag="${eml2_0_0-tag}"
|
555 |
|
|
dest="${build.tmp}/eml_${eml2_0_0-tag}" />
|
556 |
|
|
<mkdir dir="lib/schema/eml-2.0.0" />
|
557 |
|
|
<copy todir="lib/schema/eml-2.0.0" filtering="yes">
|
558 |
|
|
<fileset dir="${build.tmp}/eml_${eml2_0_0-tag}/${eml-module}">
|
559 |
1612
|
tao
|
<include name="*.xsd"/>
|
560 |
|
|
</fileset>
|
561 |
2175
|
tao
|
|
562 |
1939
|
brooke
|
<!-- shouldn't we have a mapper here like this??
|
563 |
|
|
<mapper type="glob" from="eml-*.xsd" to="eml-*-${eml-version}.xsd" />
|
564 |
2175
|
tao
|
|
565 |
|
|
Jing's code didn't nave one - does it need to be added?
|
566 |
1939
|
brooke
|
NOTE that eml-version is set to beta 6, so this would need changing -->
|
567 |
2175
|
tao
|
|
568 |
1612
|
tao
|
</copy>
|
569 |
3018
|
sgarg
|
<!-- <antcall target="copyxsl">
|
570 |
2228
|
sgarg
|
<param name="cvs.tagname" value="${eml2_0_0-tag}" />
|
571 |
|
|
<param name="dirname" value="eml-2.0.0" />
|
572 |
3018
|
sgarg
|
</antcall> -->
|
573 |
2228
|
sgarg
|
|
574 |
|
|
<echo>Enter CVS password: </echo>
|
575 |
|
|
<cvs cvsRoot="${cvsroot}"
|
576 |
|
|
package="${eml-module}"
|
577 |
|
|
tag="${eml2_0_1-tag}"
|
578 |
|
|
dest="${build.tmp}/eml_${eml2_0_1-tag}" />
|
579 |
|
|
<mkdir dir="lib/schema/eml-2.0.1" />
|
580 |
|
|
<copy todir="lib/schema/eml-2.0.1" filtering="yes">
|
581 |
|
|
<fileset dir="${build.tmp}/eml_${eml2_0_1-tag}/${eml-module}">
|
582 |
|
|
<include name="*.xsd"/>
|
583 |
|
|
</fileset>
|
584 |
|
|
</copy>
|
585 |
|
|
<antcall target="copyxsl">
|
586 |
|
|
<param name="cvs.tagname" value="${eml2_0_1-tag}" />
|
587 |
|
|
<param name="dirname" value="eml-2.0.1" />
|
588 |
|
|
</antcall>
|
589 |
1939
|
brooke
|
</target>
|
590 |
|
|
|
591 |
2175
|
tao
|
<target name="copyxsl"
|
592 |
1939
|
brooke
|
description="Copies xsl stylesheets from checkout in build/tmp to your metacat cvs sandbox">
|
593 |
|
|
|
594 |
|
|
<delete file="${style-common-cvsrelpath}/${eml-css}"/>
|
595 |
2175
|
tao
|
|
596 |
2228
|
sgarg
|
<copy todir="${style-common-cvsrelpath}/${dirname}" filtering="yes">
|
597 |
|
|
<fileset dir="${build.tmp}/eml_${cvs.tagname}/${eml-module}/style/eml">
|
598 |
1929
|
brooke
|
<include name="**/*.xsl"/>
|
599 |
1612
|
tao
|
</fileset>
|
600 |
|
|
</copy>
|
601 |
1939
|
brooke
|
|
602 |
2175
|
tao
|
|
603 |
|
|
<!-- now copy default css from eml module and put it in style-common-path
|
604 |
1933
|
brooke
|
dir with a new name, so other skin-specific css can import it if reqd -->
|
605 |
1939
|
brooke
|
<copy file="${build.tmp}/eml_${cvs.tagname}/${eml-module}/${eml-module.default.css}"
|
606 |
1938
|
brooke
|
tofile="${style-common-cvsrelpath}/${eml-css}" />
|
607 |
1612
|
tao
|
|
608 |
1463
|
tao
|
</target>
|
609 |
2175
|
tao
|
|
610 |
|
|
|
611 |
|
|
|
612 |
2322
|
jones
|
<target name="register-schemas" depends="prepare"
|
613 |
|
|
description="Registers the Schemas with a new Metacat instance">
|
614 |
877
|
jones
|
<echo/>
|
615 |
2322
|
jones
|
<echo>Registering the Schemas with the new Metacat instance...</echo>
|
616 |
877
|
jones
|
<sql driver="${dbDriver}"
|
617 |
|
|
url="${jdbc-connect}"
|
618 |
|
|
userid="${user}"
|
619 |
|
|
password="${password}"
|
620 |
2599
|
jones
|
src="${build.src}/loaddtdschema.sql">
|
621 |
|
|
<classpath>
|
622 |
|
|
<path refid="compile.classpath"/>
|
623 |
|
|
</classpath>
|
624 |
|
|
</sql>
|
625 |
877
|
jones
|
</target>
|
626 |
1716
|
berkley
|
|
627 |
1939
|
brooke
|
<target name="installdb" depends="prepare"
|
628 |
|
|
description="Installs the database tables">
|
629 |
1827
|
jones
|
<echo/>
|
630 |
|
|
<echo>Installing the database tables...</echo>
|
631 |
2445
|
sgarg
|
<echo>In case of failure, run the sql script manually. Look at Metacat install instructions for more details</echo>
|
632 |
2599
|
jones
|
<echo/>
|
633 |
1827
|
jones
|
<sql driver="${dbDriver}"
|
634 |
|
|
url="${jdbc-connect}"
|
635 |
|
|
userid="${user}"
|
636 |
|
|
password="${password}"
|
637 |
2599
|
jones
|
src="${build.src}/${install-sql}">
|
638 |
|
|
<classpath>
|
639 |
|
|
<path refid="compile.classpath"/>
|
640 |
|
|
</classpath>
|
641 |
|
|
</sql>
|
642 |
1827
|
jones
|
</target>
|
643 |
|
|
|
644 |
2599
|
jones
|
<target name="dropdb" depends="prepare"
|
645 |
|
|
description="WARNING: Drops the database tables">
|
646 |
|
|
<echo/>
|
647 |
|
|
<echo>Dropping the database tables...</echo>
|
648 |
|
|
<echo>In case of failure, run the sql script manually. Look at Metacat install instructions for more details</echo>
|
649 |
|
|
<echo/>
|
650 |
|
|
<sql driver="${dbDriver}"
|
651 |
|
|
url="${jdbc-connect}"
|
652 |
|
|
userid="${user}"
|
653 |
|
|
password="${password}"
|
654 |
|
|
src="${build.src}/drop-postgres.sql">
|
655 |
|
|
<classpath>
|
656 |
|
|
<path refid="compile.classpath"/>
|
657 |
|
|
</classpath>
|
658 |
|
|
</sql>
|
659 |
|
|
</target>
|
660 |
|
|
|
661 |
1939
|
brooke
|
<target name="upgrade12" depends="prepare"
|
662 |
|
|
description="Updates the database tables to upgrade to version 1.2">
|
663 |
1827
|
jones
|
<echo/>
|
664 |
|
|
<echo>Updating the database tables to upgrade to version 1.2...</echo>
|
665 |
|
|
<sql driver="${dbDriver}"
|
666 |
|
|
url="${jdbc-connect}"
|
667 |
|
|
userid="${user}"
|
668 |
|
|
password="${password}"
|
669 |
2599
|
jones
|
src="${build.src}/${upgrade-1.2-sql}">
|
670 |
|
|
<classpath>
|
671 |
|
|
<path refid="compile.classpath"/>
|
672 |
|
|
</classpath>
|
673 |
|
|
</sql>
|
674 |
1827
|
jones
|
</target>
|
675 |
|
|
|
676 |
1939
|
brooke
|
<target name="upgrade13" depends="prepare"
|
677 |
|
|
description="Updates the database tables to upgrade to version 1.3">
|
678 |
1827
|
jones
|
<echo/>
|
679 |
|
|
<echo>Updating the database tables to upgrade to version 1.3...</echo>
|
680 |
|
|
<sql driver="${dbDriver}"
|
681 |
|
|
url="${jdbc-connect}"
|
682 |
|
|
userid="${user}"
|
683 |
|
|
password="${password}"
|
684 |
2599
|
jones
|
src="${build.src}/${upgrade-1.3-sql}">
|
685 |
|
|
<classpath>
|
686 |
|
|
<path refid="compile.classpath"/>
|
687 |
|
|
</classpath>
|
688 |
|
|
</sql>
|
689 |
1827
|
jones
|
</target>
|
690 |
|
|
|
691 |
2103
|
jones
|
<target name="upgrade14" depends="prepare"
|
692 |
|
|
description="Updates the database tables to upgrade to version 1.4">
|
693 |
|
|
<echo/>
|
694 |
|
|
<echo>Updating the database tables to upgrade to version 1.4...</echo>
|
695 |
|
|
<sql driver="${dbDriver}"
|
696 |
|
|
url="${jdbc-connect}"
|
697 |
|
|
userid="${user}"
|
698 |
|
|
password="${password}"
|
699 |
2599
|
jones
|
src="${build.src}/${upgrade-1.4-sql}">
|
700 |
|
|
<classpath>
|
701 |
|
|
<path refid="compile.classpath"/>
|
702 |
|
|
</classpath>
|
703 |
|
|
</sql>
|
704 |
2103
|
jones
|
</target>
|
705 |
|
|
|
706 |
2395
|
tao
|
<target name="upgrade15" depends="sqlupgrade15"
|
707 |
2391
|
tao
|
description="Updates the database tables to upgrade to version 1.5">
|
708 |
2353
|
sgarg
|
<echo/>
|
709 |
2461
|
sgarg
|
<echo>Updating the database tables to upgrade to version 1.5...</echo>
|
710 |
2353
|
sgarg
|
<copy file="${srcdir}/upgrade_db_to_1_5.java"
|
711 |
2391
|
tao
|
todir="${build.tmp}" filtering="yes"/>
|
712 |
2461
|
sgarg
|
|
713 |
2353
|
sgarg
|
<javac srcdir="${build.tmp}"
|
714 |
|
|
destdir="${build.tmp}"
|
715 |
|
|
debug="${debug}"
|
716 |
2599
|
jones
|
includes="upgrade_db_to_1_5.java">
|
717 |
|
|
<classpath>
|
718 |
|
|
<path refid="compile.classpath"/>
|
719 |
|
|
</classpath>
|
720 |
|
|
</javac>
|
721 |
2461
|
sgarg
|
|
722 |
2599
|
jones
|
<java classname="upgrade_db_to_1_5">
|
723 |
|
|
<classpath>
|
724 |
|
|
<path refid="compile.classpath"/>
|
725 |
|
|
<fileset dir="${build.tmp}"/>
|
726 |
|
|
</classpath>
|
727 |
|
|
</java>
|
728 |
2353
|
sgarg
|
|
729 |
2393
|
tao
|
</target>
|
730 |
2461
|
sgarg
|
|
731 |
2518
|
sgarg
|
<target name="upgrade16" depends="prepare"
|
732 |
|
|
description="Updates the database tables from version 1.5 to version 1.6">
|
733 |
|
|
<echo/>
|
734 |
|
|
<echo>Updating the database tables to upgrade to version 1.6...</echo>
|
735 |
|
|
<sql driver="${dbDriver}"
|
736 |
|
|
url="${jdbc-connect}"
|
737 |
|
|
userid="${user}"
|
738 |
|
|
password="${password}"
|
739 |
2599
|
jones
|
src="${build.src}/${upgrade-1.6-sql}">
|
740 |
|
|
<classpath>
|
741 |
|
|
<path refid="compile.classpath"/>
|
742 |
|
|
</classpath>
|
743 |
|
|
</sql>
|
744 |
2518
|
sgarg
|
</target>
|
745 |
|
|
|
746 |
|
|
|
747 |
2395
|
tao
|
<target name="sqlupgrade15" depends="prepare">
|
748 |
|
|
<echo>Updating the database tables to upgrade to version 1.5 by sql command</echo>
|
749 |
2393
|
tao
|
<sql driver="${dbDriver}"
|
750 |
|
|
classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}"
|
751 |
|
|
url="${jdbc-connect}"
|
752 |
|
|
userid="${user}"
|
753 |
|
|
password="${password}"
|
754 |
|
|
src="${build.src}/${upgrade-1.5-sql}" />
|
755 |
2444
|
sgarg
|
<sql driver="${dbDriver}"
|
756 |
|
|
classpath="${jdbc}:${jdbc-add1}:${jdbc-add2}"
|
757 |
|
|
url="${jdbc-connect}"
|
758 |
|
|
userid="${user}"
|
759 |
|
|
password="${password}"
|
760 |
|
|
rdbms="oracle"
|
761 |
|
|
delimiter="/">
|
762 |
|
|
<transaction>
|
763 |
|
|
CREATE TRIGGER xml_returnfield_before_insert
|
764 |
|
|
BEFORE INSERT ON xml_returnfield FOR EACH ROW
|
765 |
|
|
BEGIN
|
766 |
|
|
SELECT xml_returnfield_id_seq.nextval
|
767 |
|
|
INTO :new.returnfield_id
|
768 |
|
|
FROM dual;
|
769 |
|
|
END;
|
770 |
|
|
/
|
771 |
|
|
</transaction>
|
772 |
|
|
<transaction>
|
773 |
|
|
CREATE TRIGGER xml_queryresult_before_insert
|
774 |
|
|
BEFORE INSERT ON xml_queryresult FOR EACH ROW
|
775 |
|
|
BEGIN
|
776 |
|
|
SELECT xml_queryresult_id_seq.nextval
|
777 |
|
|
INTO :new.queryresult_id
|
778 |
|
|
FROM dual;
|
779 |
|
|
END;
|
780 |
|
|
/
|
781 |
|
|
</transaction>
|
782 |
|
|
</sql>
|
783 |
2393
|
tao
|
</target>
|
784 |
2353
|
sgarg
|
|
785 |
3034
|
perry
|
<target name="install-spatial" depends="jar,clientjar,harvesterjar" if="enable.spatial"
|
786 |
|
|
description="Installs spatial option for metacat">
|
787 |
|
|
|
788 |
|
|
<property name="spatial.dir" value="./lib/spatial"/>
|
789 |
|
|
<property name="spatial.geoserver.dir" value="${spatial.dir}/geoserver"/>
|
790 |
|
|
<property name="spatial.webinf-mods" value="${spatial.dir}/WEB-INF"/>
|
791 |
|
|
|
792 |
|
|
<!-- Copy geoserver libs into ${war.lib} -->
|
793 |
|
|
<copy todir="${war.lib}" filtering="no">
|
794 |
|
|
<fileset dir="${spatial.geoserver.dir}/WEB-INF/lib">
|
795 |
|
|
<include name="**"/>
|
796 |
|
|
</fileset>
|
797 |
|
|
</copy>
|
798 |
|
|
|
799 |
|
|
<!-- Copy everything in geoservers WEB-INF (except the libs) into ${war.webinf} -->
|
800 |
|
|
<copy todir="${war.webinf}" filtering="no">
|
801 |
|
|
<fileset dir="${spatial.geoserver.dir}/WEB-INF">
|
802 |
|
|
<exclude name="lib/**"/>
|
803 |
|
|
<exclude name="web.xml"/>
|
804 |
|
|
</fileset>
|
805 |
|
|
</copy>
|
806 |
|
|
|
807 |
|
|
<!-- Copy the rest of the geoserver codebase into ${war.context} -->
|
808 |
|
|
<copy todir="${war.context}" filtering="no">
|
809 |
|
|
<fileset dir="${spatial.geoserver.dir}">
|
810 |
|
|
<exclude name="WEB-INF/**"/>
|
811 |
|
|
<exclude name="index.jsp"/>
|
812 |
|
|
</fileset>
|
813 |
|
|
</copy>
|
814 |
|
|
|
815 |
|
|
<!-- Copy the geoserver index.jsp but rename it to avoid conflicting w/metcat -->
|
816 |
|
|
<copy file="${spatial.geoserver.dir}/WEB-INF/pages/index.jsp"
|
817 |
|
|
tofile="${war.context}/geoserver.jsp"
|
818 |
|
|
overwrite="true"
|
819 |
|
|
filtering="no"/>
|
820 |
|
|
|
821 |
|
|
<!-- Copy the geoserver/metacat combined web.xml into ${build.war}/web.xml -->
|
822 |
|
|
<copy file="${spatial.webinf-mods}/web.xml.combined"
|
823 |
|
|
tofile="${build.war}/web.xml"
|
824 |
|
|
overwrite="true"
|
825 |
|
|
filtering="no"/>
|
826 |
|
|
|
827 |
|
|
<!-- Copy the rest of the modified geoserver web-inf files
|
828 |
|
|
<copy todir="${war.webinf}" filtering="no">
|
829 |
|
|
<fileset dir="${spatial.webinf-mods}">
|
830 |
|
|
<exclude name="web.xml.combined"/>
|
831 |
|
|
</fileset>
|
832 |
|
|
</copy> -->
|
833 |
|
|
|
834 |
|
|
</target>
|
835 |
|
|
|
836 |
|
|
|
837 |
2957
|
tao
|
<target name="install" depends="install-ecogrid" description="* Full Install *">
|
838 |
1079
|
tao
|
<mkdir dir="${datafilepath}" />
|
839 |
1455
|
tao
|
<mkdir dir="${inlinedatafilepath}" />
|
840 |
1079
|
tao
|
<chmod dir="${datafilepath}" perm="ug+w" />
|
841 |
1929
|
brooke
|
<mkdir dir="${temp-dir}"/>
|
842 |
|
|
<chmod dir="${temp-dir}" perm="ug+w" />
|
843 |
2737
|
jones
|
<copy file="${dist.dir}/${metacat.context}.war" todir="${deploy.dir}"/>
|
844 |
2993
|
tao
|
<echo>If you enable ecogrid installation, please run "ant deploy-ecogrid" when installation or upgrade is done</echo>
|
845 |
1952
|
jones
|
</target>
|
846 |
2957
|
tao
|
|
847 |
2965
|
tao
|
<target name="install-ecogrid" depends="war, get-ecogrid" if="enable.ecogrid"
|
848 |
2957
|
tao
|
description="Install Ecogrid Compentent">
|
849 |
2965
|
tao
|
<copyfile src="lib/metacat.url" dest="${ecogrid-dir}/conf/MetacatImpl/classes/metacat.properties" forceoverwrite="true" filtering="yes"/>
|
850 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="clean" inheritall="false">
|
851 |
2977
|
tao
|
<property name="context" value="${metacat.context}"/>
|
852 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
853 |
|
|
<property name="metacat.dir" value="${metacat.dir}"/>
|
854 |
|
|
</ant>
|
855 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="war" inheritall="false">
|
856 |
2957
|
tao
|
<property name="context" value="${metacat.context}"/>
|
857 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
858 |
2965
|
tao
|
<property name="metacat.dir" value="${metacat.dir}"/>
|
859 |
2957
|
tao
|
</ant>
|
860 |
2978
|
tao
|
<war destfile="${ecogrid-dir}/build/${metacat.context}.war" update="true">
|
861 |
|
|
<webinf dir="${ecogrid-dir}/lib">
|
862 |
|
|
<include name="server-config.wsdd"/>
|
863 |
|
|
</webinf>
|
864 |
|
|
</war>
|
865 |
2965
|
tao
|
<copy file="${ecogrid-dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/>
|
866 |
2978
|
tao
|
|
867 |
|
|
|
868 |
2957
|
tao
|
</target>
|
869 |
2965
|
tao
|
|
870 |
|
|
<target name="get-ecogrid" depends="init" if="ecogrid.required" description="Check out ecogrid module">
|
871 |
|
|
<echo>Enter CVS password: </echo>
|
872 |
|
|
<cvs cvsRoot="${cvsroot}"
|
873 |
|
|
package="${ecogrid-module}" dest="${ecogrid-module-dest-dir}"/>
|
874 |
|
|
</target>
|
875 |
|
|
|
876 |
|
|
|
877 |
2175
|
tao
|
<target name="upgrade" depends="install"
|
878 |
1952
|
jones
|
description="* Upgrade an existing metacat installation with a new version *">
|
879 |
2737
|
jones
|
<unwar src="${deploy.dir}/${metacat.context}.war" dest="${deploy.dir}/${metacat.context}" />
|
880 |
1952
|
jones
|
</target>
|
881 |
2957
|
tao
|
|
882 |
2978
|
tao
|
<target name="deploy-ecogrid" depends="clean-ecogrid-server-config-wsdd" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service">
|
883 |
2991
|
berkley
|
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="deploy" inheritall="false">
|
884 |
2957
|
tao
|
<property name="context" value="${metacat.context}"/>
|
885 |
|
|
<property name="target" value="${ecogrid-target-name}"/>
|
886 |
2965
|
tao
|
<property name="metacat.dir" value="${metacat.dir}"/>
|
887 |
2977
|
tao
|
<property name="hostname" value="${config.hostname}"/>
|
888 |
|
|
<property name="port" value="${config.port}"/>
|
889 |
2957
|
tao
|
</ant>
|
890 |
|
|
</target>
|
891 |
2978
|
tao
|
|
892 |
|
|
<target name="clean-ecogrid-server-config-wsdd" depends="init" description="Automately generate wsdd for ecogrid service">
|
893 |
|
|
<delete file="${deploy.dir}/${metacat.context}/WEB-INF/server-config.wsdd"/>
|
894 |
|
|
</target>
|
895 |
1952
|
jones
|
|
896 |
2175
|
tao
|
<target name="install-registry" depends="init,getConversionXSL"
|
897 |
1952
|
jones
|
description="Install Registry">
|
898 |
2175
|
tao
|
|
899 |
1952
|
jones
|
<copy file="${srcdir}/perl/register-dataset.cgi"
|
900 |
|
|
todir="${inst.cgi.dir}" filtering="yes"/>
|
901 |
|
|
<chmod file="${inst.cgi.dir}/register-dataset.cgi" perm="ugo+x" />
|
902 |
2175
|
tao
|
|
903 |
1952
|
jones
|
<mkdir dir="${temp-dir}" />
|
904 |
2343
|
sgarg
|
<copy todir="${temp-dir}" filtering="yes">
|
905 |
|
|
<fileset dir="lib/style/common/emlb6toeml2">
|
906 |
1952
|
jones
|
<include name="*.xsl"/>
|
907 |
|
|
<include name="*.xml"/>
|
908 |
|
|
</fileset>
|
909 |
2343
|
sgarg
|
</copy>
|
910 |
1952
|
jones
|
|
911 |
|
|
<echo message="Install Registry completed." />
|
912 |
|
|
</target>
|
913 |
|
|
|
914 |
2343
|
sgarg
|
<target name="install-ldap" depends="init">
|
915 |
|
|
<copy file="${srcdir}/perl/ldapweb.cgi"
|
916 |
|
|
todir="${inst.cgi.dir}" filtering="yes"/>
|
917 |
|
|
<chmod file="${inst.cgi.dir}/ldapweb.cgi" perm="ugo+x" />
|
918 |
|
|
<copy file="lib/ldapweb.cfg"
|
919 |
|
|
todir="${inst.cgi.dir}" filtering="yes"/>
|
920 |
|
|
<chmod file="${inst.cgi.dir}/ldapweb.cfg" perm="ugo+x" />
|
921 |
|
|
<mkdir dir="${templates.dir}" />
|
922 |
|
|
<copy todir="${templates.dir}" filtering="yes">
|
923 |
|
|
<fileset dir="lib/style/common/templates">
|
924 |
|
|
<include name="${defaultChangePass}"/>
|
925 |
|
|
<include name="${defaultResetPass}"/>
|
926 |
|
|
<include name="${changePassSuccess}"/>
|
927 |
|
|
<include name="${resetPassSuccess}"/>
|
928 |
|
|
<include name="${registerFailed}"/>
|
929 |
|
|
<include name="${registerLter}"/>
|
930 |
|
|
<include name="${registerMatch}"/>
|
931 |
|
|
<include name="${registerSuccess}"/>
|
932 |
|
|
<include name="${register}"/>
|
933 |
|
|
<include name="${searchResults}"/>
|
934 |
2974
|
jones
|
<include name="${defaultHeader}"/>
|
935 |
|
|
<include name="${defaultFooter}"/>
|
936 |
|
|
<include name="${responseForm}"/>
|
937 |
2343
|
sgarg
|
</fileset>
|
938 |
|
|
</copy>
|
939 |
|
|
<echo message="ldapweb install complete." />
|
940 |
|
|
</target>
|
941 |
|
|
|
942 |
|
|
|
943 |
2175
|
tao
|
<target name="install-skin" depends="init"
|
944 |
2052
|
sgarg
|
description="Install a Skin">
|
945 |
|
|
|
946 |
2175
|
tao
|
<input message="Please enter name of the skin"
|
947 |
2052
|
sgarg
|
addproperty="skin-name"/>
|
948 |
|
|
|
949 |
|
|
<mkdir dir="${installdir}/style/skins/${skin-name}" />
|
950 |
|
|
<copy todir="${installdir}/style/skins/${skin-name}" filtering="yes">
|
951 |
|
|
<fileset dir="lib/style/skins/${skin-name}">
|
952 |
3014
|
costa
|
<exclude name="**/*.png"/>
|
953 |
|
|
<exclude name="**/*.gif"/>
|
954 |
|
|
<exclude name="**/*.jpg"/>
|
955 |
2277
|
jones
|
<exclude name="**/CVS*"/>
|
956 |
|
|
<exclude name="**/.#*"/>
|
957 |
2052
|
sgarg
|
</fileset>
|
958 |
|
|
</copy>
|
959 |
2054
|
sgarg
|
<copy todir="${installdir}/style/skins/${skin-name}" filtering="no">
|
960 |
|
|
<fileset dir="lib/style/skins/${skin-name}">
|
961 |
3014
|
costa
|
<include name="**/*.png"/>
|
962 |
|
|
<include name="**/*.gif"/>
|
963 |
|
|
<include name="**/*.jpg"/>
|
964 |
2277
|
jones
|
<exclude name="**/CVS*"/>
|
965 |
|
|
<exclude name="**/.#*"/>
|
966 |
2054
|
sgarg
|
</fileset>
|
967 |
|
|
</copy>
|
968 |
2974
|
jones
|
<copy todir="${installdir}/style/common" filtering="yes">
|
969 |
|
|
<fileset dir="lib/style/common">
|
970 |
|
|
<include name="*.js"/>
|
971 |
|
|
<include name="*.jsp"/>
|
972 |
|
|
<include name="*.css"/>
|
973 |
|
|
<exclude name="*.png"/>
|
974 |
|
|
<exclude name="*.gif"/>
|
975 |
|
|
<exclude name="*.jpg"/>
|
976 |
|
|
<exclude name="**/CVS*"/>
|
977 |
|
|
<exclude name="**/.#*"/>
|
978 |
|
|
</fileset>
|
979 |
|
|
</copy>
|
980 |
2277
|
jones
|
<!--
|
981 |
2210
|
jones
|
<mkdir dir="${installdir}/style/skins/${skin-name}/images" />
|
982 |
|
|
<copy todir="${installdir}/style/skins/${skin-name}/images" filtering="no">
|
983 |
|
|
<fileset dir="lib/style/skins/${skin-name}/images">
|
984 |
|
|
<include name="*.png"/>
|
985 |
|
|
<include name="*.gif"/>
|
986 |
|
|
<include name="*.jpg"/>
|
987 |
|
|
</fileset>
|
988 |
|
|
</copy>
|
989 |
2277
|
jones
|
-->
|
990 |
2052
|
sgarg
|
|
991 |
|
|
<echo message="Install Skin completed." />
|
992 |
|
|
</target>
|
993 |
|
|
|
994 |
3034
|
perry
|
<target name="war" depends="warPrepare,warMSSQL,install-spatial"
|
995 |
1952
|
jones
|
description="Create a web archive (WAR) for servlet deployment">
|
996 |
2737
|
jones
|
<mkdir dir="${dist.dir}" />
|
997 |
|
|
<war destfile="${dist.dir}/${metacat.context}.war"
|
998 |
1952
|
jones
|
webxml="${build.war}/web.xml">
|
999 |
|
|
<fileset dir="${war.context}"/>
|
1000 |
|
|
<lib dir="${war.lib}"/>
|
1001 |
|
|
<webinf dir="${war.webinf}"/>
|
1002 |
|
|
</war>
|
1003 |
|
|
</target>
|
1004 |
2957
|
tao
|
|
1005 |
|
|
|
1006 |
1952
|
jones
|
|
1007 |
2059
|
costa
|
<target name="warPrepare" depends="jar,clientjar,harvesterjar"
|
1008 |
1952
|
jones
|
description="Prepare files for creating a web archive (WAR)">
|
1009 |
|
|
|
1010 |
|
|
<property name="war.lib" value="${build.war}/lib" />
|
1011 |
|
|
<property name="war.webinf" value="${build.war}/WEB-INF" />
|
1012 |
2737
|
jones
|
<property name="war.context" value="${build.war}/${metacat.context}" />
|
1013 |
1952
|
jones
|
<mkdir dir="${war.lib}" />
|
1014 |
|
|
<mkdir dir="${war.webinf}" />
|
1015 |
|
|
<mkdir dir="${war.context}" />
|
1016 |
2610
|
tao
|
|
1017 |
|
|
<copy file="${jdbc}" tofile="${war.lib}/jdbc.jar" />
|
1018 |
1952
|
jones
|
<copy file="${build.dir}/${name}.jar" todir="${war.lib}" />
|
1019 |
|
|
<copy file="${build.dir}/${name}-client.jar" todir="${war.lib}" />
|
1020 |
2059
|
costa
|
<copy file="${build.dir}/harvester.jar" todir="${war.lib}" />
|
1021 |
1952
|
jones
|
<copy todir="${war.lib}" filtering="no">
|
1022 |
1823
|
jones
|
<fileset dir="lib">
|
1023 |
2610
|
tao
|
<not>
|
1024 |
|
|
<filename name="${jdbc-jar-name}"/>
|
1025 |
|
|
</not>
|
1026 |
|
|
<include name="*.jar"/>
|
1027 |
1823
|
jones
|
</fileset>
|
1028 |
|
|
<fileset dir="lib/xalan">
|
1029 |
|
|
<include name="*.jar"/>
|
1030 |
|
|
</fileset>
|
1031 |
|
|
</copy>
|
1032 |
1729
|
tao
|
<copy file="lib/web.xml.${tomcatversion}"
|
1033 |
1952
|
jones
|
tofile="${build.war}/web.xml" />
|
1034 |
|
|
<copy file="lib/metacat.properties" todir="${war.webinf}"
|
1035 |
1951
|
jones
|
filtering="yes" />
|
1036 |
2900
|
sgarg
|
<copy todir="${war.webinf}" filtering="yes">
|
1037 |
|
|
<fileset dir="lib">
|
1038 |
|
|
<include name="skin.configs/**"/>
|
1039 |
|
|
</fileset>
|
1040 |
|
|
</copy>
|
1041 |
2583
|
sgarg
|
<copy file="lib/log4j.properties" todir="${war.webinf}"
|
1042 |
|
|
filtering="yes" />
|
1043 |
1952
|
jones
|
<copy todir="${war.context}" filtering="no">
|
1044 |
822
|
jones
|
<fileset dir="lib">
|
1045 |
|
|
<include name="**/*.jpg"/>
|
1046 |
|
|
<include name="**/*.png"/>
|
1047 |
|
|
<include name="**/*.gif"/>
|
1048 |
2844
|
costa
|
<include name="LiveMap_30/**"/>
|
1049 |
822
|
jones
|
</fileset>
|
1050 |
|
|
</copy>
|
1051 |
1952
|
jones
|
<copy todir="${war.context}" filtering="yes">
|
1052 |
822
|
jones
|
<fileset dir="lib">
|
1053 |
|
|
<exclude name="*.jar"/>
|
1054 |
|
|
<exclude name="*.properties"/>
|
1055 |
|
|
<exclude name="web.xml"/>
|
1056 |
1437
|
berkley
|
<exclude name="**/*.jpg"/>
|
1057 |
|
|
<exclude name="**/*.png"/>
|
1058 |
|
|
<exclude name="**/*.gif"/>
|
1059 |
2778
|
jones
|
<exclude name="lsid_lib/**"/>
|
1060 |
|
|
<exclude name="lsid_conf/**"/>
|
1061 |
2844
|
costa
|
<exclude name="LiveMap_30/**"/>
|
1062 |
2900
|
sgarg
|
<exclude name="skin.configs/**"/>
|
1063 |
3034
|
perry
|
<exclude name="spatial/geoserver/**"/>
|
1064 |
|
|
<exclude name="spatial/WEB-INF/**"/>
|
1065 |
822
|
jones
|
</fileset>
|
1066 |
|
|
</copy>
|
1067 |
1311
|
berkley
|
</target>
|
1068 |
1929
|
brooke
|
|
1069 |
1952
|
jones
|
<target name="warMSSQL" if="MSSQL" depends="warPrepare">
|
1070 |
|
|
<copy file="${jdbc-add1}" tofile="${war.lib}/msutil.jar" />
|
1071 |
|
|
<copy file="${jdbc-add2}" tofile="${war.lib}/mssqlserver.jar" />
|
1072 |
1929
|
brooke
|
</target>
|
1073 |
|
|
|
1074 |
2175
|
tao
|
<target name="getConversionXSL" depends="prepare"
|
1075 |
1954
|
jones
|
unless="styles.not.needed"
|
1076 |
1939
|
brooke
|
description="Gets the conversion stylesheets for eml2 beta 6 to eml 2.0.0">
|
1077 |
2497
|
sgarg
|
|
1078 |
1929
|
brooke
|
<echo>Enter CVS password: </echo>
|
1079 |
2497
|
sgarg
|
<cvs cvsRoot="${cvsroot}"
|
1080 |
|
|
package="${eml-module}"
|
1081 |
|
|
tag="${eml2_0_1-tag}"
|
1082 |
|
|
dest="${build.tmp}/eml_${eml2_0_1-tag}" />
|
1083 |
2343
|
sgarg
|
|
1084 |
|
|
<mkdir dir="lib/style/common/emlb6toeml2" />
|
1085 |
|
|
<copy todir="lib/style/common/emlb6toeml2" filtering="yes">
|
1086 |
2497
|
sgarg
|
<fileset dir="${build.tmp}/eml_${eml2_0_1-tag}/${eml-module}/lib/beta6toeml2/xsl">
|
1087 |
2343
|
sgarg
|
<include name="*.xsl"/>
|
1088 |
|
|
<include name="*.xml"/>
|
1089 |
|
|
</fileset>
|
1090 |
|
|
</copy>
|
1091 |
1929
|
brooke
|
</target>
|
1092 |
|
|
|
1093 |
2135
|
costa
|
<target name="testprep" depends="jar,clientjar,harvesterjar">
|
1094 |
1783
|
jones
|
<mkdir dir="${build.tests}"/>
|
1095 |
|
|
<copy todir="${build.tests}" filtering="yes">
|
1096 |
|
|
<fileset dir="${testdir}">
|
1097 |
|
|
<include name="edu/**"/>
|
1098 |
|
|
</fileset>
|
1099 |
|
|
</copy>
|
1100 |
971
|
tao
|
<!-- copy and compile the tests into a jar file -->
|
1101 |
1783
|
jones
|
<javac srcdir="${build.tests}"
|
1102 |
|
|
destdir="${build.tests}"
|
1103 |
1612
|
tao
|
debug="on"
|
1104 |
2982
|
jones
|
includes="**/*.java">
|
1105 |
2599
|
jones
|
<classpath>
|
1106 |
|
|
<path refid="compile.classpath"/>
|
1107 |
|
|
<fileset dir="${build.dir}">
|
1108 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1109 |
|
|
<include name="${name}-client.jar"/>
|
1110 |
|
|
<include name="harvester.jar"/>
|
1111 |
2599
|
jones
|
</fileset>
|
1112 |
|
|
</classpath>
|
1113 |
|
|
</javac>
|
1114 |
204
|
jones
|
|
1115 |
1311
|
berkley
|
<jar jarfile="${build.dir}/${name}-junittests.jar"
|
1116 |
1783
|
jones
|
basedir="${build.tests}"
|
1117 |
1311
|
berkley
|
includes="**/*.class" />
|
1118 |
1822
|
jones
|
</target>
|
1119 |
971
|
tao
|
|
1120 |
1939
|
brooke
|
<target name="test" depends="testprep"
|
1121 |
|
|
description="Uses the ant junit task to run all JUnit tests">
|
1122 |
1822
|
jones
|
|
1123 |
971
|
tao
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
1124 |
1783
|
jones
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
1125 |
971
|
tao
|
haltonerror="no">
|
1126 |
1783
|
jones
|
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>
|
1127 |
971
|
tao
|
<classpath>
|
1128 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
1129 |
|
|
<fileset dir="${build.dir}">
|
1130 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1131 |
|
|
<include name="${name}-client.jar"/>
|
1132 |
|
|
<include name="harvester.jar"/>
|
1133 |
|
|
<include name="${name}-junittests.jar"/>
|
1134 |
2599
|
jones
|
</fileset>
|
1135 |
971
|
tao
|
</classpath>
|
1136 |
|
|
|
1137 |
|
|
<formatter type="plain" />
|
1138 |
|
|
|
1139 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1140 |
1783
|
jones
|
<fileset dir="${build.tests}">
|
1141 |
1116
|
tao
|
<include name="**/*.class" />
|
1142 |
971
|
tao
|
</fileset>
|
1143 |
|
|
</batchtest>
|
1144 |
|
|
</junit>
|
1145 |
|
|
</target>
|
1146 |
1103
|
tao
|
|
1147 |
1939
|
brooke
|
<target name="runonetest" depends="testprep"
|
1148 |
|
|
description="Uses the ant junit task to run a single JUnit test, defined by the ${testtorun} property">
|
1149 |
1500
|
tao
|
|
1150 |
1939
|
brooke
|
<echo>testtorun: ${testtorun}</echo>
|
1151 |
|
|
|
1152 |
1500
|
tao
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
1153 |
1783
|
jones
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
1154 |
1500
|
tao
|
haltonerror="no">
|
1155 |
2044
|
tao
|
<!--<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient"/>-->
|
1156 |
1500
|
tao
|
<classpath>
|
1157 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
1158 |
|
|
<fileset dir="${build.dir}">
|
1159 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1160 |
|
|
<include name="${name}-client.jar"/>
|
1161 |
|
|
<include name="harvester.jar"/>
|
1162 |
|
|
<include name="${name}-junittests.jar"/>
|
1163 |
2599
|
jones
|
</fileset>
|
1164 |
1500
|
tao
|
</classpath>
|
1165 |
|
|
|
1166 |
|
|
<formatter type="plain" />
|
1167 |
|
|
|
1168 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1169 |
1783
|
jones
|
<fileset dir="${build.tests}">
|
1170 |
1500
|
tao
|
<include name="**/${testtorun}.class" />
|
1171 |
|
|
</fileset>
|
1172 |
|
|
</batchtest>
|
1173 |
|
|
</junit>
|
1174 |
|
|
</target>
|
1175 |
|
|
|
1176 |
2175
|
tao
|
<target name="testharvester"
|
1177 |
2135
|
costa
|
depends="testprep"
|
1178 |
|
|
description="Uses the ant junit task to test only the Harvester code">
|
1179 |
2175
|
tao
|
<junit printsummary="yes"
|
1180 |
|
|
haltonfailure="off"
|
1181 |
2135
|
costa
|
fork="yes"
|
1182 |
|
|
haltonerror="off">
|
1183 |
2599
|
jones
|
<classpath>
|
1184 |
|
|
<path refid="compile.classpath"/>
|
1185 |
|
|
<fileset dir="${build.dir}">
|
1186 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1187 |
|
|
<include name="${name}-client.jar"/>
|
1188 |
|
|
<include name="harvester.jar"/>
|
1189 |
|
|
<include name="${name}-junittests.jar"/>
|
1190 |
2599
|
jones
|
</fileset>
|
1191 |
|
|
</classpath>
|
1192 |
2135
|
costa
|
<formatter type="plain" />
|
1193 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1194 |
|
|
<fileset dir="${build.tests}">
|
1195 |
|
|
<include name="**/harvesterClient/*.class" />
|
1196 |
|
|
</fileset>
|
1197 |
|
|
</batchtest>
|
1198 |
|
|
</junit>
|
1199 |
|
|
</target>
|
1200 |
|
|
|
1201 |
1939
|
brooke
|
<target name="gethttpclient" depends="prepare"
|
1202 |
|
|
description="checks out and compiles morpho httpclient code">
|
1203 |
1311
|
berkley
|
<!--mkdir dir="${morphosourcedir}" -->
|
1204 |
1487
|
tao
|
<cvs cvsRoot="${cvsroot}"
|
1205 |
1103
|
tao
|
package="morpho"
|
1206 |
|
|
dest="." />
|
1207 |
1107
|
tao
|
<ant dir="${morphosourcedir}" inheritAll="false" target="jar" />
|
1208 |
1103
|
tao
|
</target>
|
1209 |
|
|
|
1210 |
|
|
<!-- run this target, we need to check out a another morpho souce dir was checked out. -->
|
1211 |
1939
|
brooke
|
<target name="nettest" depends="install"
|
1212 |
|
|
description="compiles and runs the metacatnettest code">
|
1213 |
2175
|
tao
|
|
1214 |
1103
|
tao
|
<echo>***********************************
|
1215 |
1311
|
berkley
|
Please run ant gethttpclient first!
|
1216 |
|
|
***********************************
|
1217 |
1103
|
tao
|
</echo>
|
1218 |
|
|
<!-- copy and compile the tests into a jar file -->
|
1219 |
1116
|
tao
|
<mkdir dir="${build.metacatnettest}"/>
|
1220 |
1103
|
tao
|
<javac srcdir="${junitnettestsdir}"
|
1221 |
1116
|
tao
|
destdir="${build.metacatnettest}"
|
1222 |
2599
|
jones
|
includes="**/*.java">
|
1223 |
|
|
<classpath>
|
1224 |
|
|
<path refid="compile.classpath"/>
|
1225 |
|
|
<fileset dir="${build.dir}">
|
1226 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1227 |
2599
|
jones
|
</fileset>
|
1228 |
|
|
</classpath>
|
1229 |
|
|
</javac>
|
1230 |
1103
|
tao
|
|
1231 |
|
|
<jar jarfile="${build.dir}/${name}-junitnettests.jar"
|
1232 |
1116
|
tao
|
basedir="${build.metacatnettest}"
|
1233 |
1103
|
tao
|
includes="**/*.class" />
|
1234 |
|
|
|
1235 |
|
|
<!-- use the ant "junit" task to run JUnit tests. -->
|
1236 |
1107
|
tao
|
<junit printsummary="yes" haltonfailure="no" fork="yes"
|
1237 |
1103
|
tao
|
haltonerror="no">
|
1238 |
1107
|
tao
|
<jvmarg value="-Djava.protocol.handler.pkgs=HTTPClient" />
|
1239 |
1103
|
tao
|
<classpath>
|
1240 |
2599
|
jones
|
<path refid="compile.classpath"/>
|
1241 |
|
|
<fileset dir="${build.dir}">
|
1242 |
2982
|
jones
|
<include name="${name}.jar"/>
|
1243 |
|
|
<include name="${name}-junitnettests.jar"/>
|
1244 |
2599
|
jones
|
</fileset>
|
1245 |
1103
|
tao
|
</classpath>
|
1246 |
|
|
|
1247 |
|
|
<formatter type="plain" />
|
1248 |
|
|
|
1249 |
|
|
<batchtest fork="yes" todir="${build.dir}">
|
1250 |
1116
|
tao
|
<fileset dir="${build.metacatnettest}">
|
1251 |
|
|
<include name="**/*.class" />
|
1252 |
1103
|
tao
|
</fileset>
|
1253 |
|
|
</batchtest>
|
1254 |
|
|
</junit>
|
1255 |
1311
|
berkley
|
</target>
|
1256 |
1103
|
tao
|
|
1257 |
1939
|
brooke
|
<target name="cleanweb" depends="clean"
|
1258 |
|
|
description="deletes tomcat web context dir and all its contents">
|
1259 |
1522
|
berkley
|
<delete dir="${installdir}" />
|
1260 |
|
|
</target>
|
1261 |
|
|
|
1262 |
|
|
|
1263 |
1939
|
brooke
|
<target name="clean" depends="init"
|
1264 |
2320
|
jones
|
description="deletes build dir and files that can be regenerated form the release">
|
1265 |
822
|
jones
|
<delete dir="${build.dir}" />
|
1266 |
2737
|
jones
|
<delete dir="${dist.dir}" />
|
1267 |
2320
|
jones
|
</target>
|
1268 |
|
|
|
1269 |
|
|
<target name="fullclean" depends="clean"
|
1270 |
|
|
description="deletes even jars that depend on external sources such as stylesheets and jars">
|
1271 |
|
|
<delete file="lib/httpclient.jar" />
|
1272 |
|
|
<delete file="lib/utilities.jar" />
|
1273 |
1939
|
brooke
|
<delete includeEmptyDirs="true" failonerror="false">
|
1274 |
|
|
<fileset dir="${style-common-cvsrelpath}">
|
1275 |
|
|
<include name="${eml-css}" />
|
1276 |
|
|
<include name="eml-*/*.xsl" />
|
1277 |
|
|
<include name="eml-*" />
|
1278 |
|
|
</fileset>
|
1279 |
2320
|
jones
|
</delete>
|
1280 |
113
|
jones
|
</target>
|
1281 |
|
|
|
1282 |
1939
|
brooke
|
<target name="jdoc" depends="prepare"
|
1283 |
|
|
description="generates javadoc documentation">
|
1284 |
822
|
jones
|
<javadoc packagenames="edu.ucsb.nceas.*"
|
1285 |
516
|
jones
|
sourcepath="${build.src}"
|
1286 |
|
|
destdir="${build.javadocs}"
|
1287 |
113
|
jones
|
author="true"
|
1288 |
|
|
version="true"
|
1289 |
|
|
use="true"
|
1290 |
348
|
jones
|
windowtitle="${Name} API"
|
1291 |
|
|
doctitle="<h1>${Name}</h1>"
|
1292 |
2599
|
jones
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>">
|
1293 |
|
|
<classpath>
|
1294 |
|
|
<path refid="compile.classpath"/>
|
1295 |
|
|
</classpath>
|
1296 |
|
|
</javadoc>
|
1297 |
113
|
jones
|
</target>
|
1298 |
|
|
|
1299 |
2461
|
sgarg
|
<target name="dist"
|
1300 |
2965
|
tao
|
depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
|
1301 |
1939
|
brooke
|
description="prepares a full release distribution">
|
1302 |
806
|
jones
|
<mkdir dir="${dist.dir}"/>
|
1303 |
|
|
<delete dir="${ver.dir}" />
|
1304 |
|
|
<mkdir dir="${ver.dir}"/>
|
1305 |
|
|
<copy todir="${ver.dir}">
|
1306 |
1311
|
berkley
|
<fileset dir="."
|
1307 |
2401
|
costa
|
excludes="**/CVS* **/.#* src/** test/** build/** docs/** ${dist.dir}/** ${dist.dir.hle}/**"/>
|
1308 |
806
|
jones
|
</copy>
|
1309 |
|
|
<copy todir="${ver.dir}" file="build.xml"/>
|
1310 |
2317
|
jones
|
<copy todir="${ver.dir}" file="build.properties"/>
|
1311 |
882
|
jones
|
|
1312 |
|
|
<copy todir="${ver.dir}/docs" filtering="yes">
|
1313 |
|
|
<fileset dir="docs" excludes="**/*gif **/*jpg **/*png" />
|
1314 |
|
|
</copy>
|
1315 |
|
|
<copy todir="${ver.dir}/docs" filtering="no">
|
1316 |
|
|
<fileset dir="docs" includes="**/*gif **/*jpg **/*png" />
|
1317 |
|
|
</copy>
|
1318 |
806
|
jones
|
<copy todir="${ver.dir}/docs/dev">
|
1319 |
|
|
<fileset dir="${build.dir}/docs"/>
|
1320 |
|
|
</copy>
|
1321 |
917
|
berkley
|
<copy todir="${ver.dir}/src">
|
1322 |
|
|
<fileset dir="${build.dir}/src"/>
|
1323 |
|
|
</copy>
|
1324 |
2391
|
tao
|
<!-- copy loaddtdschemal.sql form src dir(which has the server token to ver.dir/src-->
|
1325 |
|
|
<copy todir="${ver.dir}/src" file="${srcdir}/loaddtdschema.sql" overwrite="yes" filtering="no"/>
|
1326 |
2395
|
tao
|
<copy todir="${ver.dir}/src" file="${srcdir}/upgrade-db-to-1.5.sql" overwrite="yes" filtering="no"/>
|
1327 |
2323
|
jones
|
<!--
|
1328 |
992
|
berkley
|
<delete dir="./${ver.dir}/${build.dir}"/>
|
1329 |
|
|
<delete dir="./${ver.dir}/dist"/>
|
1330 |
2323
|
jones
|
-->
|
1331 |
882
|
jones
|
<delete file="./${name}-${release}.zip"/>
|
1332 |
1312
|
tao
|
<zip zipfile="./${name}-${release}.zip" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
|
1333 |
882
|
jones
|
<delete file="./${name}-${release}.tar.gz" />
|
1334 |
1312
|
tao
|
<tar tarfile="./${name}-${release}.tar" basedir="${dist.dir}" excludes="${name}-${release}/src/**, ${name}-${release}/build/src/**"/>
|
1335 |
1311
|
berkley
|
<gzip zipfile="./${name}-${release}.tar.gz"
|
1336 |
882
|
jones
|
src="./${name}-${release}.tar"/>
|
1337 |
|
|
<delete file="./${name}-${release}.tar" />
|
1338 |
1311
|
berkley
|
</target>
|
1339 |
806
|
jones
|
|
1340 |
1939
|
brooke
|
<target name="distsrc" depends="dist"
|
1341 |
|
|
description="prepares a source distribution">
|
1342 |
806
|
jones
|
<mkdir dir="${ver.src}"/>
|
1343 |
|
|
<copy todir="${ver.src}">
|
1344 |
|
|
<fileset dir="./src"/>
|
1345 |
|
|
</copy>
|
1346 |
2461
|
sgarg
|
<mkdir dir="${util.dir}"/>
|
1347 |
|
|
<copy todir="${util.dir}">
|
1348 |
|
|
<fileset dir="${build.tmp}/utilities" excludes="**/CVS*" />
|
1349 |
|
|
</copy>
|
1350 |
2965
|
tao
|
|
1351 |
|
|
<mkdir dir="${ecogrid-dist-dir}"/>
|
1352 |
|
|
<copy todir="${ecogrid-dist-dir}">
|
1353 |
|
|
<fileset dir="${ecogrid-dir}" excludes="**/CVS*" />
|
1354 |
|
|
</copy>
|
1355 |
806
|
jones
|
|
1356 |
882
|
jones
|
<delete file="./${name}-src-${release}.zip"/>
|
1357 |
|
|
<zip zipfile="./${name}-src-${release}.zip" basedir="${dist.dir}"/>
|
1358 |
|
|
<delete file="./${name}-src-${release}.tar.gz" />
|
1359 |
|
|
<tar tarfile="./${name}-src-${release}.tar" basedir="${dist.dir}"/>
|
1360 |
1311
|
berkley
|
<gzip zipfile="./${name}-src-${release}.tar.gz"
|
1361 |
882
|
jones
|
src="./${name}-src-${release}.tar"/>
|
1362 |
|
|
<delete file="./${name}-src-${release}.tar" />
|
1363 |
807
|
jones
|
<delete dir="${dist.dir}"/>
|
1364 |
1311
|
berkley
|
</target>
|
1365 |
806
|
jones
|
|
1366 |
1702
|
tao
|
<target name="stylesheettest">
|
1367 |
1939
|
brooke
|
<xslt in="${input}" out="eml.html" style="${style-common-cvsrelpath}/eml-2.0.0/eml-2.0.0.xsl">
|
1368 |
1702
|
tao
|
<param name="displaymodule" expression="${displaymodule}"/>
|
1369 |
|
|
<param name="docid" expression="${input}"/>
|
1370 |
|
|
<param name="entitytype" expression="${entitytype}"/>
|
1371 |
|
|
<param name="entityindex" expression="${entityindex}"/>
|
1372 |
|
|
<outputproperty name="method" value="html"/>
|
1373 |
|
|
<outputproperty name="standalone" value="yes"/>
|
1374 |
|
|
<outputproperty name="encoding" value="iso8859_1"/>
|
1375 |
|
|
<outputproperty name="indent" value="yes"/>
|
1376 |
|
|
</xslt>
|
1377 |
|
|
</target>
|
1378 |
2175
|
tao
|
|
1379 |
1819
|
tao
|
<target name="gridinit" depends="init">
|
1380 |
|
|
<property name="java2wsdl.tool" value="org.apache.axis.wsdl.Java2WSDL" />
|
1381 |
|
|
<property name="wsdldecorator.tool" value="org.globus.ogsa.tools.wsdl.DecorateWSDL" />
|
1382 |
|
|
<property name="wsdl.tool" value="org.globus.ogsa.tools.wsdl.GSDL2Java"/>
|
1383 |
|
|
<property environment="env"/>
|
1384 |
|
|
<property name="binding.file" value="${env.GLOBUS_LOCATION}/schema/ogsi/ogsi_bindings.wsdl"/>
|
1385 |
1820
|
tao
|
<path id="webservicepath">
|
1386 |
|
|
<pathelement location="."/>
|
1387 |
|
|
<pathelement location="${env.JAVA_HOME}/../lib/tools.jar"/>
|
1388 |
|
|
<pathelement location="${build.dest}"/>
|
1389 |
|
|
<fileset dir="${env.GLOBUS_LOCATION}/lib">
|
1390 |
|
|
<include name="*.jar"/>
|
1391 |
|
|
</fileset>
|
1392 |
|
|
</path>
|
1393 |
1819
|
tao
|
</target>
|
1394 |
|
|
|
1395 |
1821
|
tao
|
<target name="gridprepare" depends="gridinit, prepare">
|
1396 |
2175
|
tao
|
</target>
|
1397 |
|
|
|
1398 |
1821
|
tao
|
<target name="compileinterface" depends="clean, gridprepare">
|
1399 |
1817
|
tao
|
<javac srcdir="${build.src}" destdir="${build.dest}" includes="**/${interface.name}.java" />
|
1400 |
1811
|
tao
|
</target>
|
1401 |
2175
|
tao
|
|
1402 |
1811
|
tao
|
<target name="generateWSDL" depends="compileinterface">
|
1403 |
|
|
<echo message="Generating wsdl from ${interface.name} interface"/>
|
1404 |
|
|
<java classname="${java2wsdl.tool}"
|
1405 |
1814
|
tao
|
dir="${build.src}" fork="yes"
|
1406 |
1811
|
tao
|
classpathref="webservicepath" failonerror="true" >
|
1407 |
|
|
<arg value="-P"/>
|
1408 |
|
|
<arg value="${interface.name}PortType"/>
|
1409 |
|
|
<arg value="-S"/>
|
1410 |
|
|
<arg value="${interface.name}Service"/>
|
1411 |
|
|
<arg value="-y"/>
|
1412 |
|
|
<arg value="WRAPPED"/>
|
1413 |
|
|
<arg value="-u"/>
|
1414 |
|
|
<arg value="LITERAL"/>
|
1415 |
|
|
<arg value="-l"/>
|
1416 |
|
|
<arg value="http://localhost/ogsa/services/${interface.name}Service"/>
|
1417 |
|
|
<arg value="-n"/>
|
1418 |
|
|
<arg value="http://${services.namespace}/${interface.name}"/>
|
1419 |
|
|
<arg value="${interface.package}.${interface.name}"/>
|
1420 |
|
|
</java>
|
1421 |
|
|
</target>
|
1422 |
2175
|
tao
|
|
1423 |
1811
|
tao
|
<target name="decorateWSDL" depends="generateWSDL">
|
1424 |
|
|
<property name="wsdl.file" value="${interface.name}Service.wsdl"/>
|
1425 |
1814
|
tao
|
<java classname="${wsdldecorator.tool}" dir="${build.src}"
|
1426 |
1811
|
tao
|
fork="yes"
|
1427 |
|
|
classpathref="webservicepath" failonerror="true" >
|
1428 |
|
|
<arg value="${binding.file}"/>
|
1429 |
|
|
<arg value="${wsdl.file}"/>
|
1430 |
|
|
</java>
|
1431 |
|
|
</target>
|
1432 |
2175
|
tao
|
|
1433 |
1811
|
tao
|
<target name="generatestubs" depends="decorateWSDL">
|
1434 |
|
|
<echo message=" Generating stubs " />
|
1435 |
1814
|
tao
|
<echo message="wsdl file is ${wsdl.file}"/>
|
1436 |
|
|
<echo message="build.src is ${build.src}"/>
|
1437 |
1811
|
tao
|
<java classname="${wsdl.tool}" dir="${build.src}" fork="yes"
|
1438 |
|
|
classpathref="webservicepath" failonerror="true" >
|
1439 |
1814
|
tao
|
<arg value="${wsdl.file}"/>
|
1440 |
1811
|
tao
|
</java>
|
1441 |
|
|
</target>
|
1442 |
2175
|
tao
|
|
1443 |
1811
|
tao
|
<target name="compileStubsAndImpl" depends="generatestubs, utilities">
|
1444 |
|
|
<echo message=" Compiling stubs " />
|
1445 |
|
|
<javac srcdir="${build.src}" destdir="${build.dest}" classpathref="webservicepath" includes="**/${interface.name}/*.java" />
|
1446 |
|
|
<echo message=" Compiling impl " />
|
1447 |
|
|
<javac srcdir="${build.src}" destdir="${build.dest}" classpathref="webservicepath" classpath="./lib/utilities.jar" includes="**/impl/*.java" />
|
1448 |
|
|
</target>
|
1449 |
2175
|
tao
|
|
1450 |
1811
|
tao
|
<target name="jarStubsAndImpl" depends="compileStubsAndImpl">
|
1451 |
|
|
<echo message=" jar stubs classes " />
|
1452 |
|
|
<jar destfile="${build.dir}/${interface.name}-stubs.jar" basedir="${build.dest}" includes="**/${interface.name}/*.class" />
|
1453 |
|
|
<echo message=" jar impl classes " />
|
1454 |
|
|
<jar destfile="${build.dir}/${interface.name}.jar" basedir="${build.dest}" includes="**/impl/*.class" />
|
1455 |
|
|
</target>
|
1456 |
2175
|
tao
|
|
1457 |
1811
|
tao
|
<target name="gar" depends="jarStubsAndImpl">
|
1458 |
|
|
<echo message=" jar the gar file"/>
|
1459 |
|
|
<mkdir dir="${build.dir}/gar"/>
|
1460 |
|
|
<mkdir dir="${build.dir}/gar/schema/edu"/>
|
1461 |
|
|
<copy file="${build.dir}/${interface.name}.jar" todir="${build.dir}/gar" />
|
1462 |
|
|
<copy file="${build.dir}/${interface.name}-stubs.jar" todir="${build.dir}/gar" />
|
1463 |
1814
|
tao
|
<copy file="lib/utilities.jar" todir="${build.dir}/gar" />
|
1464 |
|
|
<copy file="lib/server-deploy.wsdd" todir="${build.dir}/gar" />
|
1465 |
|
|
<copy file="${build.src}/${interface.name}Service.wsdl" todir="${build.dir}/gar/schema/edu" />
|
1466 |
|
|
<jar destfile="lib/${interface.name}.gar" basedir="${build.dir}/gar"/>
|
1467 |
1811
|
tao
|
</target>
|
1468 |
2175
|
tao
|
|
1469 |
1814
|
tao
|
<target name="compilewebclient" depends="prepare">
|
1470 |
|
|
<javac srcdir="${build.src}" destdir="${build.dest}" includes="**/application/*.java" classpathref="webservicepath" />
|
1471 |
|
|
</target>
|
1472 |
2175
|
tao
|
|
1473 |
1814
|
tao
|
<target name="runwebclient" depends="compilewebclient">
|
1474 |
2175
|
tao
|
<java classname="edu.ucsb.nceas.metacat.stringclient.application.MetacatStringServiceApplication"
|
1475 |
1814
|
tao
|
dir="${build.dest}" fork="yes"
|
1476 |
|
|
classpathref="webservicepath" classpath="./lib/utilities.jar" failonerror="true">
|
1477 |
|
|
<arg value="${serviceUrl}"/>
|
1478 |
|
|
<arg value="${docid}"/>
|
1479 |
|
|
</java>
|
1480 |
|
|
</target>
|
1481 |
2598
|
harris
|
|
1482 |
2639
|
harris
|
<target name="spatial_option" depends="prepare" description=" -- compiles code for the spatial option">
|
1483 |
2598
|
harris
|
|
1484 |
|
|
<echo message="Compiling the metatcat shapefile creator"/>
|
1485 |
|
|
<echo message="using the shapelib at: ${shapelib.dir}"/>
|
1486 |
|
|
<exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
|
1487 |
|
|
<arg line="./src/spatial/cpp/metacat_shapefile.cpp -I ${shapelib.dir} -c -o build/metacat_shapefile.o" />
|
1488 |
|
|
</exec>
|
1489 |
|
|
|
1490 |
|
|
<exec dir="." executable="g++" os="Linux, Unix" failonerror="true">
|
1491 |
2639
|
harris
|
<arg line="build/metacat_shapefile.o ${shapelib.dir}/.libs/libshp.a -o bin/metacat_shapefile" />
|
1492 |
2598
|
harris
|
</exec>
|
1493 |
|
|
</target>
|
1494 |
|
|
|
1495 |
2737
|
jones
|
<!-- LSID Authority support -->
|
1496 |
|
|
<patternset id="lsid.jars">
|
1497 |
|
|
<include name="axis.jar" />
|
1498 |
2772
|
jones
|
<include name="commons-discovery-0.2.jar" />
|
1499 |
2737
|
jones
|
<include name="jaxrpc.jar" />
|
1500 |
|
|
<include name="lsid-client-1.1.1.jar" />
|
1501 |
|
|
<include name="lsid-server-1.1.1.jar" />
|
1502 |
|
|
<include name="saaj.jar" />
|
1503 |
2772
|
jones
|
<include name="wsdl4j-1.5.1.jar" />
|
1504 |
2737
|
jones
|
<include name="activation.jar" />
|
1505 |
|
|
<include name="castor-0.9.5.jar" />
|
1506 |
|
|
<include name="dnsjava-1.3.2.jar" />
|
1507 |
|
|
<include name="mail.jar" />
|
1508 |
2778
|
jones
|
<include name="commons-logging-1.0.4.jar" />
|
1509 |
|
|
<!-- These jars may be needed but seem to not actually be,
|
1510 |
|
|
so leaving them out for now
|
1511 |
|
|
<include name="axis-ant.jar" />
|
1512 |
2737
|
jones
|
-->
|
1513 |
|
|
<!--<include name="GenCastor.class" />-->
|
1514 |
|
|
</patternset>
|
1515 |
|
|
<patternset id="lib.jars">
|
1516 |
|
|
<include name="httpclient.jar" />
|
1517 |
|
|
<include name="log4j-1.2.12.jar" />
|
1518 |
|
|
<include name="utilities.jar" />
|
1519 |
|
|
<include name="xercesImpl.jar" />
|
1520 |
|
|
<include name="xalan.jar" />
|
1521 |
|
|
<include name="xml-apis.jar" />
|
1522 |
|
|
</patternset>
|
1523 |
|
|
|
1524 |
|
|
<path id="lsid.classpath">
|
1525 |
|
|
<fileset dir="${lsid.lib.dir}">
|
1526 |
|
|
<patternset refid="lsid.jars"/>
|
1527 |
|
|
</fileset>
|
1528 |
|
|
<fileset dir="${lib.dir}">
|
1529 |
|
|
<patternset refid="lsid.jars"/>
|
1530 |
|
|
</fileset>
|
1531 |
|
|
<fileset dir="${lib.dir}/xalan">
|
1532 |
|
|
<include name="xalan.jar" />
|
1533 |
|
|
<include name="xml-apis.jar" />
|
1534 |
|
|
</fileset>
|
1535 |
|
|
<fileset dir="${build.dir}">
|
1536 |
|
|
<include name="metacat-client.jar" />
|
1537 |
|
|
</fileset>
|
1538 |
|
|
</path>
|
1539 |
|
|
|
1540 |
|
|
<filterset id="configFilters">
|
1541 |
|
|
<filter token="LSID_AUTHORITY_HOSTNAME"
|
1542 |
|
|
value="${config.hostname}" />
|
1543 |
|
|
<filter token="LSID_AUTHORITY_PORT"
|
1544 |
|
|
value="${config.port}" />
|
1545 |
|
|
<filter token="METADATA_LABELS"
|
1546 |
|
|
value="${config.metadataLabelLsid}" />
|
1547 |
|
|
<filter token="METACAT_SERVER"
|
1548 |
|
|
value="${config.metacatserver}" />
|
1549 |
|
|
<filter token="LSID_AUTHORITY_STRING"
|
1550 |
|
|
value="${config.lsidauthority}" />
|
1551 |
|
|
</filterset>
|
1552 |
|
|
|
1553 |
|
|
<target name="prepare-lsid"
|
1554 |
|
|
depends="prepare,utilities,clientjar"
|
1555 |
|
|
description="Configure files prior to compilation">
|
1556 |
|
|
<mkdir dir="${lsid.build.dir}" />
|
1557 |
|
|
<!-- Copy the properties file into the build -->
|
1558 |
|
|
<copy file="${conf.dir}/metacat-lsid.properties"
|
1559 |
|
|
tofile="${lsid.build.dir}/WEB-INF/classes/metacat-lsid.properties"
|
1560 |
|
|
overwrite="true">
|
1561 |
|
|
<filterset refid="configFilters" />
|
1562 |
|
|
</copy>
|
1563 |
2817
|
jones
|
<copy file="${conf.dir}/log4j.properties"
|
1564 |
|
|
tofile="${lsid.build.dir}/WEB-INF/classes/log4j.properties"
|
1565 |
|
|
overwrite="true">
|
1566 |
|
|
<filterset refid="configFilters" />
|
1567 |
|
|
</copy>
|
1568 |
2737
|
jones
|
<!-- Copy config files into the build -->
|
1569 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF">
|
1570 |
|
|
<fileset dir="${webinf.dir}"
|
1571 |
|
|
includes="**/*.wsdd" />
|
1572 |
|
|
</copy>
|
1573 |
|
|
<!-- Copy the metadata configuration files into the build -->
|
1574 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}" />
|
1575 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF/classes/${lsid.classes.dir}">
|
1576 |
|
|
<fileset dir="${conf.dir}"
|
1577 |
|
|
includes="**/*.xml" />
|
1578 |
|
|
<fileset dir="${conf.dir}"
|
1579 |
|
|
includes="**/*.xslt" />
|
1580 |
|
|
<filterset refid="configFilters" />
|
1581 |
|
|
</copy>
|
1582 |
|
|
<!-- Copy services files into the build -->
|
1583 |
|
|
<mkdir dir="${lsid.build.dir}/services" />
|
1584 |
|
|
<copy todir="${lsid.build.dir}/services">
|
1585 |
|
|
<fileset dir="${services.dir}" />
|
1586 |
|
|
<filterset refid="configFilters" />
|
1587 |
|
|
</copy>
|
1588 |
2778
|
jones
|
<!-- Copy axis files into the build -->
|
1589 |
|
|
<mkdir dir="${lsid.build.dir}" />
|
1590 |
|
|
<copy todir="${lsid.build.dir}">
|
1591 |
|
|
<fileset dir="${conf.dir}/axis"
|
1592 |
|
|
excludes="*.properties"/>
|
1593 |
|
|
</copy>
|
1594 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
|
1595 |
|
|
<copy todir="${lsid.build.dir}/WEB-INF/classes">
|
1596 |
|
|
<fileset dir="${conf.dir}/axis"
|
1597 |
|
|
includes="*.properties"/>
|
1598 |
|
|
</copy>
|
1599 |
2737
|
jones
|
</target>
|
1600 |
|
|
|
1601 |
|
|
<target name="compile-lsid"
|
1602 |
|
|
depends="prepare-lsid"
|
1603 |
|
|
description="Compile Java sources">
|
1604 |
|
|
<mkdir dir="${lsid.build.dir}/WEB-INF/classes" />
|
1605 |
|
|
<javac srcdir="src/edu/ucsb/nceas/metacat/lsid"
|
1606 |
|
|
destdir="${lsid.build.dir}/WEB-INF/classes"
|
1607 |
|
|
debug="${compile.debug}"
|
1608 |
|
|
deprecation="${compile.deprecation}"
|
1609 |
|
|
optimize="${compile.optimize}">
|
1610 |
|
|
<classpath refid="lsid.classpath" />
|
1611 |
|
|
</javac>
|
1612 |
|
|
</target>
|
1613 |
|
|
|
1614 |
|
|
<target name="war-lsid"
|
1615 |
|
|
depends="compile-lsid"
|
1616 |
|
|
description="Create a war file for the application">
|
1617 |
|
|
<mkdir dir="${dist.dir}" />
|
1618 |
|
|
<war destfile="${dist.dir}/${authority.context}.war"
|
1619 |
|
|
webxml="${webinf.dir}/web.xml">
|
1620 |
|
|
<fileset dir="${lsid.build.dir}" />
|
1621 |
|
|
<lib dir="${lsid.lib.dir}">
|
1622 |
|
|
<patternset refid="lsid.jars"/>
|
1623 |
|
|
</lib>
|
1624 |
|
|
<lib dir="${lib.dir}">
|
1625 |
|
|
<patternset refid="lib.jars"/>
|
1626 |
|
|
</lib>
|
1627 |
|
|
<lib dir="${lib.dir}/xalan">
|
1628 |
|
|
<include name="xalan.jar" />
|
1629 |
|
|
<include name="xml-apis.jar" />
|
1630 |
|
|
</lib>
|
1631 |
|
|
<lib dir="${build.dir}">
|
1632 |
|
|
<include name="metacat-client.jar" />
|
1633 |
|
|
</lib>
|
1634 |
|
|
</war>
|
1635 |
|
|
</target>
|
1636 |
|
|
|
1637 |
|
|
<target name="deploy-lsid"
|
1638 |
|
|
depends="war-lsid"
|
1639 |
|
|
description="Deploy LSID war to servlet container">
|
1640 |
|
|
<delete dir="${deploy.dir}/${authority.context}" />
|
1641 |
|
|
<delete file="${deploy.dir}/${authority.context}.war" />
|
1642 |
|
|
<mkdir dir="${deploy.dir}" />
|
1643 |
|
|
<copy todir="${deploy.dir}">
|
1644 |
|
|
<fileset dir="${dist.dir}" />
|
1645 |
|
|
</copy>
|
1646 |
|
|
</target>
|
1647 |
113
|
jones
|
</project>
|