+ <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="makejars" depends="build, buildPropertiesFile, buildindices">
+ <!-- make the package jar -->
+ <mkdir dir="${packageDir}"/>
+
+ <jar destfile="${packageDir}/${outputJar}">
+ <manifest>
+ <attribute name="Main-Class" value="jalview.bin.Jalview"/>
+ </manifest>
+ <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="password"
+ keypass="password"
+ keystore="C:/JalviewX/myKeys"
+ alias="jalview"
+ lazy="false"
+ verbose="false"
+ >
+
+ <fileset dir="${packageDir}">
+ <include name="jalview.jar"/>