+ <target name="build" depends="prepare">
+ <!-- not efficient yet. -->
+ <javac source="1.5" target="1.5" srcdir="${sourceDir}" destdir="${outputDir}" debug="${javac.debug}" classpathref="build.classpath">
+ <exclude name="jalview/*applet*" />
+ <exclude name="jalview/appletgui/**" />
+ <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="${jalview.keystore.pass}" keypass="${jalview.key.pass}" keystore="${jalview.keystore}" alias="${jalview.key}" lazy="false" verbose="false">
+
+ <fileset dir="${packageDir}">
+ <include name="*.jar" />
+ </fileset>
+ </signjar>
+ <taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties" />
+
+ <!-- codebase="http://www.jalview.org/jalview/webstart" -->
+ <!-- href="jalview.jnlp" prevent hard-wired pickup of jnlp in certain javaws versions -->
+ <jnlp toFile="${packageDir}/jalview.jnlp" codebase="${WebStartLocation}">
+ <information>
+ <title>Jalview</title>
+ <vendor>The Barton Group</vendor>
+ <homepage href="http://www.jalview.org" />
+ <description>Jalview Multiple Alignment Editor</description>
+ <description kind="short">Jalview</description>
+ <icon href="logo_big.gif" />
+ <offline_allowed />
+ <!--
+ <association mime-type="application-x/ext-file" extensions="fa"/>
+ <association mime-type="application-x/ext-file" extensions="fasta"/>
+ <association mime-type="application-x/ext-file" extensions="fastq"/>
+ <association mime-type="application-x/ext-file" extensions="blc"/>
+ <association mime-type="application-x/ext-file" extensions="msf"/>
+ <association mime-type="application-x/ext-file" extensions="pfam"/>
+ <association mime-type="application-x/ext-file" extensions="aln"/>
+ <association mime-type="application-x/ext-file" extensions="pir"/>
+ <association mime-type="application-x/ext-file" extensions="amsa"/>
+ -->
+ </information>
+ <resources>
+ <j2se version="1.5+" initial_heap_size="10M" />
+ <fileset dir="${packageDir}">
+ <include name="jalview.jar" />
+ </fileset>
+ <fileset dir="${packageDir}">
+ <include name="*.jar" />
+ <include name="*_*.jar" />
+ <exclude name="jalview.jar" />
+ </fileset>
+ <property name="jalview.version" value="${JALVIEW_VERSION}" />
+ </resources>
+ <application_desc main_class="jalview.bin.Jalview">
+ </application_desc>
+ <security>
+ <all_permissions />
+ </security>
+ </jnlp>
+ <!-- the rest of these jnlp tasks are copy and pastes of the above but with different Vm args -->
+ <jnlp toFile="${packageDir}/jalview_1G.jnlp" codebase="${WebStartLocation}">
+ <information>
+ <title>Jalview</title>
+ <vendor>The Barton Group</vendor>
+ <homepage href="http://www.jalview.org" />
+ <description>Jalview Multiple Alignment Editor</description>
+ <description kind="short">Jalview</description>
+ <icon href="logo_big.gif" />
+ <offline_allowed />
+ <!--
+ <association mime-type="application-x/ext-file" extensions="fa"/>
+ <association mime-type="application-x/ext-file" extensions="fasta"/>
+ <association mime-type="application-x/ext-file" extensions="fastq"/>
+ <association mime-type="application-x/ext-file" extensions="blc"/>
+ <association mime-type="application-x/ext-file" extensions="msf"/>
+ <association mime-type="application-x/ext-file" extensions="pfam"/>
+ <association mime-type="application-x/ext-file" extensions="aln"/>
+ <association mime-type="application-x/ext-file" extensions="pir"/>
+ <association mime-type="application-x/ext-file" extensions="amsa"/>
+ -->
+ </information>
+ <resources>
+ <j2se version="1.5+" initial_heap_size="64M" max_heap_size="512M" />
+ <fileset dir="${packageDir}">
+ <include name="jalview.jar" />
+ </fileset>
+ <fileset dir="${packageDir}">
+ <include name="*.jar" />
+ <include name="*_*.jar" />
+ <exclude name="jalview.jar" />
+ </fileset>
+ <property name="jalview.version" value="${JALVIEW_VERSION}" />
+ </resources>
+ <application_desc main_class="jalview.bin.Jalview">
+ </application_desc>
+ <security>
+ <all_permissions />
+ </security>
+ </jnlp>
+ <jnlp toFile="${packageDir}/jalview_2G.jnlp" codebase="${WebStartLocation}">
+ <information>
+ <title>Jalview</title>
+ <vendor>The Barton Group</vendor>
+ <homepage href="http://www.jalview.org" />
+ <description>Jalview Multiple Alignment Editor</description>
+ <description kind="short">Jalview</description>
+ <icon href="logo_big.gif" />
+ <offline_allowed />
+ <!--
+ <association mime-type="application-x/ext-file" extensions="fa"/>
+ <association mime-type="application-x/ext-file" extensions="fasta"/>
+ <association mime-type="application-x/ext-file" extensions="fastq"/>
+ <association mime-type="application-x/ext-file" extensions="blc"/>
+ <association mime-type="application-x/ext-file" extensions="msf"/>
+ <association mime-type="application-x/ext-file" extensions="pfam"/>
+ <association mime-type="application-x/ext-file" extensions="aln"/>
+ <association mime-type="application-x/ext-file" extensions="pir"/>
+ <association mime-type="application-x/ext-file" extensions="amsa"/>
+ -->
+ </information>
+ <resources>
+ <j2se version="1.5+" initial_heap_size="256M" max_heap_size="1024M" />
+ <fileset dir="${packageDir}">
+ <include name="jalview.jar" />
+ </fileset>
+ <fileset dir="${packageDir}">
+ <include name="*.jar" />
+ <include name="*_*.jar" />
+ <exclude name="jalview.jar" />
+ </fileset>
+ <property name="jalview.version" value="${JALVIEW_VERSION}" />
+ </resources>
+ <application_desc main_class="jalview.bin.Jalview">
+ </application_desc>
+ <security>
+ <all_permissions />
+ </security>
+ </jnlp>
+
+ </target>
+
+ <target name="runenv" depends="init">
+ <path id="run.classpath">
+ <pathelement location="${outputDir}" />
+ <fileset dir="${outputDir}">
+ <include name="${libDir}/*.jar" />
+ </fileset>
+ </path>
+ <pathconvert targetos="unix" refid="run.classpath" property="run.classpath" />
+
+ <echo>java -classpath ${run.classpath} jalview.bin.Jalview