Project

General

Profile

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 185 2000-06-22 02:20:17Z 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="xmlp2" 
24
                value="/home/httpd/servlets/xerces.jar" />
25
      <property name="jdbc" 
26
                value="${oracle_home}/jdbc/lib/classes111.zip" />
27
      <property name="jserv" 
28
                value="/usr/lib/apache/ApacheJServ.jar" />
29
      <property name="jsdk" 
30
                value="/home/httpd/classes/servlet-2.0.jar" />
31
      <property name="cat" 
32
                value="lib/catalog.jar" />
33
      <property name="cpath" 
34
                value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${cat}" />
35
      <property name="metacat.home" value="edu/ucsb/nceas/metacat" />
36
      <property name="src.metacat.home" value="src/${metacat.home}" />
37
      <mkdir dir="${classesdir}" />
38
   </target>
39
   
40
   <target name="compileServlet" depends="init">
41
       <javac srcdir="${src.metacat.home}" 
42
              destdir="${classesdir}" 
43
              classpath="${cpath}" /> 
44
       <copyfile src="lib/metacat.properties" 
45
                 dest="${classesdir}/${metacat.home}/metacat.properties" />
46
   </target> 
47

    
48
   <target name="install" depends="init,compileServlet">
49
       <delete file="lib/metacat.jar" />
50
       <jar jarfile="lib/metacat.jar" basedir="${classesdir}"  />
51
       <!-- copy the file here to the web install dir -->
52
   </target> 
53

    
54
   <target name="clean" depends="init">
55
       <delete file="lib/metacat.jar" />
56
       <deltree dir="${classesdir}" />
57
   </target>
58

    
59
   <target name="jdoc" depends="init">
60
       <javadoc packagenames="edu.ucsb.nceas.metacat"
61
           sourcepath="src"
62
           destdir="docs"
63
           author="true"
64
           version="true"
65
           use="true"
66
           windowtitle="MetaCat API"
67
           doctitle="&lt;h1&gt;MetaCat Server&lt;/h1&gt;"
68
           bottom="&lt;i&gt;Copyright &#169; 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.&lt;/i&gt;"
69
       />
70
   </target>
71

    
72
</project>
(2-2/4)