1 |
113
|
jones
|
<?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$'
|
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 |
204
|
jones
|
* usage: ant [compile|jar|jdoc]
|
15 |
113
|
jones
|
-->
|
16 |
204
|
jones
|
<project name="metacat" default="compile" basedir=".">
|
17 |
113
|
jones
|
<target name="init">
|
18 |
204
|
jones
|
<property name="installdir" value="/home/httpd/servlets/" />
|
19 |
254
|
jones
|
<property name="destdir" value="./classes" />
|
20 |
|
|
<property name="srcdir" value="./src" />
|
21 |
113
|
jones
|
<property name="oracle_home"
|
22 |
|
|
value="/oracle01/app/oracle/product/8.1.5" />
|
23 |
|
|
<property name="xmlp"
|
24 |
|
|
value="/home/httpd/servlets/xsql/lib/xmlparserv2.jar" />
|
25 |
185
|
jones
|
<property name="xmlp2"
|
26 |
218
|
jones
|
value="/home/httpd/servlets/xerces.jar" />
|
27 |
113
|
jones
|
<property name="jdbc"
|
28 |
|
|
value="${oracle_home}/jdbc/lib/classes111.zip" />
|
29 |
|
|
<property name="jserv"
|
30 |
|
|
value="/usr/lib/apache/ApacheJServ.jar" />
|
31 |
|
|
<property name="jsdk"
|
32 |
|
|
value="/home/httpd/classes/servlet-2.0.jar" />
|
33 |
213
|
jones
|
<property name="srb"
|
34 |
|
|
value="lib/srbrmi" />
|
35 |
113
|
jones
|
<property name="cpath"
|
36 |
255
|
jones
|
value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${srb}"/>
|
37 |
254
|
jones
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
38 |
|
|
<mkdir dir="${destdir}" />
|
39 |
113
|
jones
|
</target>
|
40 |
|
|
|
41 |
204
|
jones
|
<target name="compile" depends="init">
|
42 |
254
|
jones
|
<javac srcdir="${srcdir}"
|
43 |
|
|
destdir="${destdir}"
|
44 |
257
|
jones
|
classpath="${cpath}"
|
45 |
|
|
excludes="**/*.sql" />
|
46 |
116
|
jones
|
<copyfile src="lib/metacat.properties"
|
47 |
254
|
jones
|
dest="${destdir}/${package.home}/metacat.properties" />
|
48 |
113
|
jones
|
</target>
|
49 |
|
|
|
50 |
204
|
jones
|
<target name="jar" depends="compile">
|
51 |
116
|
jones
|
<delete file="lib/metacat.jar" />
|
52 |
254
|
jones
|
<copydir src="lib/srbrmi" dest="${destdir}" />
|
53 |
|
|
<jar jarfile="lib/metacat.jar" basedir="${destdir}" />
|
54 |
113
|
jones
|
</target>
|
55 |
|
|
|
56 |
204
|
jones
|
<target name="install" depends="jar">
|
57 |
|
|
<copyfile src="lib/metacat.jar" dest="${installdir}/metacat.jar" />
|
58 |
|
|
</target>
|
59 |
|
|
|
60 |
113
|
jones
|
<target name="clean" depends="init">
|
61 |
116
|
jones
|
<delete file="lib/metacat.jar" />
|
62 |
254
|
jones
|
<deltree dir="${destdir}" />
|
63 |
113
|
jones
|
</target>
|
64 |
|
|
|
65 |
|
|
<target name="jdoc" depends="init">
|
66 |
|
|
<javadoc packagenames="edu.ucsb.nceas.metacat"
|
67 |
|
|
sourcepath="src"
|
68 |
|
|
destdir="docs"
|
69 |
|
|
author="true"
|
70 |
|
|
version="true"
|
71 |
|
|
use="true"
|
72 |
|
|
windowtitle="MetaCat API"
|
73 |
|
|
doctitle="<h1>MetaCat Server</h1>"
|
74 |
|
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>"
|
75 |
|
|
/>
|
76 |
|
|
</target>
|
77 |
|
|
|
78 |
|
|
</project>
|