<property name="full-jaba-client" value="${distdir}/full-jaba-client-${jaba_version}.jar"/>\r
<property name="jaba-source-jar" value="${distdir}/jabaws-src-${jaba_version}.jar"/>\r
<property name="full-jaba-client-pack" value="${distdir}/full-jaba-client-pack.zip"/>\r
- <property name="jaba" value="${distdir}/jaba.war"/>\r
+ <property name="jaba" value="${distdir}/jabaws.war"/>\r
<!-- TODO \r
<property name="jaba-dundee" value="${distdir}/jaba-dundee.war"/>\r
-->\r
<!--Whole project archive -->\r
<property name="jaba-project" value="${distdir}/jaba-project.zip"/>\r
\r
-\r
<!-- java -->\r
<property name="test.src" location="${basedir}/testsrc" />\r
<property name="classes" location="${basedir}/WEB-INF/classes" />\r
<pathelement location="${classes}" />\r
</path>\r
\r
+ <fileset dir="${basedir}/WEB-INF/classes/" id="fullclient">\r
+ <!-- Datamodel -->\r
+ <include name="compbio/data/**"/>\r
+ <include name="compbio/metadata/**"/>\r
+ <!-- Engines -->\r
+ <include name="compbio/engine/**"/>\r
+ <!-- Runners -->\r
+ <include name="compbio/runner/**"/>\r
+ <!-- Logging configuration -->\r
+ </fileset>\r
+\r
+ <!-- Clean temp directories -->\r
+ <target name="clean">\r
+ <delete dir="${classes}" />\r
+ <delete file="${distdir}/binaries.zip" />\r
+ <delete file="${basedir}/activity.log" />\r
+ <delete file="${basedir}/derby.log" />\r
+ <mkdir dir="${classes}" />\r
+ <copy file="${basedir}/conf/log4j.properties" tofile="${classes}/log4j.properties" />\r
+ </target>\r
+\r
+ <!-- Clean up temp directories and dist directory (all jar, zip, and war files deleted) -->\r
+ <target name="full-clean" depends="clean">\r
+ <delete>\r
+ <fileset dir="${distdir}">\r
+ <include name="*.jar"/>\r
+ <include name="*.zip"/>\r
+ <include name="*.war"/>\r
+ </fileset>\r
+ </delete>\r
+ </target>\r
+\r
+ <target name="clearStatDB" description="Remove all records from statistics database">\r
+ <echo>Cleaning Statistics database</echo>\r
+ <java classname="compbio.stat.collector.StatDB" fork="false" failonerror="true" classpath="${classes}">\r
+ <classpath refid="project.classpath" />\r
+ </java>\r
+ </target>\r
+\r
<!--\r
The compilation order is \r
1. datamodel \r
5. webservices\r
Packages of the lower order could not have dependencies on the packages on the next layer. \r
So runners (layer 3) depends on the engines and the datamodel but engines does not depend on \r
- anything in runners or any other layers above. Testscr is not allowed to test webservices. \r
+ anything in runners or any other layers above. Testsrc is not allowed to test webservices. \r
-->\r
<target name="compile_with_debug" depends="clean" description="Perform a multiple step compilation to ensure layered structure is preserved. Debug enabled.">\r
<!-- copy files to class path-->\r
</javac>\r
</target>\r
\r
- <!-- Clean temp directories -->\r
- <target name="clean">\r
- <delete dir="${classes}" />\r
- <delete file="${distdir}/binaries.zip" />\r
- <delete file="${basedir}/activity.log" />\r
- <delete file="${basedir}/derby.log" />\r
- <mkdir dir="${classes}" />\r
- <copy file="${basedir}/conf/log4j.properties" tofile="${classes}/log4j.properties" />\r
- </target>\r
-\r
<!--\r
- Compile with optimisation. Do not compile testsrc \r
+ Compile with optimisation. Do not compile testsrc\r
The compilation order is \r
1. datamodel \r
2. engine\r
3. runner\r
4. webservices\r
Packages of the lower order could not have dependencies on the packages on the next layer. \r
- So runners (layer 3) depends on the engines and the datamodel but engines does not depend on \r
- anything in runners or any other layers above. \r
+ So runners (layer 3) depends on the engines and the datamodel but engines does not depend \r
+ on anything in runners or any other layers above.\r
-->\r
<target name="compile" depends="clean" description="Perform a multiple step compilation to ensure layered structure is preserved. Debug disabled, optimisation enabled. Tests are not compiled.">\r
<!-- copy files to class path-->\r
<compilerarg value="-Xlint:-unchecked" />\r
<classpath refid="project.classpath" />\r
</javac>\r
-\r
</target>\r
\r
-\r
- <target name="datamodel-jar" description="Pack data model classes" depends="compile">\r
+ <target name="datamodel-jar" depends="compile" description="Pack data model classes">\r
<echo>Jar file: Minimal WS client jar</echo>\r
<delete file="${basedir}/${datamodel}">\r
</delete>\r
</jar>\r
</target>\r
\r
- <target name="jaba-client-src-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class" depends="datamodel-source-jar">\r
+ <target name="jaba-client-src-jar" depends="datamodel-source-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class">\r
<echo>Jar file: JABAWS client source</echo>\r
<delete file="${jaba-client-src}">\r
</delete>\r
<jar jarfile="${jaba-client-src}">\r
<zipgroupfileset excludes="META-INF/*.MF" file="${datamodel-src}"/>\r
- <fileset dir="${basedir}/webservices">\r
- <!-- This will include JAXWS artifacts. Alternatively they can be generated on the fly. -->\r
- <include name="compbio/data/msa/**"/>\r
- <exclude name="compbio/ws/client/ServicesUtil**"/>\r
- <exclude name="compbio/ws/client/AAConClient**"/>\r
- <include name="compbio/ws/client/**"/>\r
- </fileset>\r
- <manifest>\r
- <attribute name="Built-By" value="${author}" />\r
- <attribute name="Implementation-Title" value="${product} Client Source Code" />\r
- <attribute name="Implementation-Vendor" value="${author}" />\r
- <attribute name="Implementation-URL" value="${project.url}" />\r
- </manifest>\r
- </jar>\r
+ <fileset dir="${basedir}/webservices">\r
+ <!-- This will include JAXWS artifacts. Alternatively they can be generated on the fly. -->\r
+ <include name="compbio/data/msa/**"/>\r
+ <exclude name="compbio/ws/client/ServicesUtil**"/>\r
+ <exclude name="compbio/ws/client/AAConClient**"/>\r
+ <include name="compbio/ws/client/**"/>\r
+ </fileset>\r
+ <manifest>\r
+ <attribute name="Built-By" value="${author}" />\r
+ <attribute name="Implementation-Title" value="${product} Client Source Code" />\r
+ <attribute name="Implementation-Vendor" value="${author}" />\r
+ <attribute name="Implementation-URL" value="${project.url}" />\r
+ </manifest>\r
+ </jar>\r
</target>\r
- \r
- <target name="minimal-jaba-client-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class" depends="compile, datamodel-jar">\r
+\r
+ <target name="minimal-jaba-client-jar" depends="compile, datamodel-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class">\r
<echo>Jar file: Minimal WS client jar</echo>\r
<delete file="${basedir}/${min-jaba-client}">\r
</delete>\r
<include name="compbio/data/msa/**"/>\r
<include name="compbio/ws/client/**"/>\r
</fileset>\r
- <zipgroupfileset excludes="META-INF/*" dir="" includes="WEB-INF/lib/log4j-1.2.15.jar" />\r
+ <zipgroupfileset excludes="META-INF/*" dir="" includes="WEB-INF/lib/log4j-1.2.15.jar" />\r
<manifest>\r
<attribute name="Built-By" value="${author}" />\r
<attribute name="Main-Class" value="compbio.ws.client.Jws2Client" />\r
</jar>\r
</target>\r
\r
- <target name="aacon-ws-client-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class" depends="compile, datamodel-jar">\r
+ <target name="full-jaba-client-jar" depends="compile" description="Pack datamodel, engine and runners">\r
+ <echo>Jar file: Full WS client jar</echo>\r
+ <delete file="${full-jaba-client}">\r
+ </delete>\r
+ <jar jarfile="${full-jaba-client}">\r
+ <zipgroupfileset excludes="META-INF/*.SF" dir="${web.lib.path}" >\r
+ <include name="${compbio-util}"/>\r
+ <include name="${compbio-annotation}"/>\r
+ <include name="drmaa.jar"/>\r
+ </zipgroupfileset>\r
+ <fileset refid="fullclient"/>\r
+ <manifest>\r
+ <attribute name="Built-By" value="${author}" />\r
+ <attribute name="Class-Path" value="." />\r
+ <attribute name="Implementation-Title" value="Full ${product} Client" />\r
+ <attribute name="Implementation-Vendor" value="${author}" />\r
+ <attribute name="Implementation-URL" value="${project.url}" />\r
+ </manifest>\r
+ </jar>\r
+ </target>\r
+\r
+ <target name="aacon-ws-client-jar" depends="compile, datamodel-jar" description="Pack metadata, data model, WS interfaces, a simple ws client class">\r
<echo>Jar file: AAConWS client jar</echo>\r
<delete file="${basedir}/${aacon-ws-client}">\r
</delete>\r
</jar>\r
</target>\r
\r
- <target name="source-jar" description="Pack java sources" depends="datamodel-source-jar">\r
+ <target name="full-jaba-client" depends="full-jaba-client-jar, pack-binaries" description="Pack binaries with sources and configuration files">\r
+ <echo>Packing binaries, and configuration files</echo>\r
+ <zip destfile="${full-jaba-client-pack}" >\r
+ <zipgroupfileset file="${binaries}" />\r
+ <zipfileset dir="conf" prefix="conf" >\r
+ <exclude name="**/temp/**"/>\r
+ </zipfileset>\r
+ <fileset file="${full-jaba-client}" />\r
+ </zip>\r
+ </target>\r
+\r
+\r
+ <target name="source-jar" depends="datamodel-source-jar" description="Pack java sources">\r
<delete file="${basedir}/${jaba-source-jar}">\r
</delete>\r
<jar jarfile="${basedir}/${jaba-source-jar}">\r
</manifest>\r
</jar>\r
</target>\r
- \r
- <target name="datamodel-source-jar" description="Pack java sources" depends="compile">\r
- <delete file="${datamodel-src}">\r
- </delete>\r
- <jar jarfile="${datamodel-src}">\r
- <fileset dir="${basedir}/datamodel">\r
- <include name="**"/>\r
- </fileset>\r
- <zipgroupfileset excludes="META-INF/*.MF" dir="${lib.path}/src">\r
- <include name="**"/>\r
- </zipgroupfileset>\r
- <manifest>\r
- <attribute name="Built-By" value="${author}" />\r
- <attribute name="Implementation-Title" value="${product} Datamodel Source Code Archive" />\r
- <attribute name="Implementation-Vendor" value="${author}" />\r
- <attribute name="Implementation-URL" value="${project.url}" />\r
- </manifest>\r
- </jar>\r
- </target>\r
\r
- <fileset dir="${basedir}/WEB-INF/classes/" id="fullclient">\r
- <!-- Datamodel -->\r
- <include name="compbio/data/**"/>\r
- <include name="compbio/metadata/**"/>\r
- <!-- Engines -->\r
- <include name="compbio/engine/**"/>\r
- <!-- Runners -->\r
- <include name="compbio/runner/**"/>\r
- <!-- Logging configuration -->\r
- </fileset>\r
-\r
- <target name="full-jaba-client-jar" description="Pack datamodel, engine and runners" depends="compile">\r
- <echo>Jar file: Full WS client jar</echo>\r
- <delete file="${full-jaba-client}">\r
+ <target name="datamodel-source-jar" depends="compile" description="Pack java sources">\r
+ <delete file="${datamodel-src}">\r
</delete>\r
- <jar jarfile="${full-jaba-client}">\r
- <zipgroupfileset excludes="META-INF/*.SF" dir="${web.lib.path}" >\r
- <include name="log4j-1.2.15.jar"/>\r
- <include name="${compbio-util}"/>\r
- <include name="${compbio-annotation}"/>\r
- <include name="drmaa.jar"/>\r
+ <jar jarfile="${datamodel-src}">\r
+ <fileset dir="${basedir}/datamodel">\r
+ <include name="**"/>\r
+ </fileset>\r
+ <zipgroupfileset excludes="META-INF/*.MF" dir="${lib.path}/src">\r
+ <include name="**"/>\r
</zipgroupfileset>\r
- <fileset refid="fullclient"/>\r
<manifest>\r
<attribute name="Built-By" value="${author}" />\r
- <attribute name="Class-Path" value="." />\r
- <attribute name="Implementation-Title" value="Full ${product} Client" />\r
+ <attribute name="Implementation-Title" value="${product} Datamodel Source Code Archive" />\r
<attribute name="Implementation-Vendor" value="${author}" />\r
<attribute name="Implementation-URL" value="${project.url}" />\r
</manifest>\r
</jar>\r
</target>\r
\r
- <target name="full-jaba-client" description="Pack binaries with sources and configuration files" \r
- depends="full-jaba-client-jar, pack-binaries">\r
- <echo>Packing binaries, and configuration files</echo>\r
- <zip destfile="${full-jaba-client-pack}" >\r
- <zipgroupfileset file="${binaries}" />\r
- <zipfileset dir="conf" prefix="conf" >\r
- <exclude name="**/temp/**"/>\r
- </zipfileset>\r
- <fileset file="${full-jaba-client}" />\r
- </zip>\r
- </target>\r
-\r
- \r
- <target name="full-jaba-jar" description="Pack datamodel, engine, runners, configuration, binaries and webservices" depends="compile">\r
+ <target name="full-jaba-jar" depends="compile" description="Pack datamodel, engine, runners, configuration, binaries and webservices">\r
<echo>Jar file: Full WS client jar</echo>\r
<delete file="${full-jaba-client}">\r
</delete>\r
</jar>\r
</target>\r
\r
- <target name="clearStatDB" description="Remove all records from statistics database">\r
- <echo>Cleaning Statistics database</echo>\r
- <java classname="compbio.stat.collector.StatDB" fork="false" failonerror="true" classpath="${classes}">\r
- <classpath refid="project.classpath" />\r
- </java>\r
- </target>\r
- \r
<target name="pack-binaries" description="Zip all binary files">\r
<delete file="${binaries}" failonerror="false"/>\r
<zip destfile="${binaries}" >\r
</zip>\r
</target>\r
\r
-<!-- DEPRICATED \r
- <target name="pack-windows-binaries" description="Zip only windows binary files">\r
- <delete file="${win-binaries}" failonerror="false" />\r
- <zip destfile="${win-binaries}">\r
- <zipfileset dir="${basedir}/binaries" prefix="binaries" >\r
- <include name="matrices/*" />\r
- <include name="windows/*" />\r
- </zipfileset>\r
- </zip>\r
- </target>\r
--->\r
-\r
- <target name="jaba-no-binaries" description="Prepare JABAWS war file without native binaries" depends="full-jaba-jar, clearStatDB">\r
+ <target name="jaba-no-binaries" depends="full-jaba-jar, clearStatDB" description="Prepare JABAWS war file without native binaries">\r
<echo>Preparing a war file without binaries</echo>\r
<delete file="${jaba-no-binaries}">\r
</delete>\r
</zip>\r
</target>\r
\r
- <target name="jaba-complete" description="Prepare JABAWS war file without runtime dependency - JAXWS jars" depends="jaba-no-binaries, pack-binaries">\r
+ <target name="jaba-complete" depends="jaba-no-binaries, pack-binaries" description="Prepare JABAWS war file without runtime dependency - JAXWS jars">\r
<echo>Preparing a complete war file</echo>\r
<delete file="${jaba}">\r
</delete>\r
</zip>\r
</target>\r
\r
-<!--\r
-DEPRICATED - STANDARD JABA WAR WILL WORK FOR WINDOWS JUST FINE, DOWNLOAD SPACE SAVING IS NOT WORTH THE ADDITIONAL COMPLEXITY \r
- <target name="jaba-complete-windows" description="Prepare JABAWS war file for windows" depends="jaba-no-binaries">\r
- <echo>Preparing a complete war file</echo>\r
- <copy tofile="${jaba-windows}" file="${jaba-no-binaries}"/>\r
- <zip destfile="${jaba-windows}" update="true" >\r
- <zipgroupfileset file="${win-binaries}" />\r
- </zip>\r
- </target>\r
--->\r
- \r
- <target name="build-all" description="Build-all the distributives"\r
- depends="full-jaba-client, minimal-jaba-client-jar, jaba-no-binaries, jaba-complete, datamodel-jar, datamodel-source-jar, source-jar, jaba-client-src-jar"/>\r
+ <target name="build-all" depends="full-jaba-client, minimal-jaba-client-jar, jaba-no-binaries, jaba-complete, datamodel-jar, datamodel-source-jar, source-jar, jaba-client-src-jar" description="Build-all the distributives"/>\r
\r
<!-- This task does not really depends on compile, but it is better to make sure that the code is sound -->\r
<target name="archive-project" description="Pack everything in the project for those who do not have access to SVN" depends="compile">\r
</zip>\r
</target>\r
\r
-\r
+<!-- Test targets -->\r
<taskdef name="testNG" classname="org.testng.TestNGAntTask">\r
<classpath refid="test.classpath">\r
</classpath>\r
<sysproperty key="TestingDataPath" value="${data.src}"/>\r
</testNG>\r
</target>\r
-\r
-\r
</project>\r