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 306 2000-07-28 20:05:44Z berkley $'
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 [compile|jar|install|jdoc]
15
--> 
16
<project name="metacat" default="compile" basedir=".">
17
   <target name="init">
18
      <property name="installdir" value="/home/httpd/servlets/" />
19
      <property name="destdir" value="./classes" />
20
      <property name="srcdir" value="./src" />
21
      <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
      <property name="xmlp2" 
26
                value="/home/httpd/servlets/xerces.jar" />
27
      <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
      <property name="srb" 
34
                value="lib/srbrmi" />
35
      <property name="cpath" 
36
             value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${srb}"/>
37
      <property name="package.home" value="edu/ucsb/nceas/metacat" />
38
      <mkdir dir="${destdir}" />
39
   </target>
40
   
41
   <target name="compile" depends="init">
42
       <javac srcdir="${srcdir}" 
43
              destdir="${destdir}" 
44
              classpath="${cpath}" 
45
              excludes="**/*.sql" /> 
46
       <copyfile src="lib/metacat.properties" 
47
                 dest="${destdir}/${package.home}/metacat.properties" />
48
       <copyfile src="lib/marine/marine.properties" 
49
                 dest="${destdir}/${package.home}/marine/marine.properties" />
50
   </target> 
51

    
52
   <target name="jar" depends="compile">
53
       <delete file="lib/metacat.jar" />
54
       <copydir src="lib/srbrmi" dest="${destdir}" />
55
       <jar jarfile="lib/metacat.jar" basedir="${destdir}" />
56
   </target> 
57

    
58
   <target name="install" depends="jar">
59
       <copyfile src="lib/metacat.jar" dest="${installdir}/metacat.jar" />
60
   </target> 
61

    
62
   <target name="clean" depends="init">
63
       <delete file="lib/metacat.jar" />
64
       <deltree dir="${destdir}" />
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>
(2-2/4)