From 55bbfdce1fb111507235850911f5dee151dce1fb Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 23 Mar 2006 14:13:46 +0000 Subject: [PATCH] fixed exception when trying to cancel unwritten archives. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/vamsas/client/simpleclient/VamsasArchive.java b/src/org/vamsas/client/simpleclient/VamsasArchive.java index c58c5f3..ceaf401 100644 --- a/src/org/vamsas/client/simpleclient/VamsasArchive.java +++ b/src/org/vamsas/client/simpleclient/VamsasArchive.java @@ -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) { -- 1.7.10.2