Add task to package sources for datamodel
authorpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Mon, 18 Apr 2011 15:11:54 +0000 (15:11 +0000)
committerpvtroshin <pvtroshin@e3abac25-378b-4346-85de-24260fe3988d>
Mon, 18 Apr 2011 15:11:54 +0000 (15:11 +0000)
git-svn-id: link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2@3968 e3abac25-378b-4346-85de-24260fe3988d

build.xml

index f368ec3..9b30d3a 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -9,6 +9,7 @@
        <property name="distdir" value="website/archive"/>\r
        <mkdir dir="${distdir}" />\r
        <property name="datamodel" value="${distdir}/datamodel-1.1.jar"/>\r
+       <property name="datamodel-src" value="${distdir}/datamodel-src-1.1.jar"/>\r
        <property name="min-jaba-client" value="${distdir}/min-jaba-client.jar"/>\r
        <property name="aacon-ws-client" value="${distdir}/aacon-ws-client.jar"/>\r
        <property name="full-jaba-client" value="${distdir}/full-jaba-client.jar"/>\r
                </jar>\r
 \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
+                               <manifest>\r
+                                       <attribute name="Built-By" value="Peter Troshin" />\r
+                                       <attribute name="Implementation-Title" value="Java Bioinformatics Analyses Web Services Datamodel Source Code Archive" />\r
+                                       <attribute name="Implementation-Vendor" value="Peter Troshin" />\r
+                                       <attribute name="Implementation-URL" value="http://www.compbio.dundee.ac.uk/jabaws" />\r
+                               </manifest>\r
+                       </jar>\r
+               </target>\r
 \r
        <fileset dir="${basedir}/WEB-INF/classes/" id="fullclient">\r
                <!-- Datamodel -->\r