2 <project name="jalviewX" default="build" basedir=".">
3 <!-- utils is a class path to additional utilities needed for
4 building docs, jars and webstart stuff -->
10 <property name="libDir" value="lib"/>
11 <property name="resourceDir" value="resources"/>
12 <property name="helpDir" value="help"/>
13 <property name="docDir" value="doc"/>
14 <property name="sourceDir" value="src" />
15 <property name="outputDir" value="classes" />
16 <property name="packageDir" value="dist" />
17 <property name="outputJar" value="jalview.jar" />
19 <path id="build.classpath">
21 <include name="*.jar"/>
22 <include name="**/*.jar"/>
24 <fileset dir="${libDir}">
25 <include name="*.jar"/>
26 <include name="**/*.jar"/>
29 <!--> <uptodate property="help.uptodate"
30 targetfile="${helpDir}/helpIndex.xml">
33 includes="**/*.html" />
38 <target name="clean" depends="init">
39 <!-- not efficient yet. -->
40 <delete dir="${outputDir}"/>
43 <target name="distclean" depends="init, clean">
45 <echo message="REMOVING ALL BACKUP/AUTOSAVES!"/>
48 <include name="${outputJar}"/>
50 <include name="#*.*#"/>
51 <include name="**/#*#"/>
52 <include name="**/#*.*#"/>
54 <include name="*.*~"/>
55 <include name="**/*~"/>
56 <include name="**/*.*~"/>
61 <target name="prepare" depends="init">
62 <mkdir dir="${outputDir}"/>
63 <copy todir="${outputDir}">
66 <include name="${docDir}/**/*.*"/>
67 <include name="${helpDir}/**/*.*"/>
68 <include name="${libDir}/*.*"/>
70 <fileset dir="${resourceDir}">
71 <include name="**/*.*"/>
76 <target name="build" depends="prepare">
77 <!-- not efficient yet. -->
78 <javac srcdir="${sourceDir}" destdir="${outputDir}"
79 classpathref="build.classpath" />
81 <target name="buildindices" depends="init, prepare"
82 unless="help.uptodate">
84 classname="com.sun.java.help.search.Indexer"
85 classpathref="build.classpath"
87 dir="${outputDir}/${helpDir}"
93 <target name="makejars" depends="build, buildindices">
94 <!-- make the package jar -->
95 <mkdir dir="${packageDir}"/>
97 <jar destfile="${packageDir}/${outputJar}">
98 <fileset dir="${outputDir}">
99 <exclude name="*.jar" />
103 <copy toDir="${packageDir}" flatten="true">
104 <fileset dir="${outputDir}">
105 <include name="*.jar"/>
106 <include name="**/*.jar"/>
111 storepass="alignmentisfun"
112 keypass="alignmentisfun"
113 keystore="keys/.keystore"
119 <fileset dir="${packageDir}">
120 <include name="*.jar"/>
123 <taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties"/>
125 <!-- codebase="http://www.jalview.org/jalview/webstart" -->
126 <jnlp toFile="${packageDir}/Jalview.jnlp" href="Jalview.jnlp"
129 <title>Jalview</title>
130 <vendor>M Clamp</vendor>
131 <homepage href="www.jalview.org"/>
132 <description>Jalview Multiple Alignment Editor</description>
133 <description kind="short">Jalview</description>
134 <icon href="BartonGroupBanner.gif"/>
137 <j2se version="1.3+"/>
138 <fileset dir="${packageDir}">
139 <include name="*.jar"/>
142 <application_desc main_class="jalview.gui.AlignFrame">
143 <argument>http://www.compbio.dundee.ac.uk/~andrew/jalview/glut.msf</argument>
144 <argument>URL</argument>
145 <argument>MSF</argument>
152 <target name="runenv" depends="init">
153 <path id="run.classpath">
154 <pathelement location="${outputDir}"/>
155 <fileset dir="${outputDir}">
156 <include name="${libDir}/*.jar"/>
159 <pathconvert targetos="unix" refid="run.classpath" property="run.classpath"/>
161 <echo>java -classpath ${run.classpath} jalview.bin.Jalview
166 <target name="package" depends="init, build">