JAL-3033 always run the toJs core file build before building core files from classlis...
[jalview.git] / buildcore.xml
index 8e6144b..76e2e1a 100644 (file)
@@ -6,7 +6,7 @@
     </classpath>
   </taskdef>
 
-  <target name="build-all-cores" id="build-all-cores">
+  <target name="build-all-cores" id="build-all-cores" depends="toJs">
     <foreach target="CallToJs" param="classlist">
       <path>
         <fileset dir="./classlists/" includes="*.txt" />
@@ -50,6 +50,8 @@
     </antcall>
 
     <echo>......Now copy an html file in site/ and add   core:"${core.name}",    to the Info block.</echo>
+    <copy file="site/jalview_bin_Jalview.html" tofile="site/JalviewJS_${core.name}.html"/>
+    <replace token="NONE" value="${core.name}" file="site/JalviewJS_${core.name}.html"/>
 
   </target>