JAL-3026 libjs and build-site.xml for updating site directory
authorhansonr <hansonr@stolaf.edu>
Tue, 3 Jul 2018 13:50:09 +0000 (14:50 +0100)
committerhansonr <hansonr@stolaf.edu>
Tue, 3 Jul 2018 13:50:09 +0000 (14:50 +0100)
when SwingJS-site.zip or VARNA-site.zip

build-site.xml [new file with mode: 0644]
libjs/VARNA-site.zip [new file with mode: 0644]

diff --git a/build-site.xml b/build-site.xml
new file mode 100644 (file)
index 0000000..e5202e2
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!--
+ * just a crude unzip of non-Jalview classes for development purposes -BH 2018
+-->
+<project name="jalviewX" default="tosite" basedir="."
+ xmlns:if="ant:if"
+    xmlns:unless="ant:unless">
+       
+  <target name="tosite">
+       
+       <!-- inputs directories -->
+    <property name="resourceDir" value="resources" />          
+       <property name="libjsDir" value="libjs"/>
+    <property name="swingjsDir" value="swingjs"/>
+       
+       <!-- inputs zip files -->
+       <property name="swingjs.zip" value="${swingjsDir}/SwingJS-site.zip" />
+    <property name="varna.zip" value="${libjsDir}/VARNA-site.zip" />
+
+       <!-- output directories -->
+       <property name="site" value="site"/>
+       <property name="j2sDir" value="${site}/swingjs/j2s"/>
+
+       
+       <echo> Unzipping ${swingjs.zip} into ${site} </echo>
+       <unzip src="${swingjs.zip}" dest="${site}/" overwrite="true"/>          
+       <echo> Unzipping ${varna.zip} into ${site} </echo> 
+       <unzip src="${varna.zip}" dest="${site}" overwrite="true"/>     
+       
+       <echo> Copying ${resourceDir} files into ${j2sDir} </echo>
+       <copy todir="${j2sDir}">
+      <fileset dir="${resourceDir}">
+       <include name="**"/>
+       </fileset>
+    </copy>
+       
+</target>
+</project>
diff --git a/libjs/VARNA-site.zip b/libjs/VARNA-site.zip
new file mode 100644 (file)
index 0000000..00b7830
Binary files /dev/null and b/libjs/VARNA-site.zip differ