JAL-3026 libjs and build-site.xml for updating site directory
[jalview.git] / build-site.xml
1 <?xml version="1.0"?>
2 <!--
3  * just a crude unzip of non-Jalview classes for development purposes -BH 2018
4 -->
5 <project name="jalviewX" default="tosite" basedir="."
6  xmlns:if="ant:if"
7     xmlns:unless="ant:unless">
8         
9   <target name="tosite">
10         
11         <!-- inputs directories -->
12     <property name="resourceDir" value="resources" />   
13         <property name="libjsDir" value="libjs"/>
14     <property name="swingjsDir" value="swingjs"/>
15         
16         <!-- inputs zip files -->
17         <property name="swingjs.zip" value="${swingjsDir}/SwingJS-site.zip" />
18     <property name="varna.zip" value="${libjsDir}/VARNA-site.zip" />
19
20         <!-- output directories -->
21         <property name="site" value="site"/>
22         <property name="j2sDir" value="${site}/swingjs/j2s"/>
23
24         
25         <echo> Unzipping ${swingjs.zip} into ${site} </echo>
26         <unzip src="${swingjs.zip}" dest="${site}/" overwrite="true"/>          
27  
28         <echo> Unzipping ${varna.zip} into ${site} </echo> 
29         <unzip src="${varna.zip}" dest="${site}" overwrite="true"/>     
30         
31         <echo> Copying ${resourceDir} files into ${j2sDir} </echo>
32         <copy todir="${j2sDir}">
33       <fileset dir="${resourceDir}">
34         <include name="**"/>
35         </fileset>
36     </copy>
37         
38 </target>
39 </project>