JAL-2116 explicit replace j2se element with a java9 specific one since orangevolt...
authorJim Procter <jprocter@issues.jalview.org>
Thu, 10 Aug 2017 15:37:30 +0000 (16:37 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 10 Aug 2017 15:37:30 +0000 (16:37 +0100)
build.xml

index c965bc9..59d6d53 100755 (executable)
--- a/build.xml
+++ b/build.xml
         </information>
         <resources>
           <j2se version="${j2sev}" initial_heap_size="${inih}" max_heap_size="${maxh}" />
-          <j2se version="9+" initial_heap_size="${inih}" max_heap_size="${maxh}" java-vm-args="--add-modules java.rmi,java.xml,java.xml.bind,java.xml.ws"/>
+          <j2se version="9+" initial_heap_size="${inih}" max_heap_size="${maxh}"/>
           <jar main="true" href="jalview.jar"/>
           <fileset dir="${packageDir}">
             <exclude name="jalview.jar" />
     </presetdef>
 
     <jnlpf toFile="${jnlpFile}" />
-
+    <!-- add a j2se entry for java 9 -->
+    <replace file="${jnlpFile}" value="j2se version=&quot;9+&quot; initial-heap-size=&quot;${inih}&quot; max-heap-size=&quot;${maxh}&quot; java-vm-args=&quot;--add-modules java.rmi,java.xml,java.xml.bind,java.xml.ws&quot;/&gt;&lt;j2se">
+          <replacetoken>j2se</replacetoken>
+           
+        </replace>
   </target>
 
   <target name="-dofakejnlpfileassoc" depends="-generatejnlpf" if="nojnlpfileassocs">