fixed regex to remove all kinds of file separators ('\' must be escaped correctly)
[vamsas.git] / 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())