regress fix on JAL-690 - insert association elements with replace task
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 3 Jun 2014 14:35:50 +0000 (15:35 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Tue, 3 Jun 2014 14:35:50 +0000 (15:35 +0100)
build.xml

index 01aea93..0869a7f 100755 (executable)
--- a/build.xml
+++ b/build.xml
           <description kind="short">Jalview</description>
           <icon href="${WebStartImage}" />
           <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="mfa" />
-          <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"/>
-          <association mime-type="application-x/ext-file" extensions="stk"/>
-          <association mime-type="application-x/ext-file" extensions="jvp"/>
         </information>
         <resources>
           <j2se version="${j2sev}" initial_heap_size="${inih}" max_heap_size="${maxh}" />
     </presetdef>
 
     <jnlpf toFile="${jnlpFile}"/>
+    <replace file="${jnlpFile}">
+      <replacetoken><![CDATA[</information>]]></replacetoken>
+      <replacevalue><![CDATA[
+        <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="mfa" />
+        <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"/>
+        <association mime-type="application-x/ext-file" extensions="stk"/>
+        <association mime-type="application-x/ext-file" extensions="jvp"/>
+      </information>]]></replacevalue>
+    </replace>
   </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" />