Proper README and LICENCE inclusion in vamsas-client.jar and creation of new build...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 5 Nov 2008 10:50:15 +0000 (10:50 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 5 Nov 2008 10:50:15 +0000 (10:50 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@487 be28352e-c001-0410-b1a7-c7978e42abec

build.xml

index 575c193..ab984bb 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -9,7 +9,9 @@
                <property name="outputDir" value="classes" />
                <property name="packageDir" value="packages" />
                <property name="vamsasClient.jar" value="vamsas-client.jar" />
-               <property name="vamsas.schema" value="schemas/vamsas.xsd" />
+               <property name="vamsasClientDoc.jar" value="vamsas-client-docs.jar" />
+               <property name="vamsasClientSource.jar" value="vamsas-client-src-doc.jar" />
+                               <property name="vamsas.schema" value="schemas/vamsas.xsd" />
                <property name="vamsas.doc.schema" value="schemas/vamsasDocument.xsd" />
                <property name="vamsas.schema.package" value="uk.ac.vamsas.objects.core" />
                <property name="vamsas.schema.package.src" value="uk/ac/vamsas/objects/core" />
                <mkdir dir="${outputDir}"/>
                <copy todir="${outputDir}">
                        <fileset dir="${resourceDir}" />
+                       <fileset dir="${basedir}">
+                               <include name="LICENS*"/>
+                               <include name="CONTRIB"/>
+                               <include name="README"/>
+                       </fileset>
                </copy>
        </target>
        <target name="clean" depends="init">
@@ -129,6 +136,36 @@ inheritRefs="true"/> -->
                        <exclude name="commons-logging.properties"/>
                </fileset>
                </jar>
+               <jar destfile="${packageDir}/${vamsasClientDoc.jar}">
+                       <fileset dir="docs/api">
+                               <include name="**/*"/>
+                               <include name="README"/>
+                               <include name="CONTRIB"/>
+                               <include name="LICEN*"/>
+                       </fileset>
+               </jar>
+               <jar destfile="${packageDir}/${vamsasClientSource.jar}">
+                       <fileset dir="${basedir}">
+                               <include name="src/**/*.java"/>
+                               <include name="src/**/*.cdr"/>
+                               <exclude name="*~"/>
+                               <exclude name="**/*.java~"/>
+                               <include name="resources/**"/>
+                               <include name="utils/**"/>
+                               <include name="tools/**"/>
+                               <include name="schemas/**"/>
+                               <include name="test"/>
+                               <include name="docs/**"/>
+                               <include name="tools/**"/>
+                               <include name="lib/**"/>
+                               <include name="README"/>
+                               <include name="CONTRIB"/>
+                               <include name="LICEN*"/>
+                               <include name="*.eclipse*"/>
+                               <include name="*.launch"/>
+                               <include name="build.xml"/>
+                       </fileset>
+                       </jar>
        </target>
        
        <target name="javadoc" depends="init">