r4513 - trunk
daigle at ecoinformatics.org
daigle at ecoinformatics.org
Wed Nov 5 08:39:54 PST 2008
Author: daigle
Date: 2008-11-05 08:39:54 -0800 (Wed, 05 Nov 2008)
New Revision: 4513
Modified:
trunk/build.xml
Log:
add a getpeerutilities target to check out utilities if it does not exist.
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2008-11-05 00:06:01 UTC (rev 4512)
+++ trunk/build.xml 2008-11-05 16:39:54 UTC (rev 4513)
@@ -230,8 +230,16 @@
<or>
<not><available file="lib/httpclient.jar"/></not>
<not><available file="lib/utilities.jar"/></not>
+ <not><available file="${utilitiesdir}" type="dir"/></not>
</or>
</condition>
+ <!-- peer.utilities.required is used when there is no utilities
+ directory at ${utilitiesdir} -->
+ <condition property="utilities.required">
+ <or>
+ <not><available file="${utilitiesdir}" type="dir"/></not>
+ </or>
+ </condition>
<condition property="eml.required">
<or>
<not><available file="lib/schema/eml-2.0.1/eml.xsd"/></not>
@@ -285,7 +293,7 @@
</target>
<target name="jar" depends="compile,geteml"
- description="Compiles and jars metacat java code to metacat.jar in build dir">
+ description="Compiles and jars metacat java code to metacat.jar in build dir ">
<delete file="${build.dir}/${name}.jar" />
<jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}"
@@ -305,6 +313,14 @@
<copy file="${utilitiesdir}/lib/httpclient.jar" todir="lib" />
<copy file="${utilitiesdir}/build/utilities.jar" todir="lib" />
</target>
+
+ <target name="getpeerutilities" depends="prepare" if="peer.utilities.required"
+ description="Checks utilities out of cvs and copies it to your utilitiesdir if it does not already exist">
+ <echo>Enter CVS password: </echo>
+ <cvs cvsRoot="${cvsroot}"
+ package="${util-module}"
+ dest="${utilitiesdir}" />
+ </target>
<target name="getutilities" depends="prepare"
description="Checks utility out of cvs and copies it to your metacat cvs sandbox">
@@ -375,7 +391,7 @@
src="./harvest-list-editor-${release}.tar"/>
<delete file="./harvest-list-editor-${release}.tar" />
</target>
-
+
<target name="geteml" depends="getemlpre2,geteml2+,getConversionXSL" if="eml.required"
description="Calls getemlpre2 and geteml2+ targets" />
More information about the Metacat-cvs
mailing list