fixed regex to remove all kinds of file separators ('\' must be escaped correctly)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 12 Jun 2007 14:42:02 +0000 (14:42 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 12 Jun 2007 14:42:02 +0000 (14:42 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@404 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/SimpleClient.java

index ca68e54..9cbdcb7 100644 (file)
@@ -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())