xmlns:unless="ant:unless">
<!-- inputs directories -->
- <property name="resourceDir" value="resources" />
- <property name="libjsDir" value="libjs"/>
- <property name="swingjsDir" value="swingjs"/>
+ <property name="resource.dir" value="resources" />
+ <property name="libjs.dir" value="libjs"/>
+ <property name="swingjs.dir" value="swingjs"/>
<!-- output directories -->
- <property name="site" value="site"/>
- <property name="j2sDir" value="${site}/swingjs/j2s"/>
- <property name="libjsDir" value="libjs"/>
+ <property name="site.dir" value="site"/>
+ <property name="j2s.dir" value="${site.dir}/swingjs/j2s"/>
+ <property name="libjs.dir" value="libjs"/>
<target name="zipall" depends="zipvarna,zipmig,zipjson">
<target name="zipvarna">
<!-- VARNA -->
- <property name="varna.zip" value="${libjsDir}/VARNA-site.zip" />
+ <property name="varna.zip" value="${libjs.dir}/VARNA-site.zip" />
<echo> Zipping up ${varna.zip} </echo>
- <zip destfile="${varna.zip}" basedir="${site}" includes="fr_*.html,swingjs/j2s/fr/**" />
+ <zip destfile="${varna.zip}" basedir="${site.dir}" includes="fr_*.html,swingjs/j2s/fr/**" />
</target>
<target name="zipmig">
<!-- net.miginfo.com MiGLayout -->
- <property name="mig.zip" value="${libjsDir}/MiGLayout-site.zip" />
+ <property name="mig.zip" value="${libjs.dir}/MiGLayout-site.zip" />
<echo> Zipping up ${mig.zip} </echo>
- <zip destfile="${mig.zip}" basedir="${site}" includes="swingjs/j2s/net/miginfocom/**" />
+ <zip destfile="${mig.zip}" basedir="${site.dir}" includes="swingjs/j2s/net/miginfocom/**" />
</target>
- <!-- log4j minimal implementation is in jalview/javascript
+ <target name="zipjson">
+ <!-- org.json.simple -->
+ <property name="json.zip" value="${libjs.dir}/jsonsimple-site.zip" />
+ <echo> Zipping up ${json.zip} </echo>
+ <zip destfile="${json.zip}" basedir="${site.dir}" includes="swingjs/j2s/org/json/**" />
+ </target>
+
+ <!-- log4j minimal implementation is already in jalview/javascript
and is mapped from org.apache.log4j by the following .j2s line:
j2s.class.replacements=org.apache.log4j.->jalview.javascript.log4j.
<target name="ziplog4j">
<!- org.apache.log4j ->
- <property name="log4j.zip" value="${libjsDir}/log4j-site.zip" />
+ <property name="log4j.zip" value="${libjs.dir}/log4j-site.zip" />
<echo> Zipping up ${log4j.zip} </echo>
- <zip destfile="${log4j.zip}" basedir="${site}" includes="swingjs/j2s/org/apache/log4j/**" />
+ <zip destfile="${log4j.zip}" basedir="${site.dir}" includes="swingjs/j2s/org/apache/log4j/**" />
</target>
-->
- <target name="zipjson">
- <!-- org.json.simple -->
- <property name="json.zip" value="${libjsDir}/jsonsimple-site.zip" />
- <echo> Zipping up ${json.zip} </echo>
- <zip destfile="${json.zip}" basedir="${site}" includes="swingjs/j2s/org/json/**" />
- </target>
-
</project>
- requires tools/ant-contrib.jar
- creates the site/ directory if it does not exist
- - unzip libjs *.zip into site/swingjs/j2s
- - unzips SwingJS-site.zip into site/
- - copies non-java resources into site/swingjs/j2s
+ - unzip libjs/*.zip into site/swingjs/j2s
+ - unzips swingjs/SwingJS-site.zip into site/
+ - copies non-java resources from resources/ into site/swingjs/j2s
-->
-<project name="jalviewX" default="tosite" basedir="."
+<project name="swingjs-project" default="tosite" basedir="."
xmlns:if="ant:if"
xmlns:unless="ant:unless">