JAL-3033 clean the site directory before compilation in eclipse
authorJim Procter <jprocter@issues.jalview.org>
Wed, 18 Jul 2018 13:30:44 +0000 (14:30 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 18 Jul 2018 13:30:44 +0000 (14:30 +0100)
build.xml

index 2857897..fb21088 100755 (executable)
--- a/build.xml
+++ b/build.xml
   <!-- git repository linked to project in workspace -->
   <property name="eclipse-workrepo" value="/home/bamboo/buildtools/eclipse/eclipse-js-workspace/jalview-js"/>
 </target>
-<target name="compile-site" depends="prepare-site">
+  <target name="clean-site" depends="prepare-site">
+    <delete dir="${eclipse-workrepo}/${site}"/>
+    <mkdir dir="${eclipse-workrepo}/${site}"/>
+  </target>
+<target name="compile-site" depends="prepare-site,clean-site">
   <!-- update transpiler -->
   <copy file="${swingjsdir}/net.sf.j2s.core.jar" todir="${eclipse-inst}/dropins" overwrite="true" failonerror="true"/>
   <!-- update the git repo linked to the eclipse workspace -->