+ <include name="${libDir}/*.jar"/>
+ </fileset>
+ </path>
+ <pathconvert targetos="unix" refid="run.classpath" property="run.classpath"/>
+
+ <echo>java -classpath ${run.classpath} jalview.bin.Jalview
+ </echo>
+ </target>
+
+ <target name="buildextclients" depends="init">
+ <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"/>
+ <condition property="dontextbuild">
+ <equals arg1="n" arg2="${doextbuild.response}"/>
+ </condition>
+ <condition property="dontextbuild">
+ <equals arg1="N" arg2="${doextbuild.response}"/>
+ </condition>
+ <fail if="dontextbuild">
+ Build External Client Code process aborted by user. Jalview source is unchanged.
+ </fail>
+<!-- Currently, this doesn't happen automatically.
+ 1. Run WSDL2Java as below, which generates an ext.vamsas +
+ vamsas.<datapackages> fileset.
+ 2. refactor ext.vamsas.SpecificserviceWS* to
+ ext.vamsas.ServiceclassWS* that implements the ServiceclassWSI interface.
+ 3. Update the jalview.ws.*WServices classes to reflect the
+ interface type, and all locations of this wsdl type that Jalview
+ might be using.
+
+-->
+ <path id="axisbuild">
+ <path refid="build.classpath"/>
+ </path>
+ <taskdef resource="axis-tasks.properties" classpathref="axisbuild"/>
+ <move todir="./bak">
+ <fileset dir="${sourceDir}" id="client">
+ <include name="${wsdl.ClientNS}/*.*"/>
+ </fileset>
+ </move>
+
+ <axis-wsdl2java
+ output="${sourceDir}"
+ verbose="true"
+ url="${wsdl.MsaWS2}"
+ serverside="false"
+ deployscope="Request"
+ debug="false"
+ helpergen="true"
+ all="true"
+ >
+ <mappingSet>
+ <mapping
+ namespace="${wsdl.Namespace}"
+ package="${wsdl.ClientNS}"
+ />
+ <mapping namespace="http://dataTypes.vamsas"
+ package="${wsdl.ClientNS}"/>
+ </mappingSet>
+ </axis-wsdl2java>
+ </target>
+
+ <target name="makedist" 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>
+ </target>
+
+
+ <!-- jalopy code reformatter -->
+ <target name="sourcescrub" depends="init,build">
+ <jalopy destdir="jsrc" classpathref="run.classpath"
+ convention="jalview-jalopy.xml">
+ <fileset dir="${sourceDir}">
+ <include name="*.java"/>
+ <include name="**/*.java"/>
+ <include name="**/**/*.java"/>