JAL-3560 Java 11 fix on JAL-3563 moving j11lib set up to top
[jalview.git] / build-libjs.xml
index a182110..c632310 100644 (file)
@@ -1,9 +1,28 @@
 <?xml version="1.0"?>
 <!--
- * just a crude zip up of non-Jalview classes for development purposes -BH 2018
- *
- * external JAR class treatment for JavaScript: see src2/README_SWINGJS.txt
- * 
+
+This ANT task creates the follwing .zip files in the libjs directory:
+
+intervalstore-site.zip
+MiGLayout-site.zip
+VARNA-site.zip
+Some source files from other projects need to be transpiled, but they do not need to be part of the 
+Java compilation. In fact, some of them (MiGLayout) should NOT be part of the Java compilation, because
+the implementation is not complete. 
+
+The solution was to store these files "off-classpath" in srcjar/ and just transfer them temporarily 
+to the classpath (in src2/), compile, and delete the temporary java files. 
+
+The sequence is:
+
+1) copy files from srcjar/ to src2/
+2) let the transpiler do its job on them (automatically, if Project...Build Automatically is checked)
+3) run this ANT task
+4) delete the *.java files in src2/
+
+
+  
  -->
 
 <project name="jalviewX" default="zipall" basedir="."
@@ -18,7 +37,7 @@
        <property name="j2s.dir" value="${site.dir}/swingjs/j2s"/>
        <property name="libjs.dir" value="libjs"/>
 
-       <target name="zipall" depends="zipvarna,zipmig">
+       <target name="zipall" depends="zipvarna,zipmig,zipintervalstore">
                
                
   </target>
                        <zip destfile="${mig.zip}" basedir="${site.dir}" includes="swingjs/j2s/net/miginfocom/**" />
        </target>
 
+       <target name="zipintervalstore">
+         <!-- intervalstore.impl NCList implementation -->
+                   <property name="intervalstore.zip" value="${libjs.dir}/intervalstore-site.zip" />                   
+                       <echo> Zipping up ${intervalstore.zip} </echo>
+                       <zip destfile="${intervalstore.zip}" basedir="${site.dir}" includes="swingjs/j2s/intervalstore/**" />
+       </target>
+
        <!-- already in SwingJS
        <target name="zipjson"  already in SwingJS>
                    <property name="json.zip" value="${libjs.dir}/json-site.zip" />