From: pmarguerite Date: Wed, 22 Mar 2006 17:29:00 +0000 (+0000) Subject: '!' missing for testing if the session directory is readeable. X-Git-Tag: Release_0.2~320 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=31827eb20fc450c852382221ceb1bb91c710377a;p=vamsas.git '!' missing for testing if the session directory is readeable. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@200 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/org/vamsas/client/simpleclient/VamsasSession.java b/src/org/vamsas/client/simpleclient/VamsasSession.java index 365311d..887ca91 100644 --- a/src/org/vamsas/client/simpleclient/VamsasSession.java +++ b/src/org/vamsas/client/simpleclient/VamsasSession.java @@ -121,7 +121,7 @@ public class VamsasSession { /** * the sessionDir is given as the session location for new clients. */ - File sessionDir; + protected File sessionDir; /** * holds the list of attached clients */ @@ -141,7 +141,7 @@ public class VamsasSession { if (sessionDir==null) throw new Error("Null directory for VamsasSession."); if (sessionDir.exists()) { - if (!sessionDir.isDirectory() || !sessionDir.canWrite() || sessionDir.canRead()) + if (!sessionDir.isDirectory() || !sessionDir.canWrite() || !sessionDir.canRead()) throw new IOException("Cannot access '"+sessionDir+"' as a read/writable Directory."); if (checkSessionFiles(sessionDir)) { // session files exist in the directory @@ -249,7 +249,7 @@ public class VamsasSession { * create a new session with an existing vamsas Document - by copying it into the session. * @param archive */ - protected void setVamsasDocument(File archive) throws IOException { + public void setVamsasDocument(File archive) throws IOException { log.debug("Transferring vamsas data from "+archive+" to session:"+vamArchive.sessionFile); SessionFile xtantdoc = new SessionFile(archive); vamArchive.updateFrom(null, xtantdoc);