Project

General

Profile

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
  * 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 116 jones
                value="lib/catalog.jar" />
31 113 jones
      <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 116 jones
       <copyfile src="lib/metacat.properties"
43 113 jones
                 dest="${classesdir}/${metacat.home}/metacat.properties" />
44
   </target>
45
46
   <target name="install" depends="init,compileServlet">
47 116 jones
       <delete file="lib/metacat.jar" />
48
       <jar jarfile="lib/metacat.jar" basedir="${classesdir}"  />
49 113 jones
       <!-- copy the file here to the web install dir -->
50
   </target>
51
52
   <target name="clean" depends="init">
53 116 jones
       <delete file="lib/metacat.jar" />
54 113 jones
       <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="&lt;h1&gt;MetaCat Server&lt;/h1&gt;"
66
           bottom="&lt;i&gt;Copyright &#169; 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.&lt;/i&gt;"
67
       />
68
   </target>
69
70
</project>