reinstated valid XML content : additional for JAL-775
[jalview.git] / build.xml
1 <?xml version="1.0"?>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
4  * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  * 
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <project name="jalviewX" default="usage" basedir=".">
20         <!-- we use jalopy to format our sources -->
21         <taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin">
22                 <classpath>
23                         <fileset dir="utils/jalopy/lib">
24                                 <include name="*.jar" />
25                         </fileset>
26                 </classpath>
27         </taskdef>
28
29         <target name="help" depends="usage" />
30         <target name="usage">
31                 <echo message="~~~Jalview Ant build.xml Usage~~~~" />
32                 <echo message="Targets include:" />
33                 <echo message="usage - default target, displays this message" />
34                 <echo message="buildindices - generates JavaHelpSearch from the help files" />
35                 <echo message="build - compiles all necessary files for Application" />
36                 <echo message="makedist - compiles and places all necessary jar files into directory dist" />
37                 <echo message="makefulldist - signs all jar files and builds jnlp file for full distribution" />
38                 <echo message="              this needs a keystore and key. See docs/building.html for more information." />
39                 <echo message="compileApplet - compiles all necessary files for Applet" />
40                 <echo message="makeApplet - compiles, then packages and obfuscates the Applet" />
41                 <echo message="See docs/building.html and the comments in build file for other targets." />
42                 <echo message="note: compile and makeApplet require the property java118.home to be set to point to a java 1.1.8 jdk." />
43                 <echo message="Useful -D flags: -Ddonotobfuscate will prevent applet obfuscation" />
44         </target>
45
46
47         <!-- utils is a class path to additional utilities needed for
48     building docs, jars and webstart stuff -->
49         <!--
50         Userdefined build property defaults
51
52         wsdl.server list (plus namespace mapping info ???)  - also want
53                 ... to make this a dynamically generatable property
54         WebStart Location
55         Build location - provide a temporary root for speed
56         jarsigner keystore and info
57         Jakarta and axis classpath ?
58         Default argument for starting Jalview (if it exists).
59
60 -->
61
62         <target name="init">
63                 <path id="axis.classpath">
64                         <!-->
65                         <fileset dir="/usr/local/axis/lib">
66                                 <include name="**/*.jar" />
67                         </fileset>
68                         <fileset dir="/usr/local/jakarta-tomcat-5/webapps/axis/WEB-INF/lib">
69                                 <include name="**/*.jar"/>
70                                 <include name="*.jar"/>
71                         </fileset> -->
72       </path>
73                 <!-- Jalview Version String displayed by application on startup and used to check for updates -->
74                 <property name="JALVIEW_VERSION" value="DEVELOPMENT" />
75                 <!-- 2.4 (VAMSAS)" -->
76                 <!-- Include debugging information in javac true or false -->
77                 <property name="javac.debug" value="true" />
78
79                 <!-- JarSigner Key Store for Webstart Distribution -->
80                 <property name="jalview.keystore" value="./keys/.keystore" />
81                 <!-- Keystore Password -->
82                 <property name="jalview.keystore.pass" value="alignmentisfun" />
83                 <!-- Key Name -->
84                 <property name="jalview.key" value="jalview" />
85                 <!-- Key Password -->
86                 <property name="jalview.key.pass" value="alignmentisfun" />
87
88                 <!-- Don't change anything below here unless you know what you are doing! -->
89                 <!-- Url path for WebStart in JNLP file -->
90                 <property name="WebStartLocation" value="http://www.jalview.org/webstart" />
91                 <!-- build directory configuration -->
92                 <property name="libDir" value="lib" />
93                 <property name="resourceDir" value="resources" />
94                 <property name="helpDir" value="help" />
95                 <property name="docDir" value="doc" />
96                 <property name="sourceDir" value="src" />
97                 <property name="schemaDir" value="schemas" />
98                 <property name="outputDir" value="classes" />
99                 <property name="packageDir" value="dist" />
100                 <property name="outputJar" value="jalview.jar" />
101                 <!-- Jalview Applet JMol Jar Dependency -->
102                 <property name="jmolJar" value="JmolApplet-12.1.13.jar" />
103                 <property name="jalviewLiteJar" value="jalviewApplet.jar" />
104                 <!-- switch to indicate if we should obfuscate jalviewLite -->
105                 <!--<property name="donotobfuscate" value="true"/> -->
106
107                 <!-- Jalview Web Service Clients - see the comments in 'buildextclients' for details -->
108                 <property name="wsdl.File" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/jpred?wsdl" />
109                 <property name="wsdl.Files" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/vamsas?wsdlFiles" />
110                 <property name="wsdl.MsaWS" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/MuscleWS?wsdl" />
111                 <property name="wsdl.MsaWS2" value="http://www.compbio.dundee.ac.uk/JalviewWS/services/ClustalWS?wsdl" />
112                 <property name="WSInterf" value="MsaWS" />
113                 <property name="wsdl.Namespace" value="vamsas" />
114                 <property name="wsdl.ClientNS" value="ext.vamsas" />
115                 <!-- the class path for building the application -->
116                 <path id="build.classpath">
117                         <fileset dir="utils">
118                                 <include name="*.jar" />
119                                 <include name="**/*.jar" />
120                         </fileset>
121                         <fileset dir="${libDir}">
122                                 <include name="*.jar" />
123                                 <include name="**/*.jar" />
124                         </fileset>
125                         <fileset dir="${java.home}/lib">
126                                 <include name="plugin.jar"/>
127                         </fileset>
128                         <fileset dir="appletlib">
129                                 <!-- the JmolApplet includes the JmolApplet console and the application javac seems to always try and build all packages 
130                                 -->
131                                 <include name="${jmolJar}" />
132                         </fileset>
133
134                 </path>
135                 <property name="source.dist.name" value="${basedir}/jalview-src.tar.gz" />
136                 <!-- The Location of the java 1.1.8 jdk -->
137                 <property name="java118.home" value="C:\Sun\jdk1.1.8" />
138                 <!--<property name="applet.jre.tools" value="${java118.home}/lib/classes.zip" />
139                 --><!-- jre for 1.4 version -->
140                 <property name="applet.jre.tools" value="${java.home}/lib/rt.jar"/>
141                 
142                 <!-- the classpath for building the 1.1 applet -->
143                 <path id="jalviewlite.deps">
144                         <fileset dir="${java118.home}">
145                                 <include name="lib/classes.zip" />
146                         </fileset>
147                         <fileset dir="${java.home}/lib">
148                                 <include name="plugin.jar"/>
149                         </fileset>
150                         <pathelement location="appletlib/${jmolJar}" />
151                 </path>
152         </target>
153
154
155         <taskdef classpath="utils/roxes-ant-tasks-1.2-2004-01-30.jar" resource="com/roxes/tools/ant/taskdefs.properties" />
156         <target name="buildPropertiesFile" depends="init">
157                 <tstamp prefix="build">
158                         <format property="date" pattern="dd MMMM yyyy" />
159                 </tstamp>
160                 <properties file="${outputDir}/.build_properties">
161                         <header>
162           ---Jalview Build Details---
163         </header>
164                         <property name="VERSION" value="${JALVIEW_VERSION}" />
165                         <property name="BUILD_DATE" value="${build.date}" />
166                 </properties>
167         </target>
168
169
170         <target name="clean" depends="init">
171                 <!-- not efficient yet. -->
172                 <delete dir="${outputDir}" />
173         </target>
174
175         <target name="distclean" depends="init, clean">
176
177                 <echo message="REMOVING ALL BACKUP/AUTOSAVES!" />
178                 <delete>
179                         <fileset dir=".">
180                                 <include name="${outputJar}" />
181                                 <include name="#*#" />
182                                 <include name="#*.*#" />
183                                 <include name="**/#*#" />
184                                 <include name="**/#*.*#" />
185                                 <include name="*~" />
186                                 <include name="*.*~" />
187                                 <include name="**/*~" />
188                                 <include name="**/*.*~" />
189                         </fileset>
190                 </delete>
191         </target>
192
193         <target name="prepare" depends="init">
194                 <mkdir dir="${outputDir}" />
195                 <copy todir="${outputDir}">
196                         <fileset dir=".">
197                                 <include name="${docDir}/**/*.*" />
198                                 <include name="${helpDir}/**/*.*" />
199                                 <include name="${libDir}/*.jar" />
200                         </fileset>
201                         <fileset dir="${resourceDir}">
202                                 <include name="**/*.*" />
203                         </fileset>
204                 </copy>
205         </target>
206
207         <target name="build" depends="prepare">
208                 <!-- not efficient yet. -->
209                 <javac source="1.5" target="1.5" srcdir="${sourceDir}" destdir="${outputDir}" debug="${javac.debug}" classpathref="build.classpath">
210                         <exclude name="jalview/*applet*" />
211                         <exclude name="jalview/appletgui/**" />
212                         <exclude name="com/stevesoft/**" />
213                 </javac>
214         </target>
215         <target name="buildindices" depends="init, prepare" unless="help.uptodate">
216                 <java classname="com.sun.java.help.search.Indexer" classpathref="build.classpath" fork="true" dir="${outputDir}/${helpDir}">
217                         <arg line="html" />
218                 </java>
219         </target>
220
221         <target name="makefulldist" depends="makedist">
222                 <!-- the default keystore details might need to be edited here -->
223                 <signjar storepass="${jalview.keystore.pass}" keypass="${jalview.key.pass}" keystore="${jalview.keystore}" alias="${jalview.key}" lazy="false" verbose="false">
224
225                         <fileset dir="${packageDir}">
226                                 <include name="*.jar" />
227                         </fileset>
228                 </signjar>
229                 <taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties" />
230
231                 <!--    codebase="http://www.jalview.org/jalview/webstart" -->
232                 <!-- href="jalview.jnlp" prevent hard-wired pickup of jnlp in certain javaws versions -->
233                 <jnlp toFile="${packageDir}/jalview.jnlp" codebase="${WebStartLocation}">
234                         <information>
235                                 <title>Jalview</title>
236                                 <vendor>The Barton Group</vendor>
237                                 <homepage href="http://www.jalview.org" />
238                                 <description>Jalview Multiple Alignment Editor</description>
239                                 <description kind="short">Jalview</description>
240                                 <icon href="logo_big.gif" />
241                                 <offline_allowed />
242                                 <!--
243         <association mime-type="application-x/ext-file" extensions="fa"/>
244         <association mime-type="application-x/ext-file" extensions="fasta"/>
245         <association mime-type="application-x/ext-file" extensions="fastq"/>
246         <association mime-type="application-x/ext-file" extensions="blc"/>
247         <association mime-type="application-x/ext-file" extensions="msf"/>
248         <association mime-type="application-x/ext-file" extensions="pfam"/>
249         <association mime-type="application-x/ext-file" extensions="aln"/>
250         <association mime-type="application-x/ext-file" extensions="pir"/>
251         <association mime-type="application-x/ext-file" extensions="amsa"/>
252         -->
253                         </information>
254                         <resources>
255                                 <j2se version="1.5+" initial_heap_size="10M" />
256                                 <fileset dir="${packageDir}">
257                                         <include name="jalview.jar" />
258                                 </fileset>
259                                 <fileset dir="${packageDir}">
260                                         <include name="*.jar" />
261                                         <include name="*_*.jar" />
262                                         <exclude name="jalview.jar" />
263                                 </fileset>
264                                 <property name="jalview.version" value="${JALVIEW_VERSION}" />
265                         </resources>
266                         <application_desc main_class="jalview.bin.Jalview">
267                         </application_desc>
268                         <security>
269                                 <all_permissions />
270                         </security>
271                 </jnlp>
272                 <!-- the rest of these jnlp tasks are copy and pastes of the above but with different Vm args -->
273                 <jnlp toFile="${packageDir}/jalview_1G.jnlp" codebase="${WebStartLocation}">
274                         <information>
275                                 <title>Jalview</title>
276                                 <vendor>The Barton Group</vendor>
277                                 <homepage href="http://www.jalview.org" />
278                                 <description>Jalview Multiple Alignment Editor</description>
279                                 <description kind="short">Jalview</description>
280                                 <icon href="logo_big.gif" />
281                                 <offline_allowed />
282                                 <!--
283                 <association mime-type="application-x/ext-file" extensions="fa"/>
284                 <association mime-type="application-x/ext-file" extensions="fasta"/>
285                 <association mime-type="application-x/ext-file" extensions="fastq"/>
286                 <association mime-type="application-x/ext-file" extensions="blc"/>
287                 <association mime-type="application-x/ext-file" extensions="msf"/>
288                 <association mime-type="application-x/ext-file" extensions="pfam"/>
289                 <association mime-type="application-x/ext-file" extensions="aln"/>
290                 <association mime-type="application-x/ext-file" extensions="pir"/>
291                 <association mime-type="application-x/ext-file" extensions="amsa"/>
292                 -->
293                         </information>
294                         <resources>
295                                 <j2se version="1.5+" initial_heap_size="64M" max_heap_size="512M" />
296                                 <fileset dir="${packageDir}">
297                                         <include name="jalview.jar" />
298                                 </fileset>
299                                 <fileset dir="${packageDir}">
300                                         <include name="*.jar" />
301                                         <include name="*_*.jar" />
302                                         <exclude name="jalview.jar" />
303                                 </fileset>
304                                 <property name="jalview.version" value="${JALVIEW_VERSION}" />
305                         </resources>
306                         <application_desc main_class="jalview.bin.Jalview">
307                         </application_desc>
308                         <security>
309                                 <all_permissions />
310                         </security>
311                 </jnlp>
312                 <jnlp toFile="${packageDir}/jalview_2G.jnlp" codebase="${WebStartLocation}">
313                         <information>
314                                 <title>Jalview</title>
315                                 <vendor>The Barton Group</vendor>
316                                 <homepage href="http://www.jalview.org" />
317                                 <description>Jalview Multiple Alignment Editor</description>
318                                 <description kind="short">Jalview</description>
319                                 <icon href="logo_big.gif" />
320                                 <offline_allowed />
321                                 <!--
322                         <association mime-type="application-x/ext-file" extensions="fa"/>
323                         <association mime-type="application-x/ext-file" extensions="fasta"/>
324                         <association mime-type="application-x/ext-file" extensions="fastq"/>
325                         <association mime-type="application-x/ext-file" extensions="blc"/>
326                         <association mime-type="application-x/ext-file" extensions="msf"/>
327                         <association mime-type="application-x/ext-file" extensions="pfam"/>
328                         <association mime-type="application-x/ext-file" extensions="aln"/>
329                         <association mime-type="application-x/ext-file" extensions="pir"/>
330                         <association mime-type="application-x/ext-file" extensions="amsa"/>
331                         -->
332                         </information>
333                         <resources>
334                                 <j2se version="1.5+" initial_heap_size="256M" max_heap_size="1024M" />
335                                 <fileset dir="${packageDir}">
336                                         <include name="jalview.jar" />
337                                 </fileset>
338                                 <fileset dir="${packageDir}">
339                                         <include name="*.jar" />
340                                         <include name="*_*.jar" />
341                                         <exclude name="jalview.jar" />
342                                 </fileset>
343                                 <property name="jalview.version" value="${JALVIEW_VERSION}" />
344                         </resources>
345                         <application_desc main_class="jalview.bin.Jalview">
346                         </application_desc>
347                         <security>
348                                 <all_permissions />
349                         </security>
350                 </jnlp>
351
352         </target>
353
354         <target name="runenv" depends="init">
355                 <path id="run.classpath">
356                         <pathelement location="${outputDir}" />
357                         <fileset dir="${outputDir}">
358                                 <include name="${libDir}/*.jar" />
359                         </fileset>
360                 </path>
361                 <pathconvert targetos="unix" refid="run.classpath" property="run.classpath" />
362
363                 <echo>java -classpath ${run.classpath} jalview.bin.Jalview
364       </echo>
365         </target>
366
367         <target name="buildextclients" depends="init">
368                 <input message="Building external client source from WSDLs - Do you really want to do this ? (Yy/Nn)" validargs="Y,y,n,N" defaultvalue="N" addproperty="doextbuild.response" />
369                 <condition property="dontextbuild">
370                         <equals arg1="n" arg2="${doextbuild.response}" />
371                 </condition>
372                 <condition property="dontextbuild">
373                         <equals arg1="N" arg2="${doextbuild.response}" />
374                 </condition>
375                 <fail if="dontextbuild">
376         Build External Client Code process aborted by user. Jalview source is unchanged.
377       </fail>
378                 <!-- Currently, this doesn't happen automatically.
379      1. Run WSDL2Java as below, which generates an ext.vamsas +
380      vamsas.<datapackages> fileset.
381      2. refactor ext.vamsas.SpecificserviceWS* to
382      ext.vamsas.ServiceclassWS* that implements the ServiceclassWSI interface.
383      3. Update the jalview.ws.*WServices classes to reflect the
384      interface type, and all locations of this wsdl type that Jalview
385      might be using.
386
387 -->
388                 <path id="axisbuild">
389                         <path refid="build.classpath" />
390                 </path>
391                 <taskdef resource="axis-tasks.properties" classpathref="axisbuild" />
392                 <move todir="./bak">
393                         <fileset dir="${sourceDir}" id="client">
394                                 <include name="${wsdl.ClientNS}/*.*" />
395                         </fileset>
396                 </move>
397
398                 <axis-wsdl2java output="${sourceDir}" verbose="true" url="${wsdl.MsaWS2}" serverside="false" deployscope="Request" debug="false" helpergen="true" all="true">
399                         <mappingSet>
400                                 <mapping namespace="${wsdl.Namespace}" package="${wsdl.ClientNS}" />
401                                 <mapping namespace="http://dataTypes.vamsas" package="${wsdl.ClientNS}" />
402                         </mappingSet>
403                 </axis-wsdl2java>
404         </target>
405
406         <target name="makedist" depends="build, buildPropertiesFile, buildindices">
407                 <!-- make the package jar if not already existing -->
408                 <mkdir dir="${packageDir}" />
409                 <!-- clean dir if it already existed -->
410                 <delete>
411                         <fileset dir="${packageDir}">
412                                 <include name="*.jar"/>
413                         </fileset>
414                 </delete>
415                 <jar destfile="${packageDir}/${outputJar}">
416                         <manifest>
417                                 <attribute name="Main-Class" value="jalview.bin.Jalview" />
418                         </manifest>
419                         <fileset dir="${outputDir}/">
420                                 <exclude name="cache*/**" />
421                                 <exclude name="*.jar" />
422                                 <exclude name="*.jar.*" />
423                                 <exclude name="**/*.jar" />
424                                 <exclude name="**/*.jar.*" />
425                         </fileset>
426                 </jar>
427
428                 <copy toDir="${packageDir}" flatten="true">
429                         <fileset dir="${outputDir}">
430                                 <include name="*.jar" />
431                                 <include name="**/*.jar" />
432                         </fileset>
433                 </copy>
434         </target>
435
436
437         <!-- jalopy code reformatter -->
438         <target name="sourcescrub" depends="init,build">
439                 <jalopy destdir="jsrc" classpathref="run.classpath" convention="jalview-jalopy.xml">
440                         <fileset dir="${sourceDir}">
441                                 <include name="*.java" />
442                                 <include name="**/*.java" />
443                                 <include name="**/**/*.java" />
444                         </fileset>
445                 </jalopy>
446         </target>
447
448
449
450         <!-- Compile, package and obfuscate Jalview Applet -->
451         <target name="makeApplet" depends="obfuscate" />
452
453         <target name="compileApplet" depends="init,clean">
454                 <mkdir dir="${outputDir}" />
455                 <javac source="1.5" target="1.5" srcdir="${sourceDir}" destdir="${outputDir}" debug="${javac.debug}" 
456                         classpathref="jalviewlite.deps" includes="jalview/appletgui/**"
457                         excludes="ext/**,MCview/**,org/**,vamsas/**" />
458         </target>
459
460         <target name="packageApplet" depends="compileApplet, buildPropertiesFile">
461                 <copy file="${resourceDir}/images/idwidth.gif" toFile="${outputDir}/images/idwidth.gif" />
462                 <copy file="${resourceDir}/images/link.gif" toFile="${outputDir}/images/link.gif" />
463                 <jar destfile="in.jar">
464                         <manifest>
465                                 <attribute name="Main-Class" value="jalview.bin.JalviewLite" />
466                         </manifest>
467                         <fileset dir="${outputDir}">
468                                 <include name="com/**" />
469                                 <include name="MCview/**" />
470                                 <include name="jalview/**" />
471                                 <include name=".build_properties" />
472                                 <include name="images/idwidth.gif" />
473                                 <include name="images/link.gif" />
474                         </fileset>
475                 </jar>
476         </target>
477         <target name="obfuscate" depends="-obfuscatefake,-obfuscatereally" description="construct the final jalviewLite applet jar with or without obfuscation">
478         </target>
479         <target name="-obfuscatefake" depends="packageApplet" if="donotobfuscate">
480                 <copy file="in.jar" tofile="${jalviewLiteJar}" overwrite="true" />
481                 <delete file="in.jar" />
482         </target>
483         <target name="-obfuscatereally" unless="donotobfuscate">
484
485                 <path id="obfuscateDeps.path">
486                         <pathelement location="${applet.jre.tools}" />
487                         <pathelement location="appletlib/${jmolJar}" />
488                 </path>
489                 <taskdef resource="proguard/ant/task.properties" classpath="utils/proguard.jar" />
490
491                 <proguard>
492                         <injar file="in.jar" />
493                         <outjar file="${jalviewLiteJar}" />
494                         <libraryjar refid="obfuscateDeps.path" />
495                         <keep access="public" type="class" name="jalview.bin.JalviewLite">
496                                 <field access="public" />
497                                 <method access="public" />
498                                 <constructor access="public" />
499                         </keep>
500                         <!--      -libraryjars "${obfuscateDeps}"
501       -injars      in.jar
502       -outjars     jalviewApplet.jar
503       -keep public class jalview.bin.JalviewLite
504        { public * ; } -->
505                 </proguard>
506                 <delete file="in.jar" />
507         </target>
508
509         <target name="castorbinding" depends="init" description="Generate Java bindings to supported Jalview XML models.">
510                 <taskdef name="castor-srcgen" classname="org.castor.anttask.CastorCodeGenTask" classpathref="build.classpath" />
511                 <delete>
512                         <fileset dir="${sourceDir}/jalview/schemabinding/version2">
513                                 <include name="*.java" />
514                                 <include name="descriptors/*.java" />
515                         </fileset>
516                 </delete>
517                 <castor-srcgen file="${schemaDir}/vamsas.xsd" todir="${sourceDir}" package="jalview.schemabinding.version2" warnings="false" nodesc="false" verbose="true" properties="${schemaDir}/jalview.properties" />
518                 <castor-srcgen file="${schemaDir}/JalviewUserColours.xsd" todir="${sourceDir}" package="jalview.schemabinding.version2" warnings="false" nodesc="false" verbose="true" properties="${schemaDir}/jalview.properties" />
519                 <castor-srcgen file="${schemaDir}/JalviewWsParamSet.xsd" todir="${sourceDir}" package="jalview.schemabinding.version2" warnings="false" nodesc="false" verbose="true" properties="${schemaDir}/jalview.properties" />
520                 <castor-srcgen file="${schemaDir}/jalview.xsd" todir="${sourceDir}" package="jalview.schemabinding.version2" warnings="false" nodesc="false" verbose="true" properties="${schemaDir}/jalview.properties" />
521                 <!-- 
522                 now build the jalview.binding package with the old schema set
523                 -->
524                 <delete>
525                         <fileset dir="${sourceDir}/jalview/binding/">
526                                 <include name="**" />
527                         </fileset>
528                 </delete>
529                 <castor-srcgen file="${schemaDir}/vamsasJvV1.xsd" todir="${sourceDir}" package="jalview.binding" warnings="false" nodesc="true" verbose="true" properties="${schemaDir}/jalview.nodesc.properties" />
530                 <castor-srcgen file="${schemaDir}/JalviewUserColours.xsd" todir="${sourceDir}" package="jalview.binding" warnings="false" nodesc="true" verbose="true" properties="${schemaDir}/jalview.nodesc.properties" />
531                 <castor-srcgen file="${schemaDir}/jalviewJvV1.xsd" todir="${sourceDir}" package="jalview.binding" warnings="false" nodesc="true" verbose="true" properties="${schemaDir}/jalview.nodesc.properties" />
532         </target>
533         <target name="sourcedist" description="create jalview source distribution" depends="init">
534                 <delete file="${source.dist.name}" />
535                 <tar destfile="${source.dist.name}" compression="gzip">
536                         <tarfileset dir="./" prefix="jalview" preserveLeadingSlashes="true">
537                                 <include name="LICENSE" />
538                                 <include name="README" />
539                                 <include name="build.xml" />
540                                 <include name="jalview-jalopy.xml" />
541                                 <include name="JalviewApplet.jpx" />
542                                 <include name="JalviewX.jpx" />
543                                 <include name="${sourceDir}/*.java" />
544                                 <include name="${sourceDir}/**/*.java" />
545                                 <include name="${sourceDir}/**/*.cdr" />
546                                 <include name="${libDir}/**/*" />
547                                 <include name="${resourceDir}/**/*" />
548                                 <include name="${helpDir}/**/*" />
549                                 <include name="appletlib/${jmolJar}" />
550                                 <exclude name="**/*locales" />
551                                 <exclude name="*locales/**" />
552                                 <exclude name="utils/InstallAnywhere/**Build.iap_xml" />
553                                 <exclude name="utils/InstallAnywhere/**Build*/**" />
554                                 <exclude name="utils/InstallAnywhere/**Build*/**" />
555                                 <exclude name="utils/InstallAnywhere/**locale*" />
556                                 <exclude name="utils/InstallAnywhere/**locale*/**" />
557                                 <include name="${schemaDir}/**/*" />
558                                 <include name="utils/**/*" />
559                                 <include name="${docDir}/**/*" />
560                         </tarfileset>
561                 </tar>
562         </target>
563 </project>