Revision 1780
Added by Matt Jones over 20 years ago
build.xml | ||
---|---|---|
96 | 96 |
<property name="default-style" value="knb" /> |
97 | 97 |
<property name="morphosourcedir" value="../morpho" /> |
98 | 98 |
<property name="defaultcontenttype" value="application/octet-stream" /> |
99 |
<property name="utilitiesdir" value="../utilities" /> |
|
99 | 100 |
|
100 | 101 |
<!-- Make sure these paths match the location of the jar files |
101 | 102 |
on your system, the defaults should usually work --> |
... | ... | |
114 | 115 |
<property name="apis" |
115 | 116 |
value="lib/xalan/xml-apis.jar" /> |
116 | 117 |
<property name="httpclient" |
117 |
value="${morphosourcedir}/lib/httpclient.jar" />
|
|
118 |
value="lib/httpclient.jar" /> |
|
118 | 119 |
<property name="itis" |
119 | 120 |
value="${morphosourcedir}/lib/itislib.jar" /> |
120 | 121 |
<property name="emlparser" |
... | ... | |
125 | 126 |
value="lib/itislib.jar" /> |
126 | 127 |
<property name="emlparser" |
127 | 128 |
value="lib/eml.jar" /> |
129 |
<property name="util" |
|
130 |
value="lib/utilities.jar" /> |
|
128 | 131 |
</target> |
129 | 132 |
|
130 | 133 |
<target name="init" depends="config"> |
... | ... | |
152 | 155 |
<property name="stmmlnamespace" value="http://www.xml-cml.org/schema/stmml" /> |
153 | 156 |
|
154 | 157 |
<property name="cpath" |
155 |
value="${xmlp}:${xalan}:${apis}:${jdbc}:${jsdk}:${srb}:${cos}:${morpho}:${emlparser}:${jdbc-add1}:${jdbc-add2}"/> |
|
158 |
value="${xmlp}:${xalan}:${apis}:${jdbc}:${jsdk}:${srb}:${cos}:${morpho}:${emlparser}:${jdbc-add1}:${jdbc-add2}:${util}:${httpclient}"/>
|
|
156 | 159 |
|
157 | 160 |
<filter token="docrooturl" value="./" /> |
158 | 161 |
<filter token="jdbc-connect" value="${jdbc-connect}"/> |
... | ... | |
254 | 257 |
includes="**/protocols/" /> |
255 | 258 |
</target> |
256 | 259 |
|
260 |
<target name="utilities" depends="config"> |
|
261 |
<ant dir="${utilitiesdir}" target="clean"/> |
|
262 |
<ant dir="${utilitiesdir}" target="jar"/> |
|
263 |
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" /> |
|
264 |
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" /> |
|
265 |
</target> |
|
266 |
|
|
267 |
<target name="client" depends="utilities, prepare"> |
|
268 |
<javac srcdir="${build.src}" |
|
269 |
destdir="${build.dest}" |
|
270 |
classpath="${cpath}" |
|
271 |
includes="edu/ucsb/nceas/metacat/client/*" /> |
|
272 |
</target> |
|
273 |
|
|
274 |
<target name="clientjar" depends="client"> |
|
275 |
<delete file="${build.dir}/${name}-client.jar" /> |
|
276 |
<jar jarfile="${build.dir}/${name}-client.jar" basedir="${build.dest}" |
|
277 |
includes="**/metacat/client/" /> |
|
278 |
</target> |
|
279 |
|
|
257 | 280 |
<target name="getdtdschema" depends="prepare"> |
258 | 281 |
<echo>Enter CVS password: </echo> |
259 | 282 |
<cvs cvsRoot="${cvsroot}" |
Also available in: Unified diff
Added a new subpackage (edu.ucsb.nceas.metacat.client) which is a client
access library for the metacat. There is an interface (Metacat.java) that
provides simple access methods for the main metacat functions. This is to
support clients like Morpho and others that want to programatically access
a metacat without worrying about network communication issues. The implementation is not complete. This checkin is principally for review of the
Metacat.java interface.