added legacy import of version 0.1 SessionLists
[vamsas.git] / build.xml
index 54cb360..ac19664 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,25 +1,25 @@
 <?xml version="1.0"?>
 <!--
-  This file is part of the Vamsas Client version 0.1. 
-  Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, 
-   Andrew Waterhouse and Dominik Lindner.
-  
-  Earlier versions have also been incorporated into Jalview version 2.4 
-  since 2008, and TOPALi version 2 since 2007.
-  
-  The Vamsas Client is free software: you can redistribute it and/or modify
-  it under the terms of the GNU Lesser General Public License as published by
-  the Free Software Foundation, either version 3 of the License, or
-  (at your option) any later version.
-   
-  The Vamsas Client is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU Lesser General Public License for more details.
-  
-  You should have received a copy of the GNU Lesser General Public License
-  along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.
- -->
+   * This file is part of the Vamsas Client version 0.2. 
+   * Copyright 2010 by Jim Procter, Iain Milne, Pierre Marguerite, 
+   *  Andrew Waterhouse and Dominik Lindner.
+   * 
+   * Earlier versions have also been incorporated into Jalview version 2.4 
+   * since 2008, and TOPALi version 2 since 2007.
+   * 
+   * The Vamsas Client is free software: you can redistribute it and/or modify
+   * it under the terms of the GNU Lesser General Public License as published by
+   * the Free Software Foundation, either version 3 of the License, or
+   * (at your option) any later version.
+   *  
+   * The Vamsas Client is distributed in the hope that it will be useful,
+   * but WITHOUT ANY WARRANTY; without even the implied warranty of
+   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   * GNU Lesser General Public License for more details.
+   * 
+   * You should have received a copy of the GNU Lesser General Public License
+   * along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.
+-->
 <project name="vamsas-client" default="build" basedir=".">
 
        <target name="init">
                <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="vamsasClientDoc.jar" value="vamsas-client-docs.jar" />
-               <property name="vamsasClientSource.jar" value="vamsas-client-src-doc.jar" />
-               <property name="vamsasSchemaDocs.jar" value="vamsas-schema-and-doc.jar" />
+               <!-- .jar gets added when the property is used -->
+               <property name="vamsasClient.jar" value="vamsas-client" /> 
+               <property name="vamsasClientDoc.jar" value="vamsas-client-docs" />
+               <property name="vamsasClientSource.jar" value="vamsas-client-src-doc" />
+               <property name="vamsasSchemaDocs.jar" value="vamsas-schema-and-doc" />
                <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" />
@@ -138,8 +139,14 @@ inheritRefs="true"/> -->
        <target name="build" depends="build1.4,build1.5">
                <echo message="Finished building" />
        </target>
-       <target name="jar" depends="build, javadoc">
-               <jar destfile="${packageDir}/${vamsasClient.jar}">
+       <target name="jartarget1.4" if="target1.4" depends="init">
+               <property name="vamsasClient.jar.real" value="${vamsasClient.jar}"/>
+       </target>
+       <target name="jartarget1.5" unless="target1.4" depends="init">
+                       <property name="vamsasClient.jar.real" value="${vamsasClient.jar}-j1.5"/>
+       </target>
+       <target name="jar" depends="build, javadoc,jartarget1.4,jartarget1.5">
+               <jar destfile="${packageDir}/${vamsasClient.jar.real}.jar">
                        <fileset dir="${outputDir}">
                                <exclude name="cache*/**" />
                                <include name="**/*" />
@@ -153,7 +160,7 @@ inheritRefs="true"/> -->
                                <exclude name="commons-logging.properties" />
                        </fileset>
                </jar>
-               <jar destfile="${packageDir}/${vamsasClientDoc.jar}">
+               <jar destfile="${packageDir}/${vamsasClientDoc.jar}.jar">
                        <fileset dir="docs/api">
                                <include name="**/*" />
                        </fileset>
@@ -164,7 +171,7 @@ inheritRefs="true"/> -->
                                <include name="COPYING*" />
                        </fileset>
                </jar>
-               <jar destfile="${packageDir}/${vamsasSchemaDocs.jar}">
+               <jar destfile="${packageDir}/${vamsasSchemaDocs.jar}.jar">
                        <fileset dir="${basedir}/schemas">
                                <include name="*.xsd" />
                        </fileset>
@@ -175,7 +182,7 @@ inheritRefs="true"/> -->
                                <include name="COPYING*" />
                        </fileset>
                </jar>
-               <jar destfile="${packageDir}/${vamsasClientSource.jar}">
+               <jar destfile="${packageDir}/${vamsasClientSource.jar}.jar">
                        <fileset dir="${basedir}">
                                <include name="src/**/*.java" />
                                <include name="src/**/*.cdr" />