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