fixed exception when trying to cancel unwritten archives.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 23 Mar 2006 14:13:46 +0000 (14:13 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 23 Mar 2006 14:13:46 +0000 (14:13 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@204 be28352e-c001-0410-b1a7-c7978e42abec

src/org/vamsas/client/simpleclient/VamsasArchive.java

index c58c5f3..ceaf401 100644 (file)
@@ -294,6 +294,9 @@ public class VamsasArchive {
   public boolean cancelArchive() {
     if (newarchive!=null) {
       try { 
+        newarchive.closeEntry();
+        newarchive.putNextEntry(new JarEntry("deleted"));
+        newarchive.closeEntry();
         newarchive.close();
         
       } catch (Exception e) {