+ <project name="jalviewX" default="build" 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>
+
+
+ <!-- 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>
+
+ <property name="JALVIEW_VERSION" value="2.01"/>
+ <property name="" value=""/>
+ <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" />
+ <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="wsdl.MsaWS2" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/ClustalWS?wsdl" />
+ <property name="WSInterf" value="MsaWS" />
+ <property name="WebStartLocation" value="http://www.jalview.org/webstart"/>
+ <property name="wsdl.Namespace" value="vamsas" />
+ <property name="wsdl.ClientNS" value="ext.vamsas" />
+
+ <path id="build.classpath">
+ <fileset dir="utils">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="${libDir}">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+<!-- <fileset dir="old_lib_signed">
+<include name="lib_axis.jar"/>
+
+ </fileset>-->
+ </path>
+ <!--> <uptodate property="help.uptodate"
+ targetfile="${helpDir}/helpIndex.xml">
+ <srcfiles
+ dir="${helpDir}"
+ includes="**/*.html" />
+ </uptodate>
+ -->
+ </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 hh.mm aa"/>
+ </tstamp>
+ <properties file="${outputDir}/.build_properties">
+ <header>
+ ---Jalview Application Properties---
+ </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="makejars" depends="build, buildPropertiesFile, buildindices">
+ <!-- make the package jar -->
+ <mkdir dir="${packageDir}"/>
+
+ <jar destfile="${packageDir}/${outputJar}">
+ <fileset dir="${outputDir}/">
+ <exclude name="cache*/**"/>
+ <exclude name="*.jar" />
+ <exclude name="*.jar.*" />
+ <exclude name="**/*.jar" />
+ <exclude name="**/*.jar.*" />
+ </fileset>
+ </jar>
+
+ <copy toDir="${packageDir}" flatten="true">
+ <fileset dir="${outputDir}">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ </copy>
+<!-- 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}">