[MOBY-guts] biomoby commit
Nina Opushneva
nopushneva at pub.open-bio.org
Mon Nov 1 19:21:42 UTC 2004
nopushneva
Mon Nov 1 14:21:42 EST 2004
Update of /home/repository/moby/moby-live/Java
In directory pub.open-bio.org:/tmp/cvs-serv17614
Modified Files:
build.xml
Log Message:
add target for building RDFagent files
moby-live/Java build.xml,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/build.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/build.xml 2004/10/18 14:35:05 1.8
+++ /home/repository/moby/moby-live/Java/build.xml 2004/11/01 19:21:42 1.9
@@ -31,7 +31,7 @@
<property name="documented.files" value="${src.clients}/MobyCmdLineClient.java"/>
<property name="dist.dir" value="${docs.dir}/dist"/>
- <!-- The directory containing third-party libraries -->
+ <!-- The directory containing third-party libraries -->
<!-- Note: this directory can be populated from remote sites -->
<!-- using target 'gather', e.g. ./build.sh gather -->
<property name="lib.dir" value="lib"/>
@@ -42,6 +42,7 @@
<property name="build.lib" value="${build.dir}/lib"/>
<property name="build.clients" value="${build.dir}/Clients"/>
<property name="build.services" value="${build.dir}/Services"/>
+ <property name="build.rdfagent" value="${build.dir}/rdfagent"/>
<property name="build.dist" value="${build.dir}/dist"/>
<property name="build.webapps" value="${build.dir}/webapps/jmoby"/>
<property name="build.run" value="${build.dir}/run"/>
@@ -65,7 +66,8 @@
<include name="*.jar"/>
</fileset>
</path>
-
+
+
<!-- A remote URL containing third-party libraries -->
<!-- Note: this is used by the 'gather' task -->
<property name="remote.dir" value="http://industry.ebi.ac.uk/~senger/storage/shared"/>
@@ -104,6 +106,8 @@
<property name="junit" value="junit.jar"/>
<property name="mail" value="mail.jar"/>
<property name="rdf-api" value="rdf-api-2001-01-19.jar"/>
+
+
<!-- ================================================================== -->
<!-- Targets/Tasks -->
@@ -176,6 +180,7 @@
<mkdir dir="${build.clients}"/>
<mkdir dir="${build.clients}/help"/>
<mkdir dir="${build.services}"/>
+ <mkdir dir="${build.rdfagent}"/>
<mkdir dir="${build.run}"/>
<!-- Conditions -->
@@ -193,7 +198,7 @@
<available file="${lib.dir}/${wsdl4j}"/>
<available file="${lib.dir}/${axis}"/>
<available file="${lib.dir}/${log4j}"/>
- <available file="${lib.dir}/${saaj}"/>
+ <available file="${lib.dir}/${saaj}"/>
<available file="${lib.dir}/${servlet}"/>
<available file="${lib.dir}/${activation}"/>
<available file="${lib.dir}/${adenine}"/>
@@ -212,6 +217,7 @@
<available file="${lib.dir}/${mail}"/>
<available file="${lib.dir}/${rdf-api}"/>
+
</and>
</condition>
@@ -388,6 +394,28 @@
</manifest>
</jar>
</target>
+
+
+ <!-- ================================================================== -->
+ <!-- Builds a jar file with RDFagent classes -->
+ <!-- ================================================================== -->
+ <target name="jar_rdfagent" depends="compile"
+ description="Create a jar file with RDF Agent classes.">
+ <jar destfile="${build.lib}/RDFagent.jar">
+ <fileset dir="${build.classes}" includes="org/biomoby/registry/rdfagent/**"/>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}"/>
+ <!--section name="classpath"-->
+ <attribute name="Class-Path" value="lib/commons-logging.jar lib/concurrent.jar lib/icu4j.jar lib/jakarta-oro-2.0.5.jar lib/jena.jar lib/junit.jar lib/log4j-1.2.4.jar lib/rdf-api-2001-01-19.jar lib/xercesImpl.jar lib/xml-apis.jar lib/jdom.jar lib/mail.jar lib/activation.jar"/>
+ <attribute name="Main-Class" value="org.biomoby.registry.rdfagent.verifier.Main"/>
+ <!--/section-->
+ </manifest>
+ </jar>
+
+
+ </target>
+
+
<!-- ================================================================== -->
<!-- Builds files for binary distribution -->
@@ -431,8 +459,53 @@
</target>
- <property name="deploy.war.file" value="${build.webapps}/jmoby.war"/>
+
+
+ <!-- ================================================================== -->
+ <!-- Builds RDF Agent files for binary distribution -->
+ <!-- ================================================================== -->
+ <target name="bindist_rdfagent" depends="compile,jar_rdfagent"
+ description="Create RDF Agent binary distribution.">
+ <!-- Name of the final binary distribution (without extension) -->
+ <property name="destfile" value="${dist.dir}/rdfagent-${TODAY_SHORT}"/>
+
+ <!-- Create a binary distribution by copying all wanted files to one place -->
+
+ <delete dir="${build.rdfagent}"/>
+ <mkdir dir="${build.rdfagent}"/>
+ <copy todir="${build.rdfagent}/lib">
+ <fileset file="${lib.dir}/${activation}"/>
+ <fileset file="${lib.dir}/${commons-logging}"/>
+ <fileset file="${lib.dir}/${concurrent}"/>
+ <fileset file="${lib.dir}/${icu4j}"/>
+ <fileset file="${lib.dir}/${jakarta-oro}"/>
+ <fileset file="${lib.dir}/${jena}"/>
+ <fileset file="${lib.dir}/${junit}"/>
+ <fileset file="${lib.dir}/${jdom}"/>
+ <fileset file="${lib.dir}/${log4j}"/>
+ <fileset file="${lib.dir}/${mail}"/>
+ <fileset file="${lib.dir}/${rdf-api}"/>
+ <fileset file="${lib.dir}/${xercesImpl}"/>
+ <fileset file="${lib.dir}/${xml-apis}"/>
+ </copy>
+ <copy todir="${build.rdfagent}">
+ <fileset dir="${build.lib}" includes="RDFagent.jar"/>
+ </copy>
+ <copy file="${src.config}/RDFagent_config.xml" todir="${build.rdfagent}">
+ </copy>
+ <copy todir="${build.rdfagent}">
+ <fileset dir="${src.support}/rdfagent" excludes="MANIFEST.MF"/>
+ </copy>
+ <chmod dir="${build.rdfagent}" perm="ugo+rx" includes="run-RDFagent, reset" excludes="*.bat"/>
+
+ <tar destfile="${destfile}.tar.gz" basedir="${build.rdfagent}" compression="gzip"/>
+ <zip destfile="${destfile}.zip" basedir="${build.rdfagent}"/>
+
+ </target>
+
+ <property name="deploy.war.file" value="${build.webapps}/jmoby.war"/>
+
<!-- ================================================================== -->
<!-- Move distribution of packed servlets (.war file) -->
<!-- ================================================================== -->
More information about the MOBY-guts
mailing list