+ <project name="jalviewX" default="usage" basedir=".">
+<!-- we use jalopy to format our sources -->
+<taskdef name="jalopy"
+ classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
+ <classpath>
+ <fileset dir="utils/jalopy/lib">
+ <include name="*.jar" />
+ </fileset>
+ </classpath>
+</taskdef>
+
+ <target name="help" depends="usage"/>
+ <target name="usage">
+ <echo message="~~~Jalview Ant build.xml Usage~~~~"/>
+ <echo message="Targets include:"/>
+ <echo message="usage - default target, displays this message"/>
+ <echo message="buildindices - generates JavaHelpSearch from the help files"/>
+ <echo message="build - compiles all necessary files for Application"/>
+ <echo message="makedist - compiles and places all necessary jar files into directory dist"/>
+ <echo message="makefulldist - signs all jar files and builds jnlp file for full distribution"/>
+ <echo message=" this needs a keystore and key. See docs/building.html for more information."/>
+ <echo message="compileApplet - compiles all necessary files for Applet"/>
+ <echo message="makeApplet - compiles, then packages and obfuscates the Applet"/>
+ <echo message="See docs/building.html and the comments in build file for other targets."/>
+ </target>
+
+
+ <!-- utils is a class path to additional utilities needed for
+ building docs, jars and webstart stuff -->
+
+<!--
+ Userdefined build property defaults
+
+ wsdl.server list (plus namespace mapping info ???) - also want
+ ... to make this a dynamically generatable property
+ WebStart Location
+ Build location - provide a temporary root for speed
+ jarsigner keystore and info
+ Jakarta and axis classpath ?
+ Default argument for starting Jalview (if it exists).
+
+-->
+
+ <target name="init">
+ <path id="axis.classpath">
+<!--> <fileset dir="/usr/local/axis/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <fileset dir="/usr/local/jakarta-tomcat-5/webapps/axis/WEB-INF/lib">
+ <include name="**/*.jar"/>
+ <include name="*.jar"/>
+ </fileset> -->
+ </path>
+ <!-- Jalview Version String displayed by application on startup and used to check for updates -->
+ <property name="JALVIEW_VERSION" value="ANNOTATION_TEST"/>
+ <!-- Don't change anything below here unless you know what you are doing! -->
+ <!-- Url path for WebStart in JNLP file -->
+ <property name="WebStartLocation" value="http://www.jalview.org/webstart"/>
+ <!-- build directory configuration -->
+ <property name="libDir" value="lib"/>
+ <property name="resourceDir" value="resources"/>
+ <property name="helpDir" value="help"/>
+ <property name="docDir" value="doc"/>
+ <property name="sourceDir" value="src" />
+ <property name="outputDir" value="classes" />
+ <property name="packageDir" value="dist" />
+ <property name="outputJar" value="jalview.jar" />
+ <!-- Jalview Web Service Clients - see the comments in 'buildextclients' for details -->
+ <property name="wsdl.File" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/jpred?wsdl" />
+ <property name="wsdl.Files" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/vamsas?wsdlFiles" />
+ <property name="wsdl.MsaWS" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/MuscleWS?wsdl" />
+ <property name="wsdl.MsaWS2" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/ClustalWS?wsdl" />
+ <property name="WSInterf" value="MsaWS" />
+ <property name="wsdl.Namespace" value="vamsas" />
+ <property name="wsdl.ClientNS" value="ext.vamsas" />
+ <!-- the class path for building the application -->
+ <path id="build.classpath">
+ <fileset dir="utils">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${libDir}">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+
+ <taskdef classpath="utils/roxes-ant-tasks-1.2-2004-01-30.jar" resource="com/roxes/tools/ant/taskdefs.properties"/>
+ <target name="buildPropertiesFile" depends="init">
+ <tstamp prefix="build">
+ <format property="date" pattern="dd MMMM yyyy"/>
+ </tstamp>
+ <properties file="${outputDir}/.build_properties">
+ <header>
+ ---Jalview Build Details---
+ </header>
+ <property name="VERSION" value="${JALVIEW_VERSION}"/>
+ <property name="BUILD_DATE" value="${build.date}"/>
+ </properties>
+ </target>
+
+
+ <target name="clean" depends="init">
+ <!-- not efficient yet. -->
+ <delete dir="${outputDir}"/>
+ </target>
+
+ <target name="distclean" depends="init, clean">
+
+ <echo message="REMOVING ALL BACKUP/AUTOSAVES!"/>
+ <delete>
+ <fileset dir=".">
+ <include name="${outputJar}"/>
+ <include name="#*#"/>
+ <include name="#*.*#"/>
+ <include name="**/#*#"/>
+ <include name="**/#*.*#"/>
+ <include name="*~"/>
+ <include name="*.*~"/>
+ <include name="**/*~"/>
+ <include name="**/*.*~"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="prepare" depends="init">
+ <mkdir dir="${outputDir}"/>
+ <copy todir="${outputDir}">
+ <fileset dir=".">
+ <include name="${docDir}/**/*.*"/>
+ <include name="${helpDir}/**/*.*"/>
+ <include name="${libDir}/*.jar"/>
+ </fileset>
+ <fileset dir="${resourceDir}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="build" depends="prepare">
+ <!-- not efficient yet. -->
+ <javac source="1.4" target="1.4"
+ srcdir ="${sourceDir}"
+ destdir="${outputDir}"
+ classpathref="build.classpath">
+ <exclude name="jalview/*applet*"/>
+ <exclude name="com/stevesoft/**"/>
+ </javac>
+ </target>
+ <target name="buildindices" depends="init, prepare"
+ unless="help.uptodate">
+ <java
+ classname="com.sun.java.help.search.Indexer"
+ classpathref="build.classpath"
+ fork="true"
+ dir="${outputDir}/${helpDir}"
+ >
+ <arg line="html"/>
+ </java>
+ </target>
+
+ <target name="makefulldist" depends="makedist">
+ <!-- the default keystore details might need to be edited here -->
+ <signjar
+ storepass="alignmentisfun"
+ keypass="alignmentisfun"
+ keystore="keys/.keystore"
+ alias="jalview"
+ lazy="false"
+ verbose="false"
+ >
+
+ <fileset dir="${packageDir}">
+ <include name="*.jar"/>