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 |
303
|
jones
|
* usage: ant [compile|jar|install|jdoc]
|
15 |
113
|
jones
|
-->
|
16 |
329
|
jones
|
<project name="metacat" default="jar" basedir=".">
|
17 |
113
|
jones
|
<target name="init">
|
18 |
587
|
berkley
|
<property name="jdbc-connect" value="jdbc:oracle:thin:@dev.nceas.ucsb.edu:1521:exp"/>
|
19 |
410
|
berkley
|
<property name="installdir" value="/opt/tomcat/webapps/metadata" />
|
20 |
348
|
jones
|
<property name="name" value="metacat"/>
|
21 |
|
|
<property name="Name" value="MetaCat"/>
|
22 |
378
|
jones
|
<property name="release" value="1.0a8"/>
|
23 |
586
|
berkley
|
<property name="web-base-url" value="http://www.nceas.ucsb.edu/collab/2840/knbweb"/>
|
24 |
525
|
berkley
|
<property name="replication-path" value="/metadata/servlet/replication"/>
|
25 |
412
|
berkley
|
<property name="servlet-path" value="/metadata/servlet/metacat"/>
|
26 |
410
|
berkley
|
<property name="html-path" value="/metadata"/>
|
27 |
|
|
<property name="image-path" value="/img/metadata" />
|
28 |
586
|
berkley
|
<property name="server" value="dev.nceas.ucsb.edu"/>
|
29 |
|
|
<property name="replication-log" value="/home/computer/berkley/xmltodb/logs/metacatreplication.log"/>
|
30 |
412
|
berkley
|
<property name="user" value="metadata"/>
|
31 |
525
|
berkley
|
<property name="password" value="your-pw-goes-here"/>
|
32 |
348
|
jones
|
|
33 |
586
|
berkley
|
<filter token="server" value="${server}"/>
|
34 |
|
|
<filter token="replication-log" value="${replication-log}"/>
|
35 |
348
|
jones
|
<filter token="release" value="${release}"/>
|
36 |
|
|
<filter token="servlet-path" value="${servlet-path}"/>
|
37 |
359
|
bojilova
|
<filter token="html-path" value="${html-path}"/>
|
38 |
362
|
jones
|
<filter token="user" value="${user}"/>
|
39 |
|
|
<filter token="password" value="${password}"/>
|
40 |
409
|
berkley
|
<filter token="image-path" value="${image-path}"/>
|
41 |
506
|
jones
|
<filter token="web-base-url" value="${web-base-url}"/>
|
42 |
525
|
berkley
|
<filter token="replication-path" value="${replication-path}"/>
|
43 |
254
|
jones
|
<property name="srcdir" value="./src" />
|
44 |
348
|
jones
|
|
45 |
|
|
<property name="build.dir" value="./build"/>
|
46 |
|
|
<property name="build.src" value="${build.dir}/src"/>
|
47 |
|
|
<property name="build.dest" value="${build.dir}/classes"/>
|
48 |
516
|
jones
|
<property name="build.docs" value="${build.dir}/docs"/>
|
49 |
348
|
jones
|
<property name="build.samples" value="${build.dir}/samples"/>
|
50 |
|
|
<property name="build.tests" value="${build.dir}/tests"/>
|
51 |
|
|
<property name="build.data" value="${build.dir}/data"/>
|
52 |
|
|
<property name="build.javadocs" value="${build.dir}/docs/apiDocs"/>
|
53 |
409
|
berkley
|
<property name="build.img" value="/opt/httpd/html${image-path}"/>
|
54 |
348
|
jones
|
|
55 |
113
|
jones
|
<property name="oracle_home"
|
56 |
329
|
jones
|
value="/oracle01/app/oracle/product/8.1.6" />
|
57 |
|
|
<property name="toolsdir"
|
58 |
|
|
value="/usr/local/devtools" />
|
59 |
113
|
jones
|
<property name="xmlp"
|
60 |
329
|
jones
|
value="${toolsdir}/OracleXSU111/lib/xmlparserv2.jar" />
|
61 |
185
|
jones
|
<property name="xmlp2"
|
62 |
329
|
jones
|
value="${toolsdir}/xerces-1_1_3/xerces.jar" />
|
63 |
113
|
jones
|
<property name="jdbc"
|
64 |
|
|
value="${oracle_home}/jdbc/lib/classes111.zip" />
|
65 |
|
|
<property name="jserv"
|
66 |
|
|
value="/usr/lib/apache/ApacheJServ.jar" />
|
67 |
|
|
<property name="jsdk"
|
68 |
329
|
jones
|
value="${toolsdir}/jakarta-tomcat/lib/servlet.jar" />
|
69 |
213
|
jones
|
<property name="srb"
|
70 |
|
|
value="lib/srbrmi" />
|
71 |
113
|
jones
|
<property name="cpath"
|
72 |
319
|
jones
|
value="${xmlp2}:${xmlp}:${jdbc}:${jserv}:${jsdk}:${srb}"/>
|
73 |
254
|
jones
|
<property name="package.home" value="edu/ucsb/nceas/metacat" />
|
74 |
348
|
jones
|
|
75 |
113
|
jones
|
</target>
|
76 |
|
|
|
77 |
348
|
jones
|
<target name="prepare" depends="init">
|
78 |
|
|
<mkdir dir="${build.dir}"/>
|
79 |
|
|
<mkdir dir="${build.src}"/>
|
80 |
|
|
<mkdir dir="${build.dest}"/>
|
81 |
516
|
jones
|
<mkdir dir="${build.javadocs}"/>
|
82 |
348
|
jones
|
|
83 |
|
|
<copydir src="${srcdir}"
|
84 |
|
|
dest="${build.src}"
|
85 |
|
|
filtering="yes"
|
86 |
|
|
includes="edu/**, com/**"
|
87 |
|
|
excludes="**/CVS* **/.#* **/*.sql"/>
|
88 |
|
|
|
89 |
|
|
</target>
|
90 |
|
|
|
91 |
|
|
<target name="compile" depends="prepare">
|
92 |
|
|
<javac srcdir="${build.src}"
|
93 |
|
|
destdir="${build.dest}"
|
94 |
257
|
jones
|
classpath="${cpath}"
|
95 |
|
|
excludes="**/*.sql" />
|
96 |
116
|
jones
|
<copyfile src="lib/metacat.properties"
|
97 |
356
|
bojilova
|
dest="${build.dest}/${package.home}/metacat.properties"
|
98 |
|
|
filtering="yes" />
|
99 |
481
|
bojilova
|
<copyfile src="lib/srbProps.properties"
|
100 |
|
|
dest="${build.dest}/${package.home}/srbProps.properties"/>
|
101 |
113
|
jones
|
</target>
|
102 |
|
|
|
103 |
204
|
jones
|
<target name="jar" depends="compile">
|
104 |
353
|
jones
|
<delete file="${build.dir}/${name}.jar" />
|
105 |
348
|
jones
|
<copydir src="lib/srbrmi" dest="${build.dest}" />
|
106 |
586
|
berkley
|
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" />
|
107 |
113
|
jones
|
</target>
|
108 |
|
|
|
109 |
204
|
jones
|
<target name="install" depends="jar">
|
110 |
329
|
jones
|
<mkdir dir="${installdir}/WEB-INF/lib" />
|
111 |
353
|
jones
|
<copyfile src="${build.dir}/${name}.jar"
|
112 |
348
|
jones
|
dest="${installdir}/WEB-INF/lib/${name}.jar" />
|
113 |
329
|
jones
|
<copyfile src="${xmlp2}"
|
114 |
|
|
dest="${installdir}/WEB-INF/lib/xerces.jar" />
|
115 |
|
|
<copyfile src="${xmlp}"
|
116 |
|
|
dest="${installdir}/WEB-INF/lib/xmlparserv2.jar" />
|
117 |
|
|
<copyfile src="${jdbc}"
|
118 |
|
|
dest="${installdir}/WEB-INF/lib/oracle-jdbc111.jar" />
|
119 |
|
|
<copyfile src="lib/web.xml"
|
120 |
|
|
dest="${installdir}/WEB-INF/web.xml" />
|
121 |
409
|
berkley
|
<copydir src="lib"
|
122 |
410
|
berkley
|
dest="${build.img}"
|
123 |
|
|
includes="*.jpg,*.png,*.gif,**/marine/*.jpg, **/marine/*.png, **/marine/*.gif"/>
|
124 |
329
|
jones
|
<copydir src="lib" dest="${installdir}"
|
125 |
348
|
jones
|
filtering="yes"
|
126 |
329
|
jones
|
excludes="*.jar,*.properties,web.xml,**/srbrmi/*" />
|
127 |
391
|
jones
|
<mkdir dir="${installdir}/dtd" />
|
128 |
|
|
<copydir src="../dtd" dest="${installdir}/dtd"
|
129 |
|
|
filtering="yes"
|
130 |
|
|
includes="*.dtd" />
|
131 |
329
|
jones
|
<copydir src="images" dest="${installdir}" />
|
132 |
204
|
jones
|
</target>
|
133 |
|
|
|
134 |
113
|
jones
|
<target name="clean" depends="init">
|
135 |
348
|
jones
|
<deltree dir="${build.dir}" />
|
136 |
113
|
jones
|
</target>
|
137 |
|
|
|
138 |
516
|
jones
|
<target name="jdoc" depends="prepare">
|
139 |
113
|
jones
|
<javadoc packagenames="edu.ucsb.nceas.metacat"
|
140 |
516
|
jones
|
sourcepath="${build.src}"
|
141 |
|
|
destdir="${build.javadocs}"
|
142 |
113
|
jones
|
author="true"
|
143 |
|
|
version="true"
|
144 |
|
|
use="true"
|
145 |
348
|
jones
|
windowtitle="${Name} API"
|
146 |
|
|
doctitle="<h1>${Name}</h1>"
|
147 |
113
|
jones
|
bottom="<i>Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>"
|
148 |
|
|
/>
|
149 |
|
|
</target>
|
150 |
|
|
|
151 |
|
|
</project>
|