JAL-1432 ensure unsigned jmol jar is actually written Release_2_8_0b1_Branch
authorJalview build Manager <jalview-dev@jalview.org>
Fri, 31 Jan 2014 08:48:49 +0000 (08:48 +0000)
committerJalview build Manager <jalview-dev@jalview.org>
Fri, 31 Jan 2014 08:48:49 +0000 (08:48 +0000)
build.xml

index 3710430..6eab52a 100755 (executable)
--- a/build.xml
+++ b/build.xml
     </presetdef>
     <!-- create differently privileged artefacts -->
     <copy file="${packageDir}/examples/${jalviewLiteJar}" tofile="${packageDir}/examples/u_${jalviewLiteJar}" />
-    <copy file="${packageDir}/examples/${jmolJar}" tofile="${packageDir}/examples/u_${jmolJar}"/>
+    <copy file="${packageDir}/examples/${jmolJar}" tofile="${packageDir}/examples/u_${jmolJar}" overwrite="true"/>
     <copy file="${packageDir}/examples/${jalviewLiteJar}" tofile="${packageDir}/examples/ap_${jalviewLiteJar}" />
     <copy file="${packageDir}/examples/${jmolJar}" tofile="${packageDir}/examples/ap_${jmolJar}"/>
     <ap_applet.jar jarfile="${packageDir}/examples/ap_${jalviewLiteJar}" />
     <signjar storepass="${jalview.keystore.pass}" keypass="${jalview.key.pass}" keystore="${jalview.keystore}" alias="${jalview.key}" lazy="false" verbose="false">
 
       <fileset dir="${packageDir}/examples">
+        <exclude name="u_*.jar"/>
         <include name="${jalviewLiteJar}" />
         <include name="${jmolJar}" />
         <include name="to_${jalviewLiteJar}" />
         <include name="ap_${jmolJar}" />
       </fileset>
     </signjar>
+    <!-- bizarre bug causes JmolApplet to always get signed, even if excluded from above. so copy explicitly -->
+    <copy file="appletlib/${jmolJar}" tofile="${packageDir}/examples/u_${jmolJar}" overwrite="true" />
   </target>
   <target name="sourcedoc" description="Create jalview source documentation pages" depends="init">
     <javadoc destdir="${javadocDir}">