[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Thu Jan 29 19:39:45 UTC 2009
kawas
Thu Jan 29 14:39:45 EST 2009
Update of /home/repository/moby/moby-live/Java/xmls
In directory dev.open-bio.org:/tmp/cvs-serv13107/xmls
Modified Files:
rdfagentBuild.xml
Log Message:
added a new task for building a downloadable distribution.
moby-live/Java/xmls rdfagentBuild.xml,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Java/xmls/rdfagentBuild.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Java/xmls/rdfagentBuild.xml 2008/02/22 15:11:52 1.5
+++ /home/repository/moby/moby-live/Java/xmls/rdfagentBuild.xml 2009/01/29 19:39:45 1.6
@@ -105,3 +105,48 @@
<zip destfile="${rdfdestfile}.zip" basedir="${build.rdfagent}"/>
</target>
+
+<!-- ================================================================== -->
+<!-- Builds RDF Agent files for a downloadable distribution -->
+<!-- ================================================================== -->
+<target name="package-bindist-rdfagent" depends="compile,jars,jar-rdfagent"
+ description="Create RDF Agent binary distribution for download.">
+
+ <!-- Name of the final binary distribution (without extension) -->
+ <property name="rdfdestfile" value="${dist.dir}/rdfagent"/>
+
+ <!-- Name of the final directory with binary distribution -->
+ <property name="rdfagent.dir" value="rdfagent"/>
+
+ <!-- Create a binary distribution by copying all wanted files to one place -->
+ <property name="rdfagent.dist" value="${build.rdfagent}/${rdfagent.dir}"/>
+ <delete dir="${build.rdfagent}"/>
+ <mkdir dir="${rdfagent.dist}"/>
+
+ <copy todir="${rdfagent.dist}/lib">
+ <fileset refid="dependency.fileset"/>
+ <mapper type="flatten" />
+ <fileset file="${build.lib}/${maven.project.artifactId}-${maven.project.version}.jar"/>
+ </copy>
+ <copy todir="${rdfagent.dist}">
+ <fileset dir="${build.lib}" includes="RDFagent.jar"/>
+ </copy>
+
+ <property name="my.rdfagent.properties"
+ location="${src.config}/rdfagent.properties.template"/>
+ <copy file="${my.rdfagent.properties}" tofile="${rdfagent.dist}/RDFagent_config.txt"/>
+
+ <copy todir="${rdfagent.dist}">
+ <fileset dir="${src.support}/rdfagent" excludes="MANIFEST.MF"/>
+ </copy>
+ <chmod dir="${rdfagent.dist}" perm="ugo+rx" includes="run-RDFagent, reset" excludes="*.bat"/>
+
+ <tar
+ destfile="${rdfdestfile}.tar.gz"
+ basedir="${build.rdfagent}"
+ longfile="gnu"
+ compression="gzip"/>
+
+ <zip destfile="${rdfdestfile}.zip" basedir="${build.rdfagent}"/>
+
+</target>
More information about the MOBY-guts
mailing list