1
|
<?xml version="1.0"?>
|
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: berkley $'
|
10
|
* '$Date: 2001-02-05 14:21:31 -0800 (Mon, 05 Feb 2001) $'
|
11
|
* '$Revision: 693 $'
|
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
|
-->
|
32
|
<project name="metacat" default="jar" basedir=".">
|
33
|
<target name="init">
|
34
|
<property name="jdbc-connect"
|
35
|
value="jdbc:oracle:thin:@dev.nceas.ucsb.edu:1521:exp"/>
|
36
|
<property name="installdir" value="/opt/tomcat/webapps/metadata" />
|
37
|
<property name="name" value="metacat"/>
|
38
|
<property name="Name" value="MetaCat"/>
|
39
|
<property name="release" value="1.0beta1"/>
|
40
|
<property name="web-base-url"
|
41
|
value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
|
42
|
<property name="replication-path" value="/metadata/servlet/replication"/>
|
43
|
<property name="servlet-path" value="/metadata/servlet/metacat"/>
|
44
|
<property name="html-path" value="/metadata"/>
|
45
|
<property name="image-path" value="/img/metadata" />
|
46
|
<property name="server" value="dev.nceas.ucsb.edu"/>
|
47
|
<property name="replication-log" value="/home/computer/berkley/xmltodb/logs/metacatreplication.log"/>
|
48
|
<property name="dataport" value="4444"/>
|
49
|
<property name="user" value="metadata"/>
|
50
|
<property name="password" value="your-pw-goes-here"/>
|
51
|
|
52
|
<filter token="jdbc-connect" value="${jdbc-connect}"/>
|
53
|
<filter token="data-port" value="${dataport}"/>
|
54
|
<filter token="install-dir" value="${installdir}"/>
|
55
|
<filter token="server" value="${server}"/>
|
56
|
<filter token="replication-log" value="${replication-log}"/>
|
57
|
<filter token="release" value="${release}"/>
|
58
|
<filter token="servlet-path" value="${servlet-path}"/>
|
59
|
<filter token="html-path" value="${html-path}"/>
|
60
|
<filter token="user" value="${user}"/>
|
61
|
<filter token="password" value="${password}"/>
|
62
|
<filter token="image-path" value="${image-path}"/>
|
63
|
<filter token="web-base-url" value="${web-base-url}"/>
|
64
|
<filter token="replication-path" value="${replication-path}"/>
|
65
|
<property name="srcdir" value="./src" />
|
66
|
|
67
|
<property name="build.dir" value="./build"/>
|
68
|
<property name="build.src" value="${build.dir}/src"/>
|
69
|
<property name="build.dest" value="${build.dir}/classes"/>
|
70
|
<property name="build.docs" value="${build.dir}/docs"/>
|
71
|
<property name="build.samples" value="${build.dir}/samples"/>
|
72
|
<property name="build.tests" value="${build.dir}/tests"/>
|
73
|
<property name="build.data" value="${build.dir}/data"/>
|
74
|
<property name="build.javadocs" value="${build.dir}/docs/apiDocs"/>
|
75
|
<property name="build.img" value="/opt/httpd/html${image-path}"/>
|
76
|
|
77
|
<property name="oracle_home"
|
78
|
value="/oracle01/app/oracle/product/8.1.6" />
|
79
|
<property name="toolsdir"
|
80
|
value="/usr/local/devtools" />
|
81
|
<property name="xmlp"
|
82
|
value="${toolsdir}/OracleXSU111/lib/xmlparserv2.jar" />
|
83
|
<property name="xmlp2"
|
84
|
value="${toolsdir}/xerces-1_1_3/xerces.jar" />
|
85
|
<property name="jdbc"
|
86
|
value="${oracle_home}/jdbc/lib/classes111.zip" />
|
87
|
<property name="jserv"
|
88
|
value="/usr/lib/apache/ApacheJServ.jar" />
|
89
|
<property name="jsdk"
|
90
|
value="${toolsdir}/jakarta-tomcat/lib/servlet.jar" />
|
91
|
<property name="srb"
|
92
|
value="lib/srbrmi" />
|
93
|
<property name="cpath"
|
94
|
value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${srb}"/>
|
95
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
96
|
|
97
|
</target>
|
98
|
|
99
|
<target name="prepare" depends="init">
|
100
|
<mkdir dir="${build.dir}"/>
|
101
|
<mkdir dir="${build.src}"/>
|
102
|
<mkdir dir="${build.dest}"/>
|
103
|
<mkdir dir="${build.javadocs}"/>
|
104
|
|
105
|
<copydir src="${srcdir}"
|
106
|
dest="${build.src}"
|
107
|
filtering="yes"
|
108
|
includes="edu/**, com/**"
|
109
|
excludes="**/CVS* **/.#* **/*.sql"/>
|
110
|
|
111
|
</target>
|
112
|
|
113
|
<target name="compile" depends="prepare">
|
114
|
<javac srcdir="${build.src}"
|
115
|
destdir="${build.dest}"
|
116
|
classpath="${cpath}"
|
117
|
excludes="**/*.sql" />
|
118
|
<copyfile src="lib/metacat.properties"
|
119
|
dest="${build.dest}/${package.home}/metacat.properties"
|
120
|
filtering="yes" />
|
121
|
<copyfile src="lib/srbProps.properties"
|
122
|
dest="${build.dest}/${package.home}/srbProps.properties"/>
|
123
|
</target>
|
124
|
|
125
|
<target name="jar" depends="compile">
|
126
|
<delete file="${build.dir}/${name}.jar" />
|
127
|
<copydir src="lib/srbrmi" dest="${build.dest}" />
|
128
|
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
|
129
|
excludes="**/protocols/" />
|
130
|
</target>
|
131
|
|
132
|
<target name="protocol" depends="compile">
|
133
|
<delete file="${build.dir}/protocol.jar" />
|
134
|
<jar jarfile="${build.dir}/protocol.jar" basedir="${build.dest}"
|
135
|
includes="**/protocols/" />
|
136
|
</target>
|
137
|
|
138
|
<target name="install" depends="jar">
|
139
|
<mkdir dir="${installdir}/WEB-INF/lib" />
|
140
|
<copyfile src="${build.dir}/${name}.jar"
|
141
|
dest="${installdir}/WEB-INF/lib/${name}.jar" />
|
142
|
<copyfile src="${xmlp2}"
|
143
|
dest="${installdir}/WEB-INF/lib/xerces.jar" />
|
144
|
<copyfile src="${xmlp}"
|
145
|
dest="${installdir}/WEB-INF/lib/xmlparserv2.jar" />
|
146
|
<copyfile src="${jdbc}"
|
147
|
dest="${installdir}/WEB-INF/lib/oracle-jdbc111.jar" />
|
148
|
<copyfile src="lib/web.xml"
|
149
|
dest="${installdir}/WEB-INF/web.xml" />
|
150
|
<copydir src="lib"
|
151
|
dest="${build.img}"
|
152
|
includes="*.jpg,*.png,*.gif,**/marine/*.jpg, **/marine/*.png, **/marine/*.gif"/>
|
153
|
<copydir src="lib" dest="${installdir}"
|
154
|
filtering="yes"
|
155
|
excludes="*.jar,*.properties,web.xml,**/srbrmi/*" />
|
156
|
<!-- <mkdir dir="${installdir}/dtd" />
|
157
|
<copydir src="../dtd" dest="${installdir}/dtd"
|
158
|
filtering="yes"
|
159
|
includes="*.dtd" />-->
|
160
|
</target>
|
161
|
|
162
|
<target name="clean" depends="init">
|
163
|
<deltree dir="${build.dir}" />
|
164
|
</target>
|
165
|
|
166
|
<target name="jdoc" depends="prepare">
|
167
|
<javadoc packagenames="edu.ucsb.nceas.metacat"
|
168
|
sourcepath="${build.src}"
|
169
|
destdir="${build.javadocs}"
|
170
|
author="true"
|
171
|
version="true"
|
172
|
use="true"
|
173
|
windowtitle="${Name} API"
|
174
|
doctitle="<h1>${Name}</h1>"
|
175
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>"
|
176
|
/>
|
177
|
</target>
|
178
|
|
179
|
</project>
|