Project

General

Profile

« Previous | Next » 

Revision 254

Added by Matt Jones over 24 years ago

updated ant build.xml file for efficiency

View differences:

build.xml
16 16
<project name="metacat" default="compile" basedir=".">
17 17
   <target name="init">
18 18
      <property name="installdir" value="/home/httpd/servlets/" />
19
      <property name="classesdir" value="./classes" />
19
      <property name="destdir" value="./classes" />
20
      <property name="srcdir" value="./src" />
20 21
      <property name="oracle_home" 
21 22
                value="/oracle01/app/oracle/product/8.1.5" />
22 23
      <property name="xmlp" 
......
35 36
                value="lib/srbrmi" />
36 37
      <property name="cpath" 
37 38
             value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${cat}:${srb}"/>
38
      <property name="metacat.home" value="edu/ucsb/nceas/metacat" />
39
      <property name="src.metacat.home" value="src/${metacat.home}" />
40
      <mkdir dir="${classesdir}" />
39
      <property name="package.home" value="edu/ucsb/nceas/metacat" />
40
      <mkdir dir="${destdir}" />
41 41
   </target>
42 42
   
43 43
   <target name="compile" depends="init">
44
       <javac srcdir="${src.metacat.home}" 
45
              destdir="${classesdir}" 
44
       <javac srcdir="${srcdir}" 
45
              destdir="${destdir}" 
46 46
              classpath="${cpath}" /> 
47 47
       <copyfile src="lib/metacat.properties" 
48
                 dest="${classesdir}/${metacat.home}/metacat.properties" />
48
                 dest="${destdir}/${package.home}/metacat.properties" />
49 49
   </target> 
50 50

  
51 51
   <target name="jar" depends="compile">
52 52
       <delete file="lib/metacat.jar" />
53
       <copydir src="lib/srbrmi" dest="${classesdir}" />
54
       <jar jarfile="lib/metacat.jar" basedir="${classesdir}" />
53
       <copydir src="lib/srbrmi" dest="${destdir}" />
54
       <jar jarfile="lib/metacat.jar" basedir="${destdir}" />
55 55
       <!-- copy the file here to the web install dir -->
56 56
   </target> 
57 57

  
......
61 61

  
62 62
   <target name="clean" depends="init">
63 63
       <delete file="lib/metacat.jar" />
64
       <deltree dir="${classesdir}" />
64
       <deltree dir="${destdir}" />
65 65
   </target>
66 66

  
67 67
   <target name="jdoc" depends="init">

Also available in: Unified diff