2 <project name="jalviewX" default="build" basedir=".">
3 <!-- we use jalopy to format our sources -->
5 classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
7 <fileset dir="utils/jalopy/lib">
8 <include name="*.jar" />
12 <!-- utils is a class path to additional utilities needed for
13 building docs, jars and webstart stuff -->
16 Userdefined build property defaults
18 wsdl.server list (plus namespace mapping info ???) - also want
19 ... to make this a dynamically generatable property
21 Build location - provide a temporary root for speed
22 jarsigner keystore and info
23 Jakarta and axis classpath ?
24 Default argument for starting Jalview (if it exists).
29 <path id="axis.classpath">
30 <!--> <fileset dir="/usr/local/axis/lib">
31 <include name="**/*.jar" />
33 <fileset dir="/usr/local/jakarta-tomcat-5/webapps/axis/WEB-INF/lib">
34 <include name="**/*.jar"/>
35 <include name="*.jar"/>
39 <property name="" value=""/>
40 <property name="libDir" value="lib"/>
41 <property name="resourceDir" value="resources"/>
42 <property name="helpDir" value="help"/>
43 <property name="docDir" value="doc"/>
44 <property name="sourceDir" value="src" />
45 <property name="outputDir" value="classes" />
46 <property name="packageDir" value="dist" />
47 <property name="outputJar" value="jalview.jar" />
48 <property name="wsdl.File" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/jpred?wsdl" />
49 <property name="wsdl.Files" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/vamsas?wsdlFiles" />
50 <property name="wsdl.MsaWS" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/MuscleWS?wsdl" />
51 <property name="wsdl.MsaWS2" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/ClustalWS?wsdl" />
52 <property name="wsdl.MsaWS2" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/ClustalWS?wsdl" />
53 <property name="WSInterf" value="MsaWS" />
54 <property name="WebStartLocation" value="http://www.jalview.org/webstart"/>
55 <property name="wsdl.Namespace" value="vamsas" />
56 <property name="wsdl.ClientNS" value="ext.vamsas" />
58 <path id="build.classpath">
60 <include name="*.jar"/>
61 <include name="**/*.jar"/>
63 <fileset dir="${libDir}">
64 <include name="*.jar"/>
65 <include name="**/*.jar"/>
67 <!-- <fileset dir="old_lib_signed">
68 <include name="lib_axis.jar"/>
72 <!--> <uptodate property="help.uptodate"
73 targetfile="${helpDir}/helpIndex.xml">
76 includes="**/*.html" />
81 <target name="clean" depends="init">
82 <!-- not efficient yet. -->
83 <delete dir="${outputDir}"/>
86 <target name="distclean" depends="init, clean">
88 <echo message="REMOVING ALL BACKUP/AUTOSAVES!"/>
91 <include name="${outputJar}"/>
93 <include name="#*.*#"/>
94 <include name="**/#*#"/>
95 <include name="**/#*.*#"/>
97 <include name="*.*~"/>
98 <include name="**/*~"/>
99 <include name="**/*.*~"/>
104 <target name="prepare" depends="init">
105 <mkdir dir="${outputDir}"/>
106 <copy todir="${outputDir}">
109 <include name="${docDir}/**/*.*"/>
110 <include name="${helpDir}/**/*.*"/>
111 <include name="${libDir}/*.*"/>
113 <fileset dir="${resourceDir}">
114 <include name="**/*.*"/>
119 <target name="build" depends="prepare">
120 <!-- not efficient yet. -->
121 <javac source="1.4" target="1.4" srcdir="${sourceDir}" destdir="${outputDir}"
122 classpathref="build.classpath" />
124 <target name="buildindices" depends="init, prepare"
125 unless="help.uptodate">
127 classname="com.sun.java.help.search.Indexer"
128 classpathref="build.classpath"
130 dir="${outputDir}/${helpDir}"
136 <target name="makejars" depends="build, buildindices">
137 <!-- make the package jar -->
138 <mkdir dir="${packageDir}"/>
140 <jar destfile="${packageDir}/${outputJar}">
141 <fileset dir="${outputDir}/">
142 <exclude name="*.jar" />
143 <exclude name="*.jar.*" />
144 <exclude name="**/*.jar" />
145 <exclude name="**/*.jar.*" />
149 <copy toDir="${packageDir}" flatten="true">
150 <fileset dir="${outputDir}">
151 <include name="*.jar"/>
152 <include name="**/*.jar"/>
155 <!-- the default keystore details might need to be edited here -->
157 storepass="alignmentisfun"
158 keypass="alignmentisfun"
159 keystore="keys/.keystore"
165 <fileset dir="${packageDir}">
166 <include name="*.jar"/>
169 <taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties"/>
171 <!-- codebase="http://www.jalview.org/jalview/webstart" -->
172 <jnlp toFile="${packageDir}/Jalview.jnlp" href="Jalview.jnlp"
173 codebase="${WebStartLocation}">
175 <title>Jalview</title>
176 <vendor>Barton Group</vendor>
177 <homepage href="www.jalview.org"/>
178 <description>Jalview Multiple Alignment Editor</description>
179 <description kind="short">Jalview</description>
180 <icon href="BartonGroupBanner.gif"/>
183 <j2se version="1.3+"/>
184 <fileset dir="${packageDir}">
185 <include name="jalview.jar"/>
187 <fileset dir="${packageDir}">
188 <include name="*.jar"/>
189 <exclude name="jalview.jar"/>
192 <application_desc main_class="jalview.bin.Jalview">
199 <target name="runenv" depends="init">
200 <path id="run.classpath">
201 <pathelement location="${outputDir}"/>
202 <fileset dir="${outputDir}">
203 <include name="${libDir}/*.jar"/>
206 <pathconvert targetos="unix" refid="run.classpath" property="run.classpath"/>
208 <echo>java -classpath ${run.classpath} jalview.bin.Jalview
212 <target name="buildextclients" depends="init">
213 <!-- Currently, this doesn't happen automatically.
214 1. Run WSDL2Java as below, which generates an ext.vamsas +
215 vamsas.<datapackages> fileset.
216 2. refactor ext.vamsas.SpecificserviceWS* to
217 ext.vamsas.ServiceclassWS* that implements the ServiceclassWSI interface.
218 3. Update the jalview.ws.*WServices classes to reflect the
219 interface type, and all locations of this wsdl type that Jalview
223 <path id="axisbuild">
224 <!-- <path refid="axis.classpath"/> -->
225 <path refid="build.classpath"/>
227 <taskdef resource="axis-tasks.properties" classpathref="axisbuild"/>
229 <fileset dir="${sourceDir}" id="client">
230 <include name="${wsdl.ClientNS}/*.*"/>
235 output="${sourceDir}"
239 deployscope="Request"
246 namespace="${wsdl.Namespace}"
247 package="${wsdl.ClientNS}"
249 <mapping namespace="http://dataTypes.vamsas"
250 package="${wsdl.ClientNS}"/>
255 <target name="package" depends="init, build">
258 <!-- jalopy code reformatter -->
259 <target name="sourcescrub" depends="init,build">
260 <jalopy destdir="jsrc" classpathref="run.classpath"
261 convention="jalview-jalopy.xml">
262 <fileset dir="${sourceDir}">
263 <include name="*.java"/>
264 <include name="**/*.java"/>
265 <include name="**/**/*.java"/>