<?xml version="1.0" encoding="UTF-8"?>
-<project default="jabaws" name="Build Java Bioinformatics Analysis Web Services" basedir=".">
+<project default="build-all" name="Build Java Bioinformatics Analysis Web Services" basedir=".">
<property name="LD_LIBRARY_PATH" value="/gridware/sge/lib/lx24-amd64"/>
<property name="datamodel" value="${distdir}/datamodel-${jabaws_version}.jar"/>
<property name="datamodel-src" value="${distdir}/datamodel-src-${jabaws_version}.jar"/>
<property name="min-jabaws-client" value="${distdir}/min-jabaws-client-${jabaws_version}.jar"/>
+ <property name="stat-updater" value="${distdir}/stat-updater-${jabaws_version}.jar"/>
<property name="min-jabaws-client-nolog" value="${distdir}/min-jabaws-client-nolog-${jabaws_version}.jar"/>
<property name="jabaws-client-src" value="${distdir}/jabaws-client-src-${jabaws_version}.jar"/>
<property name="full-jabaws-client" value="${distdir}/full-jabaws-client-${jabaws_version}.jar"/>
<!-- Logging configuration -->
</fileset>
+ <fileset dir="${basedir}/WEB-INF/classes/" id="statupdater">
+ <!-- Datamodel -->
+ <include name="compbio/data/**"/>
+ <include name="compbio/metadata/**"/>
+ <!-- Engines -->
+ <include name="compbio/engine/**"/>
+ <!-- Runners -->
+ <include name="compbio/stat/collector/**"/>
+ <!-- Logging configuration -->
+ </fileset>
+
+
+
<!-- Clean temp directories -->
<target name="clean">
<delete dir="${classes}" />
</manifest>
</jar>
</target>
-
+
<target name="core-source-jar" depends="compile" description="Pack jabaws core java sources">
<delete file="${core-src}"></delete>
<jar jarfile="${core-src}">
</jar>
</target>
+
+ <target name="stat-updater" depends="compile" description="Prepare executable jar for stat updater">
+ <echo>Jar file: StatUpdater jar</echo>
+ <delete file="${basedir}/${stat-updater}"></delete>
+ <jar jarfile="${basedir}/${stat-updater}">
+ <fileset refid="statupdater"/>
+ <zipgroupfileset excludes="META-INF/*" dir="" includes="WEB-INF/lib/log4j-1.2.15.jar" />
+ <zipgroupfileset excludes="META-INF/*" dir="" includes="lib/jcommander-1.30.jar" />
+ <zipgroupfileset excludes="META-INF/*.SF" dir="${web.lib.path}" >
+ <include name="${compbio-util}"/>
+ </zipgroupfileset>
+ <manifest>
+ <attribute name="Built-By" value="${author}" />
+ <attribute name="Main-Class" value="compbio.stat.collector.ExecutionStatUpdater" />
+ <attribute name="Class-Path" value="." />
+ <attribute name="Implementation-Title" value="JABAWS Statistics Updating Program ${product}" />
+ <attribute name="Implementation-Vendor" value="${author}" />
+ <attribute name="Implementation-URL" value="${project.url}" />
+ </manifest>
+ </jar>
+ </target>
+
<target name="full-jabaws-client-jar" depends="compile" description="Pack datamodel, engine and runners">
<echo>Jar file: Full WS client jar</echo>
<delete file="${full-jabaws-client}">