Revision 4513
Added by daigle about 16 years ago
build.xml | ||
---|---|---|
230 | 230 |
<or> |
231 | 231 |
<not><available file="lib/httpclient.jar"/></not> |
232 | 232 |
<not><available file="lib/utilities.jar"/></not> |
233 |
<not><available file="${utilitiesdir}" type="dir"/></not> |
|
233 | 234 |
</or> |
234 | 235 |
</condition> |
236 |
<!-- peer.utilities.required is used when there is no utilities |
|
237 |
directory at ${utilitiesdir} --> |
|
238 |
<condition property="utilities.required"> |
|
239 |
<or> |
|
240 |
<not><available file="${utilitiesdir}" type="dir"/></not> |
|
241 |
</or> |
|
242 |
</condition> |
|
235 | 243 |
<condition property="eml.required"> |
236 | 244 |
<or> |
237 | 245 |
<not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not> |
... | ... | |
285 | 293 |
</target> |
286 | 294 |
|
287 | 295 |
<target name="jar" depends="compile,geteml" |
288 |
description="Compiles and jars metacat java code to metacat.jar in build dir"> |
|
296 |
description="Compiles and jars metacat java code to metacat.jar in build dir ">
|
|
289 | 297 |
|
290 | 298 |
<delete file="${build.dir}/${name}.jar" /> |
291 | 299 |
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" |
... | ... | |
305 | 313 |
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" /> |
306 | 314 |
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" /> |
307 | 315 |
</target> |
316 |
|
|
317 |
<target name="getpeerutilities" depends="prepare" if="peer.utilities.required" |
|
318 |
description="Checks utilities out of cvs and copies it to your utilitiesdir if it does not already exist"> |
|
319 |
<echo>Enter CVS password: </echo> |
|
320 |
<cvs cvsRoot="${cvsroot}" |
|
321 |
package="${util-module}" |
|
322 |
dest="${utilitiesdir}" /> |
|
323 |
</target> |
|
308 | 324 |
|
309 | 325 |
<target name="getutilities" depends="prepare" |
310 | 326 |
description="Checks utility out of cvs and copies it to your metacat cvs sandbox"> |
... | ... | |
375 | 391 |
src="./harvest-list-editor-${release}.tar"/> |
376 | 392 |
<delete file="./harvest-list-editor-${release}.tar" /> |
377 | 393 |
</target> |
378 |
|
|
394 |
|
|
379 | 395 |
<target name="geteml" depends="getemlpre2,geteml2+,getConversionXSL" if="eml.required" |
380 | 396 |
description="Calls getemlpre2 and geteml2+ targets" /> |
381 | 397 |
|
Also available in: Unified diff
add a getpeerutilities target to check out utilities if it does not exist.