1
|
<?xml version="1.0"?>
|
2
|
<!--
|
3
|
* build.xml
|
4
|
*
|
5
|
* Authors: Matt Jones
|
6
|
* Copyright: 2000 Regents of the University of California and the
|
7
|
* National Center for Ecological Analysis and Synthesis
|
8
|
* For Details: http://www.nceas.ucsb.edu/
|
9
|
* File Info: '$Id: build.xml 116 2000-06-01 22:58:21Z jones $'
|
10
|
*
|
11
|
* Build file for the Ant cross-platform build system for metacat
|
12
|
* See http://jakarta.apache.org for details on Ant
|
13
|
*
|
14
|
* usage: ant [compileServlet|install|jdoc]
|
15
|
-->
|
16
|
<project name="metacat" default="compileServlet" basedir=".">
|
17
|
<target name="init">
|
18
|
<property name="classesdir" value="./classes" />
|
19
|
<property name="oracle_home"
|
20
|
value="/oracle01/app/oracle/product/8.1.5" />
|
21
|
<property name="xmlp"
|
22
|
value="/home/httpd/servlets/xsql/lib/xmlparserv2.jar" />
|
23
|
<property name="jdbc"
|
24
|
value="${oracle_home}/jdbc/lib/classes111.zip" />
|
25
|
<property name="jserv"
|
26
|
value="/usr/lib/apache/ApacheJServ.jar" />
|
27
|
<property name="jsdk"
|
28
|
value="/home/httpd/classes/servlet-2.0.jar" />
|
29
|
<property name="cat"
|
30
|
value="lib/catalog.jar" />
|
31
|
<property name="cpath"
|
32
|
value="${xmlp}:${jdbc}:${jserv}:${jsdk}:${cat}" />
|
33
|
<property name="metacat.home" value="edu/ucsb/nceas/metacat" />
|
34
|
<property name="src.metacat.home" value="src/${metacat.home}" />
|
35
|
<mkdir dir="${classesdir}" />
|
36
|
</target>
|
37
|
|
38
|
<target name="compileServlet" depends="init">
|
39
|
<javac srcdir="${src.metacat.home}"
|
40
|
destdir="${classesdir}"
|
41
|
classpath="${cpath}" />
|
42
|
<copyfile src="lib/metacat.properties"
|
43
|
dest="${classesdir}/${metacat.home}/metacat.properties" />
|
44
|
</target>
|
45
|
|
46
|
<target name="install" depends="init,compileServlet">
|
47
|
<delete file="lib/metacat.jar" />
|
48
|
<jar jarfile="lib/metacat.jar" basedir="${classesdir}" />
|
49
|
<!-- copy the file here to the web install dir -->
|
50
|
</target>
|
51
|
|
52
|
<target name="clean" depends="init">
|
53
|
<delete file="lib/metacat.jar" />
|
54
|
<deltree dir="${classesdir}" />
|
55
|
</target>
|
56
|
|
57
|
<target name="jdoc" depends="init">
|
58
|
<javadoc packagenames="edu.ucsb.nceas.metacat"
|
59
|
sourcepath="src"
|
60
|
destdir="docs"
|
61
|
author="true"
|
62
|
version="true"
|
63
|
use="true"
|
64
|
windowtitle="MetaCat API"
|
65
|
doctitle="<h1>MetaCat Server</h1>"
|
66
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>"
|
67
|
/>
|
68
|
</target>
|
69
|
|
70
|
</project>
|