From: jprocter Date: Tue, 12 Jun 2007 14:42:02 +0000 (+0000) Subject: fixed regex to remove all kinds of file separators ('\' must be escaped correctly) X-Git-Tag: Release_0.2~116 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=273a27e050e41178ed2fc45777796d7741e02173;p=vamsas.git fixed regex to remove all kinds of file separators ('\' must be escaped correctly) git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@404 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java index ca68e54..9cbdcb7 100644 --- a/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java +++ b/src/uk/ac/vamsas/client/simpleclient/SimpleClient.java @@ -549,7 +549,7 @@ public class SimpleClient implements IClient { throw new IOException("Directory for client lock files is not a directory or is not accessibl: '"+clientlockFileDir.getAbsolutePath()+"'"); } } - this.clientlockFile = new File (clientlockFileDir, this.getClientHandle().getClientUrn().replaceAll(File.separator, "").replaceAll(":", "").replaceAll(";", "")); + this.clientlockFile = new File (clientlockFileDir, this.getClientHandle().getClientUrn().replaceAll("[:;/\\\\]+","")); log.debug("Creating active client lock file "+ this.clientlockFile.getAbsolutePath()); if (clientlockFile.exists())