Revision 4969
Added by daigle over 15 years ago
build.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0"?> |
2 | 2 |
<!-- |
3 |
* '$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 |
*
|
|
9 |
* '$Author$'
|
|
10 |
* '$Date$'
|
|
11 |
* '$Revision$'
|
|
12 |
*
|
|
13 |
* Build file for the Ant cross-platform build system for metacat
|
|
14 |
* See http://jakarta.apache.org for details on Ant
|
|
15 |
*
|
|
16 |
* usage: ant [compile|jar|install|jdoc]
|
|
17 |
*
|
|
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
|
|
3 |
* '$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 |
*
|
|
9 |
* '$Author$'
|
|
10 |
* '$Date$'
|
|
11 |
* '$Revision$'
|
|
12 |
*
|
|
13 |
* Build file for the Ant cross-platform build system for metacat
|
|
14 |
* See http://jakarta.apache.org for details on Ant
|
|
15 |
*
|
|
16 |
* usage: ant [compile|jar|install|jdoc]
|
|
17 |
*
|
|
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 | 31 |
--> |
32 | 32 |
<project name="metacat" default="jar" basedir="."> |
33 |
<property environment="env"/> |
|
34 |
<property file="build.properties"/> <!-- USER SPECIFIC PROPS --> |
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
<!-- Determine if ecogrid should be installed--> |
|
40 |
<condition property="enable.ecogrid"> |
|
41 |
<equals arg1="${install.ecogrid}" arg2="true" /> |
|
42 |
</condition> |
|
43 |
|
|
44 |
<!-- Determine if perl should be built--> |
|
45 |
<condition property="build.perl"> |
|
46 |
<equals arg1="${make.perl.code}" arg2="true" /> |
|
47 |
</condition> |
|
33 |
<property environment="env" /> |
|
34 |
<property file="build.properties" /><!-- USER SPECIFIC PROPS --> |
|
48 | 35 |
|
49 |
<target name="config"> |
|
50 |
<property name="jsdk" value="${build.tomcat.dir}/common/lib/servlet-api.jar"/> |
|
51 |
<!-- usr for client testing, generally you don't need change--> |
|
52 |
<property name="mcuser" value="uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org"/> |
|
53 |
<property name="mcpassword" value="kepler"/> |
|
54 |
<property name="mcanotheruser" value="uid=tao,o=NCEAS,dc=ecoinformatics,dc=org"/> |
|
55 |
<property name="mcanotherpassword" value="yourpass"/> |
|
56 |
<property name="piscouser" value="uid=tao,o=PISCO,dc=ecoinformatics,dc=org"/> |
|
57 |
<property name="piscopassword" value="yourpass"/> |
|
58 |
<property name="lteruser" value="uid=jtao,o=LTER,dc=ecoinformatics,dc=org"/> |
|
59 |
<property name="lterpassword" value="yourpass"/> |
|
60 | 36 |
|
61 |
<property name="debug" value="on" /> |
|
62 |
<property name="morphosourcedir" value="../morpho" /> |
|
63 |
<property name="utilitiesdir" value="../utilities" /> |
|
64 |
<property name="installdir" value="${app.deploy.dir}/${metacat.context}" /> |
|
65 | 37 |
|
66 |
<echo>*********** set jsdk to ${jsdk}</echo> |
|
67 |
</target> |
|
68 | 38 |
|
69 |
<target name="init" depends="config"> |
|
70 |
<path id="compile.classpath"> |
|
71 |
<pathelement location="${jsdk}"/> |
|
72 |
<pathelement location="lib"/> |
|
73 |
<fileset dir="lib"> |
|
74 |
<include name="*.jar"/> |
|
75 |
</fileset> |
|
76 |
<fileset dir="lib"> |
|
77 |
<include name="xalan.jar"/> |
|
78 |
</fileset> |
|
79 |
<fileset dir="lib/lsid_lib"> |
|
80 |
<include name="*.jar"/> |
|
81 |
</fileset> |
|
39 |
<!-- Determine if ecogrid should be installed--> |
|
40 |
<condition property="enable.ecogrid"> |
|
41 |
<equals arg1="${install.ecogrid}" arg2="true" /> |
|
42 |
</condition> |
|
82 | 43 |
|
83 |
<!-- Include geoserver, geotools, et. al. --> |
|
84 |
<fileset dir="lib/spatial/geoserver/WEB-INF/lib"> |
|
85 |
<include name="*.jar"/> |
|
86 |
</fileset> |
|
87 |
<pathelement location="lib/spatial/geoserver/WEB-INF/classes"/> |
|
44 |
<!-- Determine if perl should be built--> |
|
45 |
<condition property="build.perl"> |
|
46 |
<equals arg1="${make.perl.code}" arg2="true" /> |
|
47 |
</condition> |
|
88 | 48 |
|
89 |
<!-- Include OAI-PMH --> |
|
90 |
<fileset dir="lib/oaipmh"> |
|
91 |
<include name="*.jar"/> |
|
92 |
</fileset> |
|
49 |
<target name="config"> |
|
50 |
<property name="jsdk" |
|
51 |
value="${build.tomcat.dir}/common/lib/servlet-api.jar" /> |
|
52 |
<!-- usr for client testing, generally you don't need change--> |
|
53 |
<property name="mcuser" |
|
54 |
value="uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org" /> |
|
55 |
<property name="mcpassword" value="kepler" /> |
|
56 |
<property name="mcanotheruser" |
|
57 |
value="uid=tao,o=NCEAS,dc=ecoinformatics,dc=org" /> |
|
58 |
<property name="mcanotherpassword" value="yourpass" /> |
|
59 |
<property name="piscouser" |
|
60 |
value="uid=tao,o=PISCO,dc=ecoinformatics,dc=org" /> |
|
61 |
<property name="piscopassword" value="yourpass" /> |
|
62 |
<property name="lteruser" |
|
63 |
value="uid=jtao,o=LTER,dc=ecoinformatics,dc=org" /> |
|
64 |
<property name="lterpassword" value="yourpass" /> |
|
93 | 65 |
|
94 |
</path> |
|
95 |
|
|
96 |
<!-- It is less likely you'll need to make any changes from here down, |
|
97 |
but customization is possible --> |
|
98 |
<property name="name" value="metacat"/> |
|
99 |
<property name="Name" value="MetaCat"/> |
|
100 |
<property name="debugprefix" value="${Name}:"/> |
|
101 |
<property name="release" value="${metacat.version}"/> |
|
102 |
<property name="style-common-relpath" value="/style/common"/> |
|
103 |
<property name="style-shared-relpath" value="/style/shared"/> |
|
104 |
<property name="schema-relpath" value="/schema"/> |
|
105 |
<property name="style-common-cvsrelpath" value="lib${style-common-relpath}"/> |
|
106 |
<property name="schema-cvsrelpath" value="lib${schema-relpath}"/> |
|
107 |
<property name="style-skins-relpath" value="/style/skins"/> |
|
108 |
<property name="util-module" value="utilities" /> |
|
109 |
<property name="utilities-tag" value="UTILITIES_1_0_1" /> |
|
110 |
<property name="eml-module" value="eml" /> |
|
111 |
<property name="eml-version" value="2.0.0beta6" /> |
|
112 |
<property name="eml-beta-tag" value="BRANCH_EML_2_0_0_BETA_6_FOR_METACAT" /> |
|
113 |
<property name="eml2_0_0-schema-tag" value="RELEASE_EML_2_0_0_UPDATE_1" /> |
|
114 |
<property name="eml2_0_1-schema-tag" value="RELEASE_EML_2_0_1" /> |
|
115 |
<property name="eml2_1_0-schema-tag" value="RELEASE_EML_2_1_0" /> |
|
116 |
<property name="eml2-style-tag" value="RELEASE_EML_UTILS_0_9_0" /> |
|
117 |
<property name="eml2_0_0namespace" value="eml://ecoinformatics.org/eml-2.0.0" /> |
|
118 |
<property name="eml2_0_1namespace" value="eml://ecoinformatics.org/eml-2.0.1" /> |
|
119 |
<property name="eml2_1_0namespace" value="eml://ecoinformatics.org/eml-2.1.0" /> |
|
120 |
<property name="stmmlnamespace" value="http://www.xml-cml.org/schema/stmml" /> |
|
121 |
<property name="eml-css" value="eml_xsl.css"/> |
|
122 |
<property name="eml-module.default.css" |
|
123 |
value="default.css"/> |
|
124 |
<property name="systemidserver" value=""/> |
|
125 |
<property name="html-path" value=""/> |
|
126 |
|
|
127 |
|
|
128 |
<!-- Config for registry variables --> |
|
129 |
<!-- TODO: SCW remove these, covered in metacat.properties or in skin.properties --> |
|
130 |
<property name="scope" value="obfs"/> |
|
131 |
<property name="responseForm" value="genericResponse.tmpl"/> |
|
132 |
<property name="entryForm" value="entryForm.tmpl"/> |
|
133 |
<property name="guide" value="genericGuide.tmpl"/> |
|
134 |
<property name="loginForm" value="loginForm.tmpl"/> |
|
135 |
<property name="confirmData" value="confirmData.tmpl"/> |
|
136 |
<property name="deleteData" value="deleteData.tmpl"/> |
|
137 |
<property name="genericHeader" value="genericHeader.tmpl"/> |
|
138 |
<property name="genericFooter" value="genericFooter.tmpl"/> |
|
66 |
<property name="debug" value="on" /> |
|
67 |
<property name="morphosourcedir" value="../morpho" /> |
|
68 |
<property name="utilitiesdir" value="../utilities" /> |
|
69 |
<property name="installdir" |
|
70 |
value="${app.deploy.dir}/${metacat.context}" /> |
|
139 | 71 |
|
140 |
<filter token="scope" value="${scope}"/> |
|
141 |
<filter token="responseForm" value="${responseForm}"/> |
|
142 |
<filter token="entryForm" value="${entryForm}"/> |
|
143 |
<filter token="guide" value="${guide}"/> |
|
144 |
<filter token="loginForm" value="${loginForm}"/> |
|
145 |
<filter token="confirmData" value="${confirmData}"/> |
|
146 |
<filter token="deleteData" value="${deleteData}"/> |
|
147 |
<filter token="genericHeader" value="${genericHeader}"/> |
|
148 |
<filter token="genericFooter" value="${genericFooter}"/> |
|
149 |
<filter token="adminname" value="${adminname}"/> |
|
150 |
<filter token="recipient" value="${recipient}"/> |
|
151 |
<filter token="metacatVersion" value="${metacat.version}"/> |
|
152 |
<filter token="metacatRC" value="${metacat.releaseCandidate}"/> |
|
153 |
<filter token="build.context" value="${metacat.context}"/> |
|
72 |
<echo>*********** set jsdk to ${jsdk}</echo> |
|
73 |
</target> |
|
154 | 74 |
|
155 |
<filter token="docrooturl" value="./" /> |
|
156 |
<filter token="mcuser" value="${mcuser}"/> |
|
157 |
<filter token="mcpassword" value="${mcpassword}"/> |
|
158 |
<filter token="mcanotheruser" value="${mcanotheruser}"/> |
|
159 |
<filter token="mcanotherpassword" value="${mcanotherpassword}"/> |
|
160 |
<filter token="eml-css" value="${eml-css}"/> |
|
161 |
<filter token="style-skins-relpath" value="${style-skins-relpath}"/> |
|
162 |
<filter token="style-common-relpath" value="${style-common-relpath}"/> |
|
75 |
<target name="init" depends="config"> |
|
76 |
<path id="compile.classpath"> |
|
77 |
<pathelement location="${jsdk}" /> |
|
78 |
<pathelement location="lib" /> |
|
79 |
<fileset dir="lib"> |
|
80 |
<include name="*.jar" /> |
|
81 |
</fileset> |
|
82 |
<fileset dir="lib"> |
|
83 |
<include name="xalan.jar" /> |
|
84 |
</fileset> |
|
85 |
<fileset dir="lib/lsid_lib"> |
|
86 |
<include name="*.jar" /> |
|
87 |
</fileset> |
|
163 | 88 |
|
164 |
<filter token="eml-version" value="${eml-version}"/>
|
|
165 |
<filter token="eml2_0_0namespace" value="${eml2_0_0namespace}"/>
|
|
166 |
<filter token="eml2_0_1namespace" value="${eml2_0_1namespace}"/>
|
|
167 |
<filter token="eml2_1_0namespace" value="${eml2_1_0namespace}"/>
|
|
168 |
<filter token="stmmlnamespace" value="${stmmlnamespace}"/>
|
|
169 |
<filter token="debugprefix" value="${debugprefix}"/>
|
|
89 |
<!-- Include geoserver, geotools, et. al. -->
|
|
90 |
<fileset dir="lib/spatial/geoserver/WEB-INF/lib">
|
|
91 |
<include name="*.jar" />
|
|
92 |
</fileset>
|
|
93 |
<pathelement
|
|
94 |
location="lib/spatial/geoserver/WEB-INF/classes" />
|
|
170 | 95 |
|
171 |
<filter token="defaultStage" value="${defaultStage}"/> |
|
172 |
<filter token="defaultHeader" value="${defaultHeader}"/> |
|
173 |
<filter token="defaultFooter" value="${defaultFooter}"/> |
|
174 |
<filter token="defaultChangePass" value="${defaultChangePass}"/> |
|
175 |
<filter token="defaultResetPass" value="${defaultResetPass}"/> |
|
176 |
<filter token="changePassSuccess" value="${changePassSuccess}"/> |
|
177 |
<filter token="resetPassSuccess" value="${resetPassSuccess}"/> |
|
178 |
<filter token="registerFailed" value="${registerFailed}"/> |
|
179 |
<filter token="registerLter" value="${registerLter}"/> |
|
180 |
<filter token="registerMatch" value="${registerMatch}"/> |
|
181 |
<filter token="registerSuccess" value="${registerSuccess}"/> |
|
182 |
<filter token="register" value="${register}"/> |
|
183 |
<filter token="searchResults" value="${searchResults}"/> |
|
184 |
<filter token="ldapMainServerFailure" value="${ldapMainServerFailure}"/> |
|
185 |
<filter token="lter-user" value="${lteruser}"/> |
|
186 |
<filter token="lter-pass" value="${lterpassword}"/> |
|
187 |
<filter token="pisco-user" value="${piscouser}"/> |
|
188 |
<filter token="pisco-pass" value="${piscopassword}"/> |
|
189 |
|
|
190 |
|
|
191 |
<!-- MCD BYE filter token="timedreplication" value="${timedreplication}" / --> |
|
192 |
<!-- MCD BYE filter token="firsttimedreplication" value="${firsttimedreplication}" / --> |
|
193 |
<!-- MCD BYE filter token="timedreplicationinterval" value="${timedreplicationinterval}" / --> |
|
194 |
|
|
195 |
<property name="srcdir" value="./src" /> |
|
196 |
<property name="lib.dir" value="./lib" /> |
|
197 |
<property name="docdir" value="./docs" /> |
|
198 |
<property name="cgidir" value="./cgi-bin" /> |
|
199 |
<property name="testdir" value="./test" /> |
|
200 |
<property name="testtorun" value="BuildIndexTest" /> |
|
201 |
<property name="junittestsdir" value="./test/edu/ucsb/nceas/metacattest" /> |
|
202 |
<property name="junitnettestsdir" value="./test/edu/ucsb/nceas/metacatnettest" /> |
|
203 |
<property name="build.dir" value="./build"/> |
|
204 |
<property name="build.src" value="${build.dir}/src"/> |
|
205 |
<property name="build.dest" value="${build.dir}/classes"/> |
|
206 |
<property name="build.samples" value="${build.dir}/samples"/> |
|
207 |
<property name="build.tests" value="${build.dir}/tests"/> |
|
208 |
<property name="build.tmp" value="${build.dir}/tmp"/> |
|
209 |
<property name="build.metacattest" value="${build.tests}/metacattest"/> |
|
210 |
<property name="build.metacatnettest" value="${build.tests}/metacatnettest"/> |
|
211 |
<property name="build.data" value="${build.dir}/data"/> |
|
212 |
<property name="build.javadocs" value="${build.dir}/docs/api"/> |
|
213 |
<property name="build.war" value="${build.dir}/war"/> |
|
214 |
<property name="dist.dir" value="dist"/> |
|
215 |
<property name="ver.dir" value="${dist.dir}/${name}-${release}"/> |
|
216 |
<property name="ver.src" value="${ver.dir}/src"/> |
|
217 |
<property name="util.dir" value="${dist.dir}/${util-module}"/> |
|
218 |
<property name="test.dir" value="${dist.dir}/test"/> |
|
219 |
<!-- directories for creating a Harvest List Editor distribution --> |
|
220 |
<property name="dist.dir.hle" value="disthle"/> |
|
221 |
<property name="ver.dir.hle" value="${dist.dir.hle}/harvest-list-editor-${release}"/> |
|
222 |
<property name="pkg.dir" value="./package" /> |
|
223 |
<property name="deb.pkg.dir" value="${pkg.dir}/debian" /> |
|
224 |
|
|
225 |
<property name="ecogrid-target-name" value="metacatImpl"/> |
|
226 |
<property name="ecogrid-module-dest-dir" value =".."/> |
|
227 |
<property name="ecogrid-module" value="seek/projects/ecogrid"/> |
|
228 |
<property name="ecogrid-dist-dir" value="${dist.dir}/${ecogrid-module}"/> |
|
229 |
<property name="ecogrid-dir" value="${ecogrid-module-dest-dir}/${ecogrid-module}"/> |
|
96 |
<!-- Include OAI-PMH --> |
|
97 |
<fileset dir="lib/oaipmh"> |
|
98 |
<include name="*.jar" /> |
|
99 |
</fileset> |
|
230 | 100 |
|
231 |
<property name="package.home" value="edu/ucsb/nceas/metacat" /> |
|
232 |
|
|
233 |
<!-- set up svn --> |
|
234 |
<property name="svnant.lib" value="lib" /> |
|
235 |
<property name="svnant.jar" value="${svnant.lib}/svnant.jar" /> |
|
236 |
<property name="svnClientAdapter.jar" value="${svnant.lib}/svnClientAdapter.jar" /> |
|
237 |
<property name="svnjavahl.jar" value="${svnant.lib}/svnjavahl.jar" /> |
|
238 |
<property name="svn.utilitiesUrl" value="https://code.ecoinformatics.org/code/utilities/tags/${utilities-tag}" /> |
|
239 |
<property name="svn.ecogridUrl" value="https://code.ecoinformatics.org/code/seek/trunk/projects/ecogrid/" /> |
|
240 |
<!-- property name="svn.utilitiesExportPath" value="${knbdir}" / --> |
|
241 |
|
|
242 |
<!-- load the svn task --> |
|
243 |
<path id="svn.classpath"> |
|
244 |
<pathelement location="${svnjavahl.jar}" /> |
|
245 |
<pathelement location="${svnant.jar}" /> |
|
246 |
<pathelement location="${svnClientAdapter.jar}" /> |
|
247 |
</path> |
|
248 |
<taskdef resource="svntask.properties" classpathref="svn.classpath"/> |
|
249 |
|
|
250 |
<condition property="utilities.required"> |
|
251 |
<or> |
|
252 |
<not><available file="lib/httpclient.jar"/></not> |
|
253 |
<not><available file="lib/utilities.jar"/></not> |
|
254 |
<not><available file="${utilitiesdir}" type="dir"/></not> |
|
255 |
</or> |
|
256 |
</condition> |
|
257 |
<!-- peer.utilities.required is used when there is no utilities |
|
258 |
directory at ${utilitiesdir} --> |
|
259 |
<condition property="peer.utilities.required"> |
|
260 |
<or> |
|
261 |
<not><available file="${utilitiesdir}" type="dir"/></not> |
|
262 |
</or> |
|
263 |
</condition> |
|
264 |
<condition property="eml.required"> |
|
265 |
<or> |
|
266 |
<not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not> |
|
267 |
<not><available file="lib/schema/eml-2.0.0/eml.xsd"/></not> |
|
268 |
<not><available file="lib/schema/eml-2.1.0/eml.xsd"/></not> |
|
269 |
<not><available file="lib/dtd/eml-dataset-2.0.0beta6.dtd"/></not> |
|
270 |
</or> |
|
271 |
</condition> |
|
272 |
|
|
273 |
<condition property="ecogrid.required"> |
|
274 |
<or> |
|
275 |
<not><available file="${ecogrid-dir}/build.properties"/></not> |
|
276 |
<not><available file="${ecogrid-dir}/buildfiles/metacatImpl.xml"/></not> |
|
277 |
</or> |
|
278 |
</condition> |
|
101 |
</path> |
|
279 | 102 |
|
280 |
</target> |
|
103 |
<!-- It is less likely you'll need to make any changes from here down, |
|
104 |
but customization is possible --> |
|
105 |
<property name="name" value="metacat" /> |
|
106 |
<property name="Name" value="MetaCat" /> |
|
107 |
<property name="debugprefix" value="${Name}:" /> |
|
108 |
<property name="release" value="${metacat.version}" /> |
|
109 |
<property name="style-common-relpath" value="/style/common" /> |
|
110 |
<property name="style-shared-relpath" value="/style/shared" /> |
|
111 |
<property name="schema-relpath" value="/schema" /> |
|
112 |
<property name="style-common-cvsrelpath" |
|
113 |
value="lib${style-common-relpath}" /> |
|
114 |
<property name="schema-cvsrelpath" value="lib${schema-relpath}" /> |
|
115 |
<property name="style-skins-relpath" value="/style/skins" /> |
|
116 |
<property name="util-module" value="utilities" /> |
|
117 |
<property name="utilities-tag" value="UTILITIES_1_0_1" /> |
|
118 |
<property name="eml-module" value="eml" /> |
|
119 |
<property name="eml-version" value="2.0.0beta6" /> |
|
120 |
<property name="eml-beta-tag" |
|
121 |
value="BRANCH_EML_2_0_0_BETA_6_FOR_METACAT" /> |
|
122 |
<property name="eml2_0_0-schema-tag" |
|
123 |
value="RELEASE_EML_2_0_0_UPDATE_1" /> |
|
124 |
<property name="eml2_0_1-schema-tag" value="RELEASE_EML_2_0_1" /> |
|
125 |
<property name="eml2_1_0-schema-tag" value="RELEASE_EML_2_1_0" /> |
|
126 |
<property name="eml2-style-tag" value="RELEASE_EML_UTILS_0_9_0" /> |
|
127 |
<property name="eml2_0_0namespace" |
|
128 |
value="eml://ecoinformatics.org/eml-2.0.0" /> |
|
129 |
<property name="eml2_0_1namespace" |
|
130 |
value="eml://ecoinformatics.org/eml-2.0.1" /> |
|
131 |
<property name="eml2_1_0namespace" |
|
132 |
value="eml://ecoinformatics.org/eml-2.1.0" /> |
|
133 |
<property name="stmmlnamespace" |
|
134 |
value="http://www.xml-cml.org/schema/stmml" /> |
|
135 |
<property name="eml-css" value="eml_xsl.css" /> |
|
136 |
<property name="eml-module.default.css" value="default.css" /> |
|
137 |
<property name="systemidserver" value="" /> |
|
138 |
<property name="html-path" value="" /> |
|
281 | 139 |
|
282 |
<target name="prepare" depends="init"> |
|
283 |
<mkdir dir="${build.dir}"/> |
|
284 |
<mkdir dir="${build.src}"/> |
|
285 |
<mkdir dir="${build.dest}"/> |
|
286 |
<mkdir dir="${build.javadocs}"/> |
|
287 |
<mkdir dir="${build.tmp}"/> |
|
288 | 140 |
|
289 |
<copy todir="${build.src}" filtering="yes"> |
|
290 |
<fileset dir="${srcdir}"> |
|
291 |
<include name="edu/**"/> |
|
292 |
<include name="com/**"/> |
|
293 |
<include name="org/**"/> |
|
294 |
<include name="**/*.sql"/> |
|
295 |
<exclude name="**/CVS*"/> |
|
296 |
<exclude name="**/.#*"/> |
|
297 |
</fileset> |
|
298 |
</copy> |
|
299 |
<available file="lib/style/common/emlb6toeml2" type="dir" |
|
300 |
property="styles.not.needed"/> |
|
301 |
</target> |
|
141 |
<!-- Config for registry variables --> |
|
142 |
<!-- TODO: SCW remove these, covered in metacat.properties or in skin.properties --> |
|
143 |
<property name="scope" value="obfs" /> |
|
144 |
<property name="responseForm" value="genericResponse.tmpl" /> |
|
145 |
<property name="entryForm" value="entryForm.tmpl" /> |
|
146 |
<property name="guide" value="genericGuide.tmpl" /> |
|
147 |
<property name="loginForm" value="loginForm.tmpl" /> |
|
148 |
<property name="confirmData" value="confirmData.tmpl" /> |
|
149 |
<property name="deleteData" value="deleteData.tmpl" /> |
|
150 |
<property name="genericHeader" value="genericHeader.tmpl" /> |
|
151 |
<property name="genericFooter" value="genericFooter.tmpl" /> |
|
302 | 152 |
|
303 |
<taskdef resource="axis-tasks.properties" classpathref="compile.classpath"/> |
|
304 |
|
|
153 |
<filter token="scope" value="${scope}" /> |
|
154 |
<filter token="responseForm" value="${responseForm}" /> |
|
155 |
<filter token="entryForm" value="${entryForm}" /> |
|
156 |
<filter token="guide" value="${guide}" /> |
|
157 |
<filter token="loginForm" value="${loginForm}" /> |
|
158 |
<filter token="confirmData" value="${confirmData}" /> |
|
159 |
<filter token="deleteData" value="${deleteData}" /> |
|
160 |
<filter token="genericHeader" value="${genericHeader}" /> |
|
161 |
<filter token="genericFooter" value="${genericFooter}" /> |
|
162 |
<filter token="adminname" value="${adminname}" /> |
|
163 |
<filter token="recipient" value="${recipient}" /> |
|
164 |
<filter token="metacatVersion" value="${metacat.version}" /> |
|
165 |
<filter token="metacatRC" value="${metacat.releaseCandidate}" /> |
|
166 |
<filter token="build.context" value="${metacat.context}" /> |
|
167 |
|
|
168 |
<filter token="docrooturl" value="./" /> |
|
169 |
<filter token="mcuser" value="${mcuser}" /> |
|
170 |
<filter token="mcpassword" value="${mcpassword}" /> |
|
171 |
<filter token="mcanotheruser" value="${mcanotheruser}" /> |
|
172 |
<filter token="mcanotherpassword" value="${mcanotherpassword}" /> |
|
173 |
<filter token="eml-css" value="${eml-css}" /> |
|
174 |
<filter token="style-skins-relpath" |
|
175 |
value="${style-skins-relpath}" /> |
|
176 |
<filter token="style-common-relpath" |
|
177 |
value="${style-common-relpath}" /> |
|
178 |
|
|
179 |
<filter token="eml-version" value="${eml-version}" /> |
|
180 |
<filter token="eml2_0_0namespace" value="${eml2_0_0namespace}" /> |
|
181 |
<filter token="eml2_0_1namespace" value="${eml2_0_1namespace}" /> |
|
182 |
<filter token="eml2_1_0namespace" value="${eml2_1_0namespace}" /> |
|
183 |
<filter token="stmmlnamespace" value="${stmmlnamespace}" /> |
|
184 |
<filter token="debugprefix" value="${debugprefix}" /> |
|
185 |
|
|
186 |
<filter token="defaultStage" value="${defaultStage}" /> |
|
187 |
<filter token="defaultHeader" value="${defaultHeader}" /> |
|
188 |
<filter token="defaultFooter" value="${defaultFooter}" /> |
|
189 |
<filter token="defaultChangePass" value="${defaultChangePass}" /> |
|
190 |
<filter token="defaultResetPass" value="${defaultResetPass}" /> |
|
191 |
<filter token="changePassSuccess" value="${changePassSuccess}" /> |
|
192 |
<filter token="resetPassSuccess" value="${resetPassSuccess}" /> |
|
193 |
<filter token="registerFailed" value="${registerFailed}" /> |
|
194 |
<filter token="registerLter" value="${registerLter}" /> |
|
195 |
<filter token="registerMatch" value="${registerMatch}" /> |
|
196 |
<filter token="registerSuccess" value="${registerSuccess}" /> |
|
197 |
<filter token="register" value="${register}" /> |
|
198 |
<filter token="searchResults" value="${searchResults}" /> |
|
199 |
<filter token="ldapMainServerFailure" |
|
200 |
value="${ldapMainServerFailure}" /> |
|
201 |
<filter token="lter-user" value="${lteruser}" /> |
|
202 |
<filter token="lter-pass" value="${lterpassword}" /> |
|
203 |
<filter token="pisco-user" value="${piscouser}" /> |
|
204 |
<filter token="pisco-pass" value="${piscopassword}" /> |
|
205 |
|
|
206 |
|
|
207 |
<!-- MCD BYE filter token="timedreplication" value="${timedreplication}" / --> |
|
208 |
<!-- MCD BYE filter token="firsttimedreplication" value="${firsttimedreplication}" / --> |
|
209 |
<!-- MCD BYE filter token="timedreplicationinterval" value="${timedreplicationinterval}" / --> |
|
210 |
|
|
211 |
<property name="srcdir" value="./src" /> |
|
212 |
<property name="lib.dir" value="./lib" /> |
|
213 |
<property name="docdir" value="./docs" /> |
|
214 |
<property name="cgidir" value="./cgi-bin" /> |
|
215 |
<property name="testdir" value="./test" /> |
|
216 |
<property name="testtorun" value="BuildIndexTest" /> |
|
217 |
<property name="junittestsdir" |
|
218 |
value="./test/edu/ucsb/nceas/metacattest" /> |
|
219 |
<property name="junitnettestsdir" |
|
220 |
value="./test/edu/ucsb/nceas/metacatnettest" /> |
|
221 |
<property name="build.dir" value="./build" /> |
|
222 |
<property name="build.src" value="${build.dir}/src" /> |
|
223 |
<property name="build.dest" value="${build.dir}/classes" /> |
|
224 |
<property name="build.samples" value="${build.dir}/samples" /> |
|
225 |
<property name="build.tests" value="${build.dir}/tests" /> |
|
226 |
<property name="build.tmp" value="${build.dir}/tmp" /> |
|
227 |
<property name="build.metacattest" |
|
228 |
value="${build.tests}/metacattest" /> |
|
229 |
<property name="build.metacatnettest" |
|
230 |
value="${build.tests}/metacatnettest" /> |
|
231 |
<property name="build.data" value="${build.dir}/data" /> |
|
232 |
<property name="build.javadocs" value="${build.dir}/docs/api" /> |
|
233 |
<property name="build.war" value="${build.dir}/war" /> |
|
234 |
<property name="dist.dir" value="dist" /> |
|
235 |
<property name="ver.dir" value="${dist.dir}/${name}-${release}" /> |
|
236 |
<property name="ver.src" value="${ver.dir}/src" /> |
|
237 |
<property name="util.dir" value="${dist.dir}/${util-module}" /> |
|
238 |
<property name="test.dir" value="${dist.dir}/test" /> |
|
239 |
<!-- directories for creating a Harvest List Editor distribution --> |
|
240 |
<property name="dist.dir.hle" value="disthle" /> |
|
241 |
<property name="ver.dir.hle" |
|
242 |
value="${dist.dir.hle}/harvest-list-editor-${release}" /> |
|
243 |
<property name="pkg.dir" value="./package" /> |
|
244 |
<property name="deb.pkg.dir" value="${pkg.dir}/debian" /> |
|
245 |
|
|
246 |
<property name="ecogrid-target-name" value="metacatImpl" /> |
|
247 |
<property name="ecogrid-module-dest-dir" value=".." /> |
|
248 |
<property name="ecogrid-module" value="seek/projects/ecogrid" /> |
|
249 |
<property name="ecogrid-dist-dir" |
|
250 |
value="${dist.dir}/${ecogrid-module}" /> |
|
251 |
<property name="ecogrid-dir" |
|
252 |
value="${ecogrid-module-dest-dir}/${ecogrid-module}" /> |
|
253 |
|
|
254 |
<property name="package.home" value="edu/ucsb/nceas/metacat" /> |
|
255 |
|
|
256 |
<!-- set up svn --> |
|
257 |
<property name="svnant.lib" value="lib" /> |
|
258 |
<property name="svnant.jar" value="${svnant.lib}/svnant.jar" /> |
|
259 |
<property name="svnClientAdapter.jar" |
|
260 |
value="${svnant.lib}/svnClientAdapter.jar" /> |
|
261 |
<property name="svnjavahl.jar" |
|
262 |
value="${svnant.lib}/svnjavahl.jar" /> |
|
263 |
<property name="svn.utilitiesUrl" |
|
264 |
value="https://code.ecoinformatics.org/code/utilities/tags/${utilities-tag}" /> |
|
265 |
<property name="svn.ecogridUrl" |
|
266 |
value="https://code.ecoinformatics.org/code/seek/trunk/projects/ecogrid/" /> |
|
267 |
<!-- property name="svn.utilitiesExportPath" value="${knbdir}" / --> |
|
268 |
|
|
269 |
<!-- load the svn task --> |
|
270 |
<path id="svn.classpath"> |
|
271 |
<pathelement location="${svnjavahl.jar}" /> |
|
272 |
<pathelement location="${svnant.jar}" /> |
|
273 |
<pathelement location="${svnClientAdapter.jar}" /> |
|
274 |
</path> |
|
275 |
<taskdef resource="svntask.properties" |
|
276 |
classpathref="svn.classpath" /> |
|
277 |
|
|
278 |
<condition property="utilities.required"> |
|
279 |
<or> |
|
280 |
<not> |
|
281 |
<available file="lib/httpclient.jar" /> |
|
282 |
</not> |
|
283 |
<not> |
|
284 |
<available file="lib/utilities.jar" /> |
|
285 |
</not> |
|
286 |
<not> |
|
287 |
<available file="${utilitiesdir}" type="dir" /> |
|
288 |
</not> |
|
289 |
</or> |
|
290 |
</condition> |
|
291 |
<!-- peer.utilities.required is used when there is no utilities |
|
292 |
directory at ${utilitiesdir} --> |
|
293 |
<condition property="peer.utilities.required"> |
|
294 |
<or> |
|
295 |
<not> |
|
296 |
<available file="${utilitiesdir}" type="dir" /> |
|
297 |
</not> |
|
298 |
</or> |
|
299 |
</condition> |
|
300 |
<condition property="eml.required"> |
|
301 |
<or> |
|
302 |
<not> |
|
303 |
<available file="lib/schema/eml-2.0.1/eml.xsd" /> |
|
304 |
</not> |
|
305 |
<not> |
|
306 |
<available file="lib/schema/eml-2.0.0/eml.xsd" /> |
|
307 |
</not> |
|
308 |
<not> |
|
309 |
<available file="lib/schema/eml-2.1.0/eml.xsd" /> |
|
310 |
</not> |
|
311 |
<not> |
|
312 |
<available |
|
313 |
file="lib/dtd/eml-dataset-2.0.0beta6.dtd" /> |
|
314 |
</not> |
|
315 |
</or> |
|
316 |
</condition> |
|
317 |
|
|
318 |
<condition property="ecogrid.required"> |
|
319 |
<or> |
|
320 |
<not> |
|
321 |
<available file="${ecogrid-dir}/build.properties" /> |
|
322 |
</not> |
|
323 |
<not> |
|
324 |
<available |
|
325 |
file="${ecogrid-dir}/buildfiles/metacatImpl.xml" /> |
|
326 |
</not> |
|
327 |
</or> |
|
328 |
</condition> |
|
329 |
|
|
330 |
</target> |
|
331 |
|
|
332 |
<target name="prepare" depends="init"> |
|
333 |
<mkdir dir="${build.dir}" /> |
|
334 |
<mkdir dir="${build.src}" /> |
|
335 |
<mkdir dir="${build.dest}" /> |
|
336 |
<mkdir dir="${build.javadocs}" /> |
|
337 |
<mkdir dir="${build.tmp}" /> |
|
338 |
|
|
339 |
<copy todir="${build.src}" filtering="yes"> |
|
340 |
<fileset dir="${srcdir}"> |
|
341 |
<include name="edu/**" /> |
|
342 |
<include name="com/**" /> |
|
343 |
<include name="org/**" /> |
|
344 |
<!-- include name="java/**" / --> |
|
345 |
<include name="**/*.sql" /> |
|
346 |
<exclude name="**/CVS*" /> |
|
347 |
<exclude name="**/.#*" /> |
|
348 |
</fileset> |
|
349 |
</copy> |
|
350 |
<available file="lib/style/common/emlb6toeml2" type="dir" |
|
351 |
property="styles.not.needed" /> |
|
352 |
</target> |
|
353 |
|
|
354 |
<taskdef resource="axis-tasks.properties" |
|
355 |
classpathref="compile.classpath" /> |
|
356 |
|
|
305 | 357 |
<target name="generateStubs" depends="prepare"> |
306 |
<echo message=" Generating stubs for execution service from ${wsdl.url.kepler}" /> |
|
307 |
<axis-wsdl2java verbose="true" output="${srcdir}" |
|
308 |
url="${wsdl.url.kepler}" /> |
|
358 |
<echo |
|
359 |
message=" Generating stubs for execution service from ${/tmp/KeplerWebService.wsdl}" /> |
|
360 |
<axis-wsdl2java verbose="true" output="${srcdir}" |
|
361 |
url="/tmp/KeplerWebService.wsdl" /> |
|
309 | 362 |
</target> |
310 |
|
|
311 |
<target name="compile" depends="prepare,utilities" |
|
312 |
description="Compiles java code to build dir, and copies metacat props files there"> |
|
313 | 363 |
|
314 |
<javac srcdir="${build.src}" |
|
315 |
destdir="${build.dest}" |
|
316 |
debug="${debug}" |
|
317 |
excludes="**/*.sql **/stringclient/** **/client/*.java **/harvesterClient/*.java"> |
|
318 |
<classpath> |
|
319 |
<path refid="compile.classpath"/> |
|
320 |
</classpath> |
|
321 |
</javac> |
|
322 |
</target> |
|
364 |
<target name="compile" depends="prepare,utilities" |
|
365 |
description="Compiles java code to build dir, and copies metacat props files there"> |
|
323 | 366 |
|
324 |
<target name="jar" depends="compile,geteml" |
|
325 |
description="Compiles and jars metacat java code to metacat.jar in build dir "> |
|
367 |
<javac srcdir="${build.src}" destdir="${build.dest}" |
|
368 |
debug="${debug}" |
|
369 |
excludes="**/*.sql **/stringclient/** **/client/*.java **/harvesterClient/*.java"> |
|
370 |
<classpath> |
|
371 |
<path refid="compile.classpath" /> |
|
372 |
</classpath> |
|
373 |
</javac> |
|
374 |
</target> |
|
326 | 375 |
|
327 |
<delete file="${build.dir}/${name}.jar" /> |
|
328 |
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" |
|
329 |
excludes="**/protocols/ **/harvesterClient/" /> |
|
330 |
</target> |
|
376 |
<target name="jar" depends="compile,geteml" |
|
377 |
description="Compiles and jars metacat java code to metacat.jar in build dir "> |
|
331 | 378 |
|
332 |
<target name="protocol" depends="compile" |
|
333 |
description="Compiles and jars protocol java code to protocol.jar in build dir"> |
|
334 |
<delete file="${build.dir}/protocol.jar" /> |
|
335 |
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}" |
|
336 |
includes="**/protocols/" /> |
|
337 |
</target> |
|
379 |
<delete file="${build.dir}/${name}.jar" /> |
|
380 |
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" |
|
381 |
excludes="**/protocols/ **/harvesterClient/" /> |
|
382 |
</target> |
|
338 | 383 |
|
339 |
<target name="utilities" depends="config,getpeerutilities" if="utilities.required"> |
|
340 |
<ant dir="${utilitiesdir}" target="clean" inheritAll="false" /> |
|
341 |
<ant dir="${utilitiesdir}" target="jar" inheritAll="false" /> |
|
342 |
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" /> |
|
343 |
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" /> |
|
344 |
</target> |
|
345 |
|
|
346 |
<target name="getpeerutilities" depends="prepare" if="peer.utilities.required" |
|
347 |
description="Checks utilities out of svn and copies it to your utilitiesdir if it does not already exist"> |
|
348 |
<echo message="Exporting utiities files from svn repository:" /> |
|
349 |
<!-- input message="Please enter svn repo username:" addproperty="svn.username" / --> |
|
350 |
<!-- input message="Please enter svn repo password:" addproperty="svn.password" / --> |
|
351 |
<!-- svn username="${svn.username}" password="${svn.password}" --> |
|
352 |
<svn> |
|
353 |
<export srcUrl="${svn.utilitiesUrl}" destPath="${utilitiesdir}" /> |
|
354 |
</svn> |
|
384 |
<target name="protocol" depends="compile" |
|
385 |
description="Compiles and jars protocol java code to protocol.jar in build dir"> |
|
386 |
<delete file="${build.dir}/protocol.jar" /> |
|
387 |
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}" |
|
388 |
includes="**/protocols/" /> |
|
389 |
</target> |
|
355 | 390 |
|
356 |
<!-- ant dir="${utilitiesdir}" inheritAll="false" target="dist" / --> |
|
357 |
</target> |
|
391 |
<target name="utilities" depends="config,getpeerutilities" |
|
392 |
if="utilities.required"> |
|
393 |
<ant dir="${utilitiesdir}" target="clean" inheritAll="false" /> |
|
394 |
<ant dir="${utilitiesdir}" target="jar" inheritAll="false" /> |
|
395 |
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" /> |
|
396 |
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" /> |
|
397 |
</target> |
|
358 | 398 |
|
359 |
<target name="getutilities" depends="prepare" |
|
360 |
description="Checks utility out of svn and copies it to your metacat cvs sandbox"> |
|
361 |
<echo>Enter CVS password: </echo> |
|
362 |
<cvs cvsRoot="${cvsroot}" |
|
363 |
package="${util-module}" |
|
364 |
tag="${utilities-tag}" |
|
365 |
dest="${build.tmp}" /> |
|
366 |
</target> |
|
399 |
<target name="getpeerutilities" depends="prepare" |
|
400 |
if="peer.utilities.required" |
|
401 |
description="Checks utilities out of svn and copies it to your utilitiesdir if it does not already exist"> |
|
402 |
<echo message="Exporting utiities files from svn repository:" /> |
|
403 |
<!-- input message="Please enter svn repo username:" addproperty="svn.username" / --> |
|
404 |
<!-- input message="Please enter svn repo password:" addproperty="svn.password" / --> |
|
405 |
<!-- svn username="${svn.username}" password="${svn.password}" --> |
|
406 |
<svn> |
|
407 |
<export srcUrl="${svn.utilitiesUrl}" |
|
408 |
destPath="${utilitiesdir}" /> |
|
409 |
</svn> |
|
367 | 410 |
|
368 |
<target name="client" depends="utilities, prepare" |
|
369 |
description="Compiles metacat-client java code to build dir"> |
|
370 |
<javac srcdir="${build.src}" |
|
371 |
destdir="${build.dest}" |
|
372 |
includes="edu/ucsb/nceas/metacat/client/*"> |
|
373 |
<classpath> |
|
374 |
<path refid="compile.classpath"/> |
|
375 |
</classpath> |
|
376 |
</javac> |
|
377 |
</target> |
|
411 |
<!-- ant dir="${utilitiesdir}" inheritAll="false" target="dist" / --> |
|
412 |
</target> |
|
378 | 413 |
|
379 |
<target name="clientjar" depends="client"
|
|
380 |
description="Compiles and jars metacat-client java code to metacat-client.jar in build dir">
|
|
381 |
<delete file="${build.dir}/${name}-client.jar" />
|
|
382 |
<jar jarfile="${build.dir}/${name}-client.jar" basedir="${build.dest}"
|
|
383 |
includes="**/metacat/client/" />
|
|
384 |
</target>
|
|
414 |
<target name="getutilities" depends="prepare"
|
|
415 |
description="Checks utility out of svn and copies it to your metacat cvs sandbox">
|
|
416 |
<echo>Enter CVS password:</echo>
|
|
417 |
<cvs cvsRoot="${cvsroot}" package="${util-module}"
|
|
418 |
tag="${utilities-tag}" dest="${build.tmp}" />
|
|
419 |
</target>
|
|
385 | 420 |
|
386 |
<target name="advancedsearchjar" depends="compile" |
|
387 |
description="Compiles and jars advanced search Java code to advancedsearch.jar in build dir"> |
|
388 |
<delete file="${build.dir}/advancedsearch.jar" /> |
|
389 |
<jar jarfile="${build.dir}/advancedsearch.jar" basedir="${build.dest}" |
|
390 |
includes="**/metacat/advancedsearch/" /> |
|
391 |
</target> |
|
421 |
<target name="client" depends="utilities, prepare" |
|
422 |
description="Compiles metacat-client java code to build dir"> |
|
423 |
<javac srcdir="${build.src}" destdir="${build.dest}" |
|
424 |
includes="edu/ucsb/nceas/metacat/client/*"> |
|
425 |
<classpath> |
|
426 |
<path refid="compile.classpath" /> |
|
427 |
</classpath> |
|
428 |
</javac> |
|
429 |
</target> |
|
392 | 430 |
|
393 |
<target name="harvester" depends="client" |
|
394 |
description="Compiles harvester java code to build dir"> |
|
395 |
<javac srcdir="${build.src}" |
|
396 |
destdir="${build.dest}" |
|
397 |
includes="edu/ucsb/nceas/metacat/harvesterClient/*"> |
|
398 |
<classpath> |
|
399 |
<path refid="compile.classpath"/> |
|
400 |
</classpath> |
|
401 |
</javac> |
|
402 |
</target> |
|
431 |
<target name="clientjar" depends="client" |
|
432 |
description="Compiles and jars metacat-client java code to metacat-client.jar in build dir"> |
|
433 |
<delete file="${build.dir}/${name}-client.jar" /> |
|
434 |
<jar jarfile="${build.dir}/${name}-client.jar" |
|
435 |
basedir="${build.dest}" includes="**/metacat/client/" /> |
|
436 |
</target> |
|
403 | 437 |
|
404 |
<target name="harvesterjar" depends="harvester"
|
|
405 |
description="Compiles and jars harvester java code to harvester.jar in build dir">
|
|
406 |
<delete file="${build.dir}/harvester.jar" />
|
|
407 |
<jar jarfile="${build.dir}/harvester.jar" basedir="${build.dest}"
|
|
408 |
includes="**/metacat/harvesterClient/" />
|
|
409 |
</target>
|
|
438 |
<target name="advancedsearchjar" depends="compile"
|
|
439 |
description="Compiles and jars advanced search Java code to advancedsearch.jar in build dir">
|
|
440 |
<delete file="${build.dir}/advancedsearch.jar" />
|
|
441 |
<jar jarfile="${build.dir}/advancedsearch.jar"
|
|
442 |
basedir="${build.dest}" includes="**/metacat/advancedsearch/" />
|
|
443 |
</target>
|
|
410 | 444 |
|
411 |
<target name="harvestListEditorDist" depends="harvesterjar" |
|
412 |
description="Prepares a distribution of the Harvest List Editor tool"> |
|
413 |
<mkdir dir="${dist.dir.hle}"/> |
|
414 |
<delete dir="${ver.dir.hle}" /> |
|
415 |
<mkdir dir="${ver.dir.hle}"/> |
|
416 |
<copy todir="${ver.dir.hle}" file="${build.dir}/harvester.jar"/> |
|
417 |
<copy todir="${ver.dir.hle}" file="lib/xercesImpl.jar"/> |
|
418 |
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestList.xsd"/> |
|
419 |
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.bat"/> |
|
420 |
<copy todir="${ver.dir.hle}" file="lib/harvester/harvestListEditor.sh"/> |
|
421 |
<delete file="./harvest-list-editor-${release}.zip"/> |
|
422 |
<zip zipfile="./harvest-list-editor-${release}.zip" basedir="${ver.dir.hle}" /> |
|
423 |
<delete file="./harvest-list-editor-${release}.tar.gz" /> |
|
424 |
<tar tarfile="./harvest-list-editor-${release}.tar" basedir="${ver.dir.hle}" /> |
|
425 |
<gzip zipfile="./harvest-list-editor-${release}.tar.gz" |
|
426 |
src="./harvest-list-editor-${release}.tar"/> |
|
427 |
<delete file="./harvest-list-editor-${release}.tar" /> |
|
428 |
</target> |
|
429 |
|
|
430 |
<target name="geteml" depends="getemlpre2,geteml2+,getConversionXSL" if="eml.required" |
|
431 |
description="Calls getemlpre2 and geteml2+ targets" /> |
|
445 |
<target name="harvester" depends="client" |
|
446 |
description="Compiles harvester java code to build dir"> |
|
447 |
<javac srcdir="${build.src}" destdir="${build.dest}" |
|
448 |
includes="edu/ucsb/nceas/metacat/harvesterClient/*"> |
|
449 |
<classpath> |
|
450 |
<path refid="compile.classpath" /> |
|
451 |
</classpath> |
|
452 |
</javac> |
|
453 |
</target> |
|
432 | 454 |
|
433 |
<target name="getemlpre2" depends="prepare" if="eml.required" |
|
434 |
description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox"> |
|
435 |
<echo>Enter CVS password: </echo> |
|
436 |
<cvs cvsRoot="${cvsroot}" |
|
437 |
package="${eml-module}" |
|
438 |
tag="${eml-beta-tag}" |
|
439 |
dest="${build.tmp}/eml_${eml-beta-tag}" /> |
|
440 |
<mkdir dir="lib/dtd" /> |
|
441 |
<copy todir="lib/dtd" filtering="yes"> |
|
442 |
<fileset dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}"> |
|
443 |
<include name="*.dtd"/> |
|
444 |
</fileset> |
|
445 |
<mapper type="glob" from="eml-*.dtd" to="eml-*-${eml-version}.dtd" /> |
|
446 |
</copy> |
|
455 |
<target name="harvesterjar" depends="harvester" |
|
456 |
description="Compiles and jars harvester java code to harvester.jar in build dir"> |
|
457 |
<delete file="${build.dir}/harvester.jar" /> |
|
458 |
<jar jarfile="${build.dir}/harvester.jar" |
|
459 |
basedir="${build.dest}" includes="**/metacat/harvesterClient/" /> |
|
460 |
</target> |
|
447 | 461 |
|
448 |
<copy todir="${style-common-cvsrelpath}" filtering="yes"> |
|
449 |
<fileset dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}/style"> |
|
450 |
<include name="**/*.xsl"/> |
|
451 |
</fileset> |
|
452 |
</copy> |
|
453 |
</target> |
|
462 |
<target name="harvestListEditorDist" depends="harvesterjar" |
|
463 |
description="Prepares a distribution of the Harvest List Editor tool"> |
|
464 |
<mkdir dir="${dist.dir.hle}" /> |
|
465 |
<delete dir="${ver.dir.hle}" /> |
|
466 |
<mkdir dir="${ver.dir.hle}" /> |
|
467 |
<copy todir="${ver.dir.hle}" file="${build.dir}/harvester.jar" /> |
|
468 |
<copy todir="${ver.dir.hle}" file="lib/xercesImpl.jar" /> |
|
469 |
<copy todir="${ver.dir.hle}" |
|
470 |
file="lib/harvester/harvestList.xsd" /> |
|
471 |
<copy todir="${ver.dir.hle}" |
|
472 |
file="lib/harvester/harvestListEditor.bat" /> |
|
473 |
<copy todir="${ver.dir.hle}" |
|
474 |
file="lib/harvester/harvestListEditor.sh" /> |
|
475 |
<delete file="./harvest-list-editor-${release}.zip" /> |
|
476 |
<zip zipfile="./harvest-list-editor-${release}.zip" |
|
477 |
basedir="${ver.dir.hle}" /> |
|
478 |
<delete file="./harvest-list-editor-${release}.tar.gz" /> |
|
479 |
<tar tarfile="./harvest-list-editor-${release}.tar" |
|
480 |
basedir="${ver.dir.hle}" /> |
|
481 |
<gzip zipfile="./harvest-list-editor-${release}.tar.gz" |
|
482 |
src="./harvest-list-editor-${release}.tar" /> |
|
483 |
<delete file="./harvest-list-editor-${release}.tar" /> |
|
484 |
</target> |
|
454 | 485 |
|
455 |
<target name="geteml2+" depends="prepare" if="eml.required" |
|
456 |
description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox"> |
|
457 |
<echo>Enter CVS password: </echo> |
|
458 |
<cvs cvsRoot="${cvsroot}" |
|
459 |
package="${eml-module}" |
|
460 |
tag="${eml2_0_0-schema-tag}" |
|
461 |
dest="${build.tmp}/eml_${eml2_0_0-schema-tag}" /> |
|
462 |
<mkdir dir="lib/schema/eml-2.0.0" /> |
|
463 |
<copy todir="lib/schema/eml-2.0.0" filtering="yes"> |
|
464 |
<fileset dir="${build.tmp}/eml_${eml2_0_0-schema-tag}/${eml-module}"> |
|
465 |
<include name="*.xsd"/> |
|
466 |
</fileset> |
|
486 |
<target name="geteml" depends="getemlpre2,geteml2+,getConversionXSL" |
|
487 |
if="eml.required" description="Calls getemlpre2 and geteml2+ targets" /> |
|
467 | 488 |
|
468 |
<!-- shouldn't we have a mapper here like this?? |
|
469 |
<mapper type="glob" from="eml-*.xsd" to="eml-*-${eml-version}.xsd" /> |
|
489 |
<target name="getemlpre2" depends="prepare" if="eml.required" |
|
490 |
description="Checks EML-beta6 out of cvs and copies dtds and xsl to your metacat cvs sandbox"> |
|
491 |
<echo>Enter CVS password:</echo> |
|
492 |
<cvs cvsRoot="${cvsroot}" package="${eml-module}" |
|
493 |
tag="${eml-beta-tag}" dest="${build.tmp}/eml_${eml-beta-tag}" /> |
|
494 |
<mkdir dir="lib/dtd" /> |
|
495 |
<copy todir="lib/dtd" filtering="yes"> |
|
496 |
<fileset |
|
497 |
dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}"> |
|
498 |
<include name="*.dtd" /> |
|
499 |
</fileset> |
|
500 |
<mapper type="glob" from="eml-*.dtd" |
|
501 |
to="eml-*-${eml-version}.dtd" /> |
|
502 |
</copy> |
|
470 | 503 |
|
471 |
Jing's code didn't nave one - does it need to be added? |
|
472 |
NOTE that eml-version is set to beta 6, so this would need changing --> |
|
504 |
<copy todir="${style-common-cvsrelpath}" filtering="yes"> |
|
505 |
<fileset |
|
506 |
dir="${build.tmp}/eml_${eml-beta-tag}/${eml-module}/style"> |
|
507 |
<include name="**/*.xsl" /> |
|
508 |
</fileset> |
|
509 |
</copy> |
|
510 |
</target> |
|
473 | 511 |
|
474 |
</copy> |
|
475 |
<!-- <antcall target="copyxsl"> |
|
476 |
<param name="cvs.tagname" value="${eml2_0_0-schema-tag}" /> |
|
477 |
<param name="dirname" value="eml-2.0.0" /> |
|
478 |
</antcall> --> |
|
479 |
|
|
480 |
<!-- Checkout eml201 for given schema tag--> |
|
481 |
<echo>Enter CVS password: </echo> |
|
482 |
<cvs cvsRoot="${cvsroot}" |
|
483 |
package="${eml-module}" |
|
484 |
tag="${eml2_0_1-schema-tag}" |
|
485 |
dest="${build.tmp}/eml_${eml2_0_1-schema-tag}" /> |
|
486 |
<mkdir dir="lib/schema/eml-2.0.1" /> |
|
487 |
<copy todir="lib/schema/eml-2.0.1" filtering="yes"> |
|
488 |
<fileset dir="${build.tmp}/eml_${eml2_0_1-schema-tag}/${eml-module}"> |
|
489 |
<include name="*.xsd"/> |
|
490 |
</fileset> |
|
491 |
</copy> |
|
492 |
|
|
493 |
<!-- Checkout eml201 again for given style sheet tag--> |
|
494 |
<!-- echo>Enter CVS password: </echo> |
|
495 |
<cvs cvsRoot="${cvsroot}" |
|
496 |
package="${eml-module}" |
|
497 |
tag="${eml2_0_1-style-tag}" |
|
498 |
dest="${build.tmp}/eml_${eml2_0_1-style-tag}" /> |
|
499 |
<antcall target="copyxsl"> |
|
500 |
<param name="cvs.tagname" value="${eml2_0_1-style-tag}" /> |
|
501 |
<param name="dirname" value="eml-2.0.1" /> |
|
502 |
</antcall --> |
|
503 |
|
|
504 |
<!-- Checkout eml210 for given schema tag--> |
|
505 |
<echo>Enter CVS password: </echo> |
|
506 |
<cvs cvsRoot="${cvsroot}" |
|
507 |
package="${eml-module}" |
|
508 |
tag="${eml2_1_0-schema-tag}" |
|
509 |
dest="${build.tmp}/eml_${eml2_1_0-schema-tag}" /> |
|
510 |
<mkdir dir="lib/schema/eml-2.1.0" /> |
|
511 |
<copy todir="lib/schema/eml-2.1.0" filtering="yes"> |
|
512 |
<fileset dir="${build.tmp}/eml_${eml2_1_0-schema-tag}/${eml-module}"> |
|
513 |
<include name="*.xsd"/> |
|
514 |
</fileset> |
|
515 |
</copy> |
|
516 |
|
|
517 |
<!-- Checkout eml210 for given style sheet tag--> |
|
518 |
<echo>Enter CVS password: </echo> |
|
519 |
<cvs cvsRoot="${cvsroot}" |
|
520 |
package="${eml-module}" |
|
521 |
tag="${eml2-style-tag}" |
|
522 |
dest="${build.tmp}/eml_${eml2-style-tag}" /> |
|
523 |
<antcall target="copyxsl"> |
|
524 |
<param name="cvs.tagname" value="${eml2-style-tag}" /> |
|
525 |
<!-- param name="dirname" value="eml-2.1.0" / --> |
|
526 |
<param name="dirname" value="eml-2" /> |
|
527 |
</antcall> |
|
528 |
</target> |
|
512 |
<target name="geteml2+" depends="prepare" if="eml.required" |
|
513 |
description="Checks eml-2 out of cvs and copies schema and xsl to your metacat cvs sandbox"> |
|
514 |
<echo>Enter CVS password:</echo> |
|
515 |
<cvs cvsRoot="${cvsroot}" package="${eml-module}" |
|
516 |
tag="${eml2_0_0-schema-tag}" |
|
517 |
dest="${build.tmp}/eml_${eml2_0_0-schema-tag}" /> |
|
518 |
<mkdir dir="lib/schema/eml-2.0.0" /> |
|
519 |
<copy todir="lib/schema/eml-2.0.0" filtering="yes"> |
|
520 |
<fileset |
|
521 |
dir="${build.tmp}/eml_${eml2_0_0-schema-tag}/${eml-module}"> |
|
522 |
<include name="*.xsd" /> |
|
523 |
</fileset> |
|
529 | 524 |
|
530 |
<target name="copyxsl" |
|
531 |
description="Copies xsl stylesheets from checkout in build/tmp to your metacat cvs sandbox"> |
|
525 |
<!-- shouldn't we have a mapper here like this?? |
|
526 |
<mapper type="glob" from="eml-*.xsd" to="eml-*-${eml-version}.xsd" /> |
|
527 |
|
|
528 |
Jing's code didn't nave one - does it need to be added? |
|
529 |
NOTE that eml-version is set to beta 6, so this would need changing --> |
|
532 | 530 |
|
533 |
<delete file="${style-common-cvsrelpath}/${eml-css}"/> |
|
531 |
</copy> |
|
532 |
<!-- <antcall target="copyxsl"> |
|
533 |
<param name="cvs.tagname" value="${eml2_0_0-schema-tag}" /> |
|
534 |
<param name="dirname" value="eml-2.0.0" /> |
|
535 |
</antcall> --> |
|
534 | 536 |
|
535 |
<copy todir="${style-common-cvsrelpath}/${dirname}" filtering="yes"> |
|
536 |
<fileset dir="${build.tmp}/eml_${cvs.tagname}/${eml-module}/style/eml"> |
|
537 |
<include name="**/*.xsl"/> |
|
538 |
</fileset> |
|
539 |
</copy> |
|
537 |
<!-- Checkout eml201 for given schema tag--> |
|
538 |
<echo>Enter CVS password:</echo> |
|
539 |
<cvs cvsRoot="${cvsroot}" package="${eml-module}" |
|
540 |
tag="${eml2_0_1-schema-tag}" |
|
541 |
dest="${build.tmp}/eml_${eml2_0_1-schema-tag}" /> |
|
542 |
<mkdir dir="lib/schema/eml-2.0.1" /> |
|
543 |
<copy todir="lib/schema/eml-2.0.1" filtering="yes"> |
|
544 |
<fileset |
|
545 |
dir="${build.tmp}/eml_${eml2_0_1-schema-tag}/${eml-module}"> |
|
546 |
<include name="*.xsd" /> |
|
547 |
</fileset> |
|
548 |
</copy> |
|
540 | 549 |
|
550 |
<!-- Checkout eml201 again for given style sheet tag--> |
|
551 |
<!-- echo>Enter CVS password: </echo> |
|
552 |
<cvs cvsRoot="${cvsroot}" |
|
553 |
package="${eml-module}" |
|
554 |
tag="${eml2_0_1-style-tag}" |
|
555 |
dest="${build.tmp}/eml_${eml2_0_1-style-tag}" /> |
|
556 |
<antcall target="copyxsl"> |
|
557 |
<param name="cvs.tagname" value="${eml2_0_1-style-tag}" /> |
|
558 |
<param name="dirname" value="eml-2.0.1" /> |
|
559 |
</antcall --> |
|
541 | 560 |
|
542 |
<!-- now copy default css from eml module and put it in style-common-path |
|
543 |
dir with a new name, so other skin-specific css can import it if reqd --> |
|
544 |
<copy file="${build.tmp}/eml_${cvs.tagname}/${eml-module}/${eml-module.default.css}" |
|
545 |
tofile="${style-common-cvsrelpath}/${eml-css}" /> |
|
561 |
<!-- Checkout eml210 for given schema tag--> |
|
562 |
<echo>Enter CVS password:</echo> |
|
563 |
<cvs cvsRoot="${cvsroot}" package="${eml-module}" |
|
564 |
tag="${eml2_1_0-schema-tag}" |
|
565 |
dest="${build.tmp}/eml_${eml2_1_0-schema-tag}" /> |
|
566 |
<mkdir dir="lib/schema/eml-2.1.0" /> |
|
567 |
<copy todir="lib/schema/eml-2.1.0" filtering="yes"> |
|
568 |
<fileset |
|
569 |
dir="${build.tmp}/eml_${eml2_1_0-schema-tag}/${eml-module}"> |
|
570 |
<include name="*.xsd" /> |
|
571 |
</fileset> |
|
572 |
</copy> |
|
546 | 573 |
|
547 |
</target> |
|
548 |
|
|
549 |
<target name="correctEML201Docs" depends="jar" |
|
550 |
description="Uses the ant task to run a JAVA patch class to correct invalide eml201 documents which were generated by wrong schema"> |
|
551 |
<copy todir="${build.dir}" file="lib/metacat.properties" filtering="yes"/> |
|
552 |
<java classname="edu.ucsb.nceas.metacat.EML201DocumentCorrector" > |
|
553 |
<classpath> |
|
554 |
<path refid="compile.classpath"/> |
|
555 |
<fileset dir="${build.dir}"> |
|
556 |
<include name="${name}.jar"/> |
|
557 |
</fileset> |
|
558 |
</classpath> |
|
559 |
</java> |
|
560 |
</target> |
|
574 |
<!-- Checkout eml210 for given style sheet tag--> |
|
575 |
<echo>Enter CVS password:</echo> |
|
576 |
<cvs cvsRoot="${cvsroot}" package="${eml-module}" |
|
577 |
tag="${eml2-style-tag}" dest="${build.tmp}/eml_${eml2-style-tag}" /> |
|
578 |
<antcall target="copyxsl"> |
|
579 |
<param name="cvs.tagname" value="${eml2-style-tag}" /> |
|
580 |
<!-- param name="dirname" value="eml-2.1.0" / --> |
|
581 |
<param name="dirname" value="eml-2" /> |
|
582 |
</antcall> |
|
583 |
</target> |
|
561 | 584 |
|
562 |
<target name="install-spatial" depends="jar,clientjar,harvesterjar"
|
|
563 |
description="Installs spatial option for metacat">
|
|
585 |
<target name="copyxsl"
|
|
586 |
description="Copies xsl stylesheets from checkout in build/tmp to your metacat cvs sandbox">
|
|
564 | 587 |
|
565 |
<property name="spatial.dir" value="./lib/spatial"/> |
|
566 |
<property name="spatial.geoserver.dir" value="${spatial.dir}/geoserver"/> |
|
567 |
<property name="spatial.webinf-mods" value="${spatial.dir}/WEB-INF"/> |
|
588 |
<delete file="${style-common-cvsrelpath}/${eml-css}" /> |
|
568 | 589 |
|
569 |
<!-- Copy geoserver libs into ${war.lib} --> |
|
570 |
<copy todir="${war.lib}" filtering="no"> |
|
571 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF/lib"> |
|
572 |
<include name="**"/> |
|
573 |
</fileset> |
|
574 |
</copy> |
|
590 |
<copy todir="${style-common-cvsrelpath}/${dirname}" |
|
591 |
filtering="yes"> |
|
592 |
<fileset |
|
593 |
dir="${build.tmp}/eml_${cvs.tagname}/${eml-module}/style/eml"> |
|
594 |
<include name="**/*.xsl" /> |
|
595 |
</fileset> |
|
596 |
</copy> |
|
575 | 597 |
|
576 |
<!-- Copy everything in geoservers WEB-INF (except the libs) into ${war.webinf} --> |
|
577 |
<copy todir="${war.webinf}" filtering="no"> |
|
578 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF"> |
|
579 |
<exclude name="lib/**"/> |
|
580 |
<exclude name="web.xml"/> |
|
581 |
</fileset> |
|
582 |
</copy> |
|
583 | 598 |
|
584 |
<!-- Copy the rest of the geoserver codebase into ${war.context} --> |
|
585 |
<copy todir="${war.context}" filtering="no"> |
|
586 |
<fileset dir="${spatial.geoserver.dir}"> |
|
587 |
<exclude name="WEB-INF/**"/> |
|
588 |
<exclude name="index.jsp"/> |
|
589 |
</fileset> |
|
590 |
</copy> |
|
599 |
<!-- now copy default css from eml module and put it in style-common-path |
|
600 |
dir with a new name, so other skin-specific css can import it if reqd --> |
|
601 |
<copy |
|
602 |
file="${build.tmp}/eml_${cvs.tagname}/${eml-module}/${eml-module.default.css}" |
|
603 |
tofile="${style-common-cvsrelpath}/${eml-css}" /> |
|
591 | 604 |
|
592 |
<!-- Copy the geoserver index.jsp but rename it to avoid conflicting w/metcat --> |
|
593 |
<copy file="${spatial.geoserver.dir}/WEB-INF/pages/index.jsp" |
|
594 |
tofile="${war.context}/geoserver.jsp" |
|
595 |
overwrite="true" |
|
596 |
filtering="no"/> |
|
605 |
</target> |
|
597 | 606 |
|
598 |
<!-- Copy the rest of the modified geoserver web-inf files |
|
599 |
<copy todir="${war.webinf}" filtering="no"> |
|
600 |
<fileset dir="${spatial.webinf-mods}"> |
|
601 |
<exclude name="web.xml.combined"/> |
|
602 |
</fileset> |
|
603 |
</copy> --> |
|
607 |
<target name="correctEML201Docs" depends="jar" |
|
608 |
description="Uses the ant task to run a JAVA patch class to correct invalide eml201 documents which were generated by wrong schema"> |
|
609 |
<copy todir="${build.dir}" file="lib/metacat.properties" |
|
610 |
filtering="yes" /> |
|
611 |
<java |
|
612 |
classname="edu.ucsb.nceas.metacat.EML201DocumentCorrector"> |
|
613 |
<classpath> |
|
614 |
<path refid="compile.classpath" /> |
|
615 |
<fileset dir="${build.dir}"> |
|
616 |
<include name="${name}.jar" /> |
|
617 |
</fileset> |
|
618 |
</classpath> |
|
619 |
</java> |
|
620 |
</target> |
|
604 | 621 |
|
605 |
</target> |
|
622 |
<target name="install-spatial" depends="jar,clientjar,harvesterjar" |
|
623 |
description="Installs spatial option for metacat"> |
|
606 | 624 |
|
607 |
<target name="install" depends="build-metacat" description="* Full Install For Development *"> |
|
608 |
<copy file="${dist.dir}/${metacat.context}.war" todir="${app.deploy.dir}"/> |
|
609 |
<delete dir="${app.deploy.dir}/${metacat.context}" /> |
|
610 |
<tstamp> |
|
611 |
<format property="NOW" pattern="MM/dd/yyyy hh:mm:ss aa"/> |
|
612 |
</tstamp> |
|
613 |
<echo>Dev install completed at ${NOW}</echo> |
|
614 |
</target> |
|
625 |
<property name="spatial.dir" value="./lib/spatial" /> |
|
626 |
<property name="spatial.geoserver.dir" |
|
627 |
value="${spatial.dir}/geoserver" /> |
|
628 |
<property name="spatial.webinf-mods" |
|
629 |
value="${spatial.dir}/WEB-INF" /> |
|
615 | 630 |
|
616 |
<target name="build-metacat" depends="install-ecogrid" |
|
617 |
description="Build Metacat"> |
|
618 |
</target> |
|
619 |
|
|
620 |
<target name="install-ecogrid" depends="warPrepare, get-ecogrid" if="enable.ecogrid" |
|
621 |
description="Install Ecogrid Compentent"> |
|
622 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="clean" inheritall="false"> |
|
623 |
<property name="context" value="${metacat.context}"/> |
|
624 |
<property name="target" value="${ecogrid-target-name}"/> |
|
625 |
<!-- property name="metacat.dir" value="."/ --> |
|
626 |
</ant> |
|
627 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="war" inheritall="false"> |
|
628 |
<property name="context" value="${metacat.context}"/> |
|
629 |
<property name="target" value="${ecogrid-target-name}"/> |
|
630 |
<!-- property name="metacat.dir" value="."/ --> |
|
631 |
</ant> |
|
632 |
<!-- war destfile="${ecogrid-dir}/build/${metacat.context}.war" update="true"> |
|
633 |
<webinf dir="${ecogrid-dir}/lib"> |
|
634 |
<include name="server-config.wsdd"/> |
|
635 |
</webinf> |
|
636 |
</war --> |
|
637 |
<copy file="${ecogrid-dir}/build/${metacat.context}.war" todir="${dist.dir}" overwrite="true"/> |
|
638 |
|
|
639 |
|
|
640 |
</target> |
|
641 |
|
|
642 |
<target name="get-ecogrid" depends="init" description="Check out ecogrid module" if="ecogrid.required"> |
|
643 |
<svn> |
|
644 |
<export srcUrl="${svn.ecogridUrl}" destPath="${ecogrid-dir}" /> |
|
645 |
</svn> |
|
646 |
</target> |
|
647 |
|
|
648 |
<!-- target name="deploy-ecogrid" depends="clean-ecogrid-server-config-wsdd" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service"> |
|
649 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="deploy" inheritall="false"> |
|
650 |
<property name="context" value="${metacat.context}"/> |
|
651 |
<property name="target" value="${ecogrid-target-name}"/> |
|
652 |
<property name="metacat.dir" value="."/> |
|
653 |
<property name="hostname" value="${ecogrid.hostname}"/> |
|
654 |
<property name="port" value="${config.port}"/> |
|
655 |
</ant> |
|
656 |
</target --> |
|
657 |
|
|
658 |
<target name="clean-ecogrid-server-config-wsdd" depends="init" description="Automately generate wsdd for ecogrid service"> |
|
659 |
<delete file="${app.deploy.dir}/${metacat.context}/WEB-INF/server-config.wsdd"/> |
|
660 |
</target> |
|
631 |
<!-- Copy geoserver libs into ${war.lib} --> |
|
632 |
<copy todir="${war.lib}" filtering="no"> |
|
633 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF/lib"> |
|
634 |
<include name="**" /> |
|
635 |
</fileset> |
|
636 |
</copy> |
|
661 | 637 |
|
662 |
<!-- target name="install-registry" depends="init,getConversionXSL" |
|
663 |
description="Install Registry"> |
|
638 |
<!-- Copy everything in geoservers WEB-INF (except the libs) into ${war.webinf} --> |
|
639 |
<copy todir="${war.webinf}" filtering="no"> |
|
640 |
<fileset dir="${spatial.geoserver.dir}/WEB-INF"> |
|
641 |
<exclude name="lib/**" /> |
|
642 |
<exclude name="web.xml" /> |
|
643 |
</fileset> |
|
644 |
</copy> |
|
664 | 645 |
|
665 |
<mkdir dir="${inst.cgi.dir}" /> |
|
666 |
<copy file="${srcdir}/perl/register-dataset.cgi" |
|
667 |
todir="${inst.cgi.dir}"/> |
|
668 |
<chmod file="${inst.cgi.dir}/register-dataset.cgi" perm="ugo+x" /> |
|
646 |
<!-- Copy the rest of the geoserver codebase into ${war.context} --> |
|
647 |
<copy todir="${war.context}" filtering="no"> |
|
648 |
<fileset dir="${spatial.geoserver.dir}"> |
|
649 |
<exclude name="WEB-INF/**" /> |
|
650 |
<exclude name="index.jsp" /> |
|
651 |
</fileset> |
|
652 |
</copy> |
|
669 | 653 |
|
670 |
<! - - TODO SCW: set the permissions on this folder to be writable by the apache user - - > |
|
671 |
<mkdir dir="${temp-dir}" /> |
|
672 |
<! - - TODO SCW: use relative paths to grab these instead of copying to tmp, |
|
673 |
used in readDocumentFromMetacat - - > |
|
674 |
<copy todir="${temp-dir}" filtering="yes"> |
|
675 |
<fileset dir="lib/style/common/emlb6toeml2"> |
|
676 |
<include name="*.xsl"/> |
|
677 |
<include name="*.xml"/> |
|
678 |
</fileset> |
|
679 |
</copy> |
|
654 |
<!-- Copy the geoserver index.jsp but rename it to avoid conflicting w/metcat --> |
|
655 |
<copy file="${spatial.geoserver.dir}/WEB-INF/pages/index.jsp" |
|
656 |
tofile="${war.context}/geoserver.jsp" overwrite="true" |
|
657 |
filtering="no" /> |
|
680 | 658 |
|
681 |
<echo message="Install Registry completed." /> |
|
682 |
</target --> |
|
659 |
<!-- Copy the rest of the modified geoserver web-inf files |
|
660 |
<copy todir="${war.webinf}" filtering="no"> |
|
661 |
<fileset dir="${spatial.webinf-mods}"> |
|
662 |
<exclude name="web.xml.combined"/> |
|
663 |
</fileset> |
|
664 |
</copy> --> |
|
683 | 665 |
|
684 |
<!-- target name="install-ldap" depends="init" |
|
685 |
description="Install Metacat LDAP Access"> |
|
666 |
</target> |
|
686 | 667 |
|
687 |
<mkdir dir="${inst.cgi.dir}" /> |
|
688 |
<copy file="${srcdir}/perl/ldapweb.cgi" |
|
689 |
todir="${inst.cgi.dir}" /> |
|
690 |
<chmod file="${inst.cgi.dir}/ldapweb.cgi" perm="ugo+x" /> |
|
691 |
<mkdir dir="${templates.dir}" /> |
|
692 |
<copy todir="${templates.dir}"> |
|
693 |
<fileset dir="lib/style/common/templates"> |
|
694 |
< ! - - SCW: Copy all files - - > |
|
695 |
</fileset> |
|
696 |
</copy> |
|
697 |
<echo message="ldapweb install complete." /> |
|
698 |
</target --> |
|
668 |
<target name="install" depends="build-metacat" |
|
669 |
description="* Full Install For Development *"> |
|
670 |
<copy file="${dist.dir}/${metacat.context}.war" |
|
671 |
todir="${app.deploy.dir}" /> |
|
672 |
<delete dir="${app.deploy.dir}/${metacat.context}" /> |
|
673 |
<tstamp> |
|
674 |
<format property="NOW" pattern="MM/dd/yyyy hh:mm:ss aa" /> |
|
675 |
</tstamp> |
|
676 |
<echo>Dev install completed at ${NOW}</echo> |
|
677 |
</target> |
|
699 | 678 |
|
679 |
<target name="build-metacat" depends="install-ecogrid" |
|
680 |
description="Build Metacat"> |
|
681 |
</target> |
|
700 | 682 |
|
701 |
<target name="install-skin" depends="init" |
|
702 |
description="Install a Skin"> |
|
683 |
<target name="install-ecogrid" depends="warPrepare, get-ecogrid" |
|
684 |
if="enable.ecogrid" description="Install Ecogrid Compentent"> |
|
685 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target="clean" |
|
686 |
inheritall="false"> |
|
687 |
<property name="context" value="${metacat.context}" /> |
|
688 |
<property name="target" value="${ecogrid-target-name}" /> |
|
689 |
<!-- property name="metacat.dir" value="."/ --> |
|
690 |
</ant> |
|
691 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target="war" |
|
692 |
inheritall="false"> |
|
693 |
<property name="context" value="${metacat.context}" /> |
|
694 |
<property name="target" value="${ecogrid-target-name}" /> |
|
695 |
<!-- property name="metacat.dir" value="."/ --> |
|
696 |
</ant> |
|
697 |
<!-- war destfile="${ecogrid-dir}/build/${metacat.context}.war" update="true"> |
|
698 |
<webinf dir="${ecogrid-dir}/lib"> |
|
699 |
<include name="server-config.wsdd"/> |
|
700 |
</webinf> |
|
701 |
</war --> |
|
702 |
<copy file="${ecogrid-dir}/build/${metacat.context}.war" |
|
703 |
todir="${dist.dir}" overwrite="true" /> |
|
703 | 704 |
|
704 |
<input message="Please enter name of the skin" |
|
705 |
addproperty="skin-name"/> |
|
706 | 705 |
|
707 |
<mkdir dir="${installdir}/style/skins/${skin-name}" /> |
|
708 |
<copy todir="${installdir}/style/skins/${skin-name}" filtering="yes"> |
|
709 |
<fileset dir="lib/style/skins/${skin-name}"> |
|
710 |
<exclude name="**/*.png"/> |
|
711 |
<exclude name="**/*.gif"/> |
|
712 |
<exclude name="**/*.jpg"/> |
|
713 |
<exclude name="**/CVS*"/> |
|
714 |
<exclude name="**/.#*"/> |
|
715 |
</fileset> |
|
716 |
</copy> |
|
717 |
<copy todir="${installdir}/style/skins/${skin-name}" filtering="no"> |
|
718 |
<fileset dir="lib/style/skins/${skin-name}"> |
|
719 |
<include name="**/*.png"/> |
|
720 |
<include name="**/*.gif"/> |
|
721 |
<include name="**/*.jpg"/> |
|
722 |
<exclude name="**/CVS*"/> |
|
723 |
<exclude name="**/.#*"/> |
|
724 |
</fileset> |
|
725 |
</copy> |
|
726 |
<copy todir="${installdir}/style/common" filtering="yes"> |
|
727 |
<fileset dir="lib/style/common"> |
|
728 |
<include name="*.js"/> |
|
729 |
<include name="*.jsp"/> |
|
730 |
<include name="*.css"/> |
|
731 |
<exclude name="*.png"/> |
|
732 |
<exclude name="*.gif"/> |
|
733 |
<exclude name="*.jpg"/> |
|
734 |
<exclude name="**/CVS*"/> |
|
735 |
<exclude name="**/.#*"/> |
|
736 |
</fileset> |
|
737 |
</copy> |
|
738 |
<!-- |
|
739 |
<mkdir dir="${installdir}/style/skins/${skin-name}/images" /> |
|
740 |
<copy todir="${installdir}/style/skins/${skin-name}/images" filtering="no"> |
|
741 |
<fileset dir="lib/style/skins/${skin-name}/images"> |
|
742 |
<include name="*.png"/> |
|
743 |
<include name="*.gif"/> |
|
744 |
<include name="*.jpg"/> |
|
745 |
</fileset> |
|
746 |
</copy> |
|
747 |
--> |
|
706 |
</target> |
|
748 | 707 |
|
749 |
<echo message="Install Skin completed." /> |
|
750 |
</target> |
|
708 |
<target name="get-ecogrid" depends="init" |
|
709 |
description="Check out ecogrid module" if="ecogrid.required"> |
|
710 |
<svn> |
|
711 |
<export srcUrl="${svn.ecogridUrl}" |
|
712 |
destPath="${ecogrid-dir}" /> |
|
713 |
</svn> |
|
714 |
</target> |
|
751 | 715 |
|
752 |
<target name="war" depends="warPrepare,install-spatial" |
|
753 |
description="Create a web archive (WAR) for servlet deployment"> |
|
754 |
<mkdir dir="${dist.dir}" /> |
|
755 |
<war destfile="${dist.dir}/${metacat.context}.war" |
|
756 |
webxml="${build.war}/web.xml"> |
|
757 |
<fileset dir="${war.context}"/> |
|
758 |
<lib dir="${war.lib}"/> |
|
759 |
<webinf dir="${war.webinf}"/> |
|
760 |
</war> |
|
761 |
</target> |
|
762 |
|
|
763 |
<target name="warPrepare" depends="cgiPrepare,jar,clientjar,harvesterjar,testPrepare" |
|
764 |
description="Prepare files for creating a web archive (WAR)"> |
|
716 |
<!-- target name="deploy-ecogrid" depends="clean-ecogrid-server-config-wsdd" if="enable.ecogrid" description="Automately generate wsdd for ecogrid service"> |
|
717 |
<ant antfile="build.xml" dir="${ecogrid-dir}" target ="deploy" inheritall="false"> |
|
718 |
<property name="context" value="${metacat.context}"/> |
|
719 |
<property name="target" value="${ecogrid-target-name}"/> |
|
720 |
<property name="metacat.dir" value="."/> |
|
721 |
<property name="hostname" value="${ecogrid.hostname}"/> |
|
722 |
<property name="port" value="${config.port}"/> |
|
723 |
</ant> |
|
724 |
</target --> |
|
765 | 725 |
|
766 |
<property name="war.lib" value="${build.war}/lib" /> |
|
767 |
<property name="war.webinf" value="${build.war}/WEB-INF" /> |
|
768 |
<property name="war.context" value="${build.war}/${metacat.context}" /> |
|
769 |
<property name="war.webinf.sql" value="${war.webinf}/sql" /> |
|
770 |
<property name="war.webinf.scripts" value="${war.webinf}/scripts" /> |
|
771 |
<property name="war.context.cgi" value="${war.context}/cgi-bin" /> |
|
772 |
<property name="war.context.docs" value="${war.context}/docs" /> |
|
773 |
<property name="war.context.temp" value="${war.context}/temp" /> |
|
774 |
<property name="war.context.templates" value="${war.context}${style-common-relpath}/templates" /> |
|
775 |
<mkdir dir="${war.lib}" /> |
|
776 |
<mkdir dir="${war.webinf}" /> |
|
777 |
<mkdir dir="${war.context}" /> |
|
778 |
<mkdir dir="${war.webinf.sql}" /> |
|
779 |
<mkdir dir="${war.context.cgi}" /> |
|
780 |
<mkdir dir="${war.context.docs}" /> |
|
781 |
<mkdir dir="${war.context.temp}" /> |
|
782 |
<mkdir dir="${war.context.templates}" /> |
|
783 |
|
|
784 |
<!--copy file="${lib.dir}/${jdbc.lib.postgres}" todir="${war.lib}" / --> |
|
785 |
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver1}" todir="${war.lib}" / --> |
|
786 |
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver2}" todir="${war.lib}" / --> |
|
787 |
<!--copy file="${lib.dir}/${jdbc.lib.sqlserver3}" todir="${war.lib}" / --> |
|
788 |
<copy file="${build.dir}/${name}.jar" todir="${war.lib}" /> |
|
789 |
<copy file="${build.dir}/${name}-client.jar" todir="${war.lib}" /> |
|
790 |
<copy file="${build.dir}/harvester.jar" todir="${war.lib}" /> |
|
791 |
<copy todir="${war.lib}" filtering="no"> |
|
792 |
<fileset dir="lib"> |
|
793 |
<!-- |
|
794 |
<not> |
|
795 |
<filename name="${jdbc-jar-name}"/> |
|
796 |
</not> |
|
797 |
--> |
|
798 |
<include name="*.jar"/> |
|
799 |
</fileset> |
|
800 |
<fileset dir="lib"> |
|
801 |
<include name="xalan.jar"/> |
|
802 |
<include name="gwt*.jar"/> |
|
803 |
</fileset> |
|
804 |
<fileset dir="lib/oaipmh"> |
|
805 |
<include name="oaicat.jar"/> |
|
806 |
</fileset> |
|
807 |
</copy> |
|
808 |
<!-- MCD copy file="lib/web.xml.${tomcatversion}" |
|
809 |
tofile="${build.war}/web.xml" / --> |
|
810 |
<!-- MCD added next - Remove the tomcat5 reference--> |
|
811 |
<copy file="lib/web.xml.tomcat5" |
|
812 |
tofile="${build.war}/web.xml"/> |
|
813 |
<copy file="lib/metacat.properties" todir="${war.webinf}" |
|
814 |
filtering="yes" /> |
|
815 |
<copy file="lib/metacat.properties.metadata.xml" todir="${war.webinf}" |
|
816 |
filtering="no" /> |
|
817 |
<copy file="lib/org.properties.metadata.xml" todir="${war.webinf}" |
|
818 |
filtering="no" /> |
|
819 |
<copy file="lib/auth.properties.metadata.xml" todir="${war.webinf}" |
|
820 |
filtering="no" /> |
|
821 |
<copy todir="${war.webinf}" filtering="yes"> |
|
822 |
<fileset dir="lib"> |
|
823 |
<include name="skin.configs/**"/> |
|
824 |
</fileset> |
|
825 |
</copy> |
|
826 |
<copy file="lib/log4j.properties" todir="${war.webinf}" |
|
827 |
filtering="yes" /> |
|
828 |
<copy todir="${war.context}" filtering="no"> |
|
829 |
<fileset dir="lib"> |
|
830 |
<include name="**/*.jpg"/> |
|
831 |
<include name="**/*.png"/> |
|
832 |
<include name="**/*.gif"/> |
|
833 |
<include name="LiveMap_30/**"/> |
|
834 |
<include name="oaipmh/**"/> |
|
835 |
</fileset> |
|
836 |
</copy> |
|
837 |
<copy todir="${war.context}" filtering="yes"> |
|
838 |
<fileset dir="lib"> |
|
839 |
<exclude name="*.jar"/> |
|
840 |
<exclude name="*.properties"/> |
|
841 |
<exclude name="*.metadata.xml"/> |
Also available in: Unified diff
Format file