new target - jar, and added an 'exclude' for Pierre's java5 vamav code (for the moment)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 24 Mar 2006 19:04:20 +0000 (19:04 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 24 Mar 2006 19:04:20 +0000 (19:04 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@210 be28352e-c001-0410-b1a7-c7978e42abec

build.xml

index d42cc2e..fd76bb2 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -8,6 +8,7 @@
                <property name="sourceDir" value="src" />
                <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="vamsas.doc.schema" value="schemas/vamsasDocument.xsd" />
                <property name="vamsas.schema.package" value="org.vamsas.objects.core" />
@@ -108,9 +109,21 @@ inheritRefs="true"/> -->
 
        <target name="build" depends="init, prepare">
                <!-- not efficient yet. : use excludes="*/localtest/*.java" if local tests are not building -->
-               <javac classpathref="build.classpath" debug="on" srcdir="${sourceDir}" destdir="${outputDir}" />
+               <javac classpathref="build.classpath" debug="on" srcdir="${sourceDir}" destdir="${outputDir}" deprecation="on" >
+       <exclude name="uk/ac/ebi/msd/vamsas/**"/>
+               </javac>
+       </target>
+       <target name="jar" depends="build">
+               <jar destfile="${packageDir}/${vamsasClient.jar}">
+               <fileset dir="${outputDir}">
+                 <exclude name="cache*/**"/>
+                 <include name="**/*" />
+                 <exclude name="*.jar.*" />
+                 <exclude name="**/*.jar" />
+                 <exclude name="**/*.jar.*" />
+               </fileset>
+               </jar>
        </target>
-
 </project>