Make muscle executable compilation not static to fix problem on Macs
[jabaws.git] / engine / compbio / engine / conf / DirectoryManager.java
index 10427dd..adceacc 100644 (file)
@@ -41,7 +41,7 @@ public class DirectoryManager {
                // to make sure that the resulting number fits into long value\r
                String longNum = new Long(System.nanoTime()).toString();\r
                return Long.parseLong(Util.getRandomNumber(100, 999)\r
-                               + longNum.substring(3));\r
+                               + longNum.substring(4));\r
        }\r
 \r
        public static Class<Executable<?>> getClass(String taskId) {\r
@@ -55,8 +55,9 @@ public class DirectoryManager {
                try {\r
                        return (Class<Executable<?>>) Class.forName(className);\r
                } catch (ClassNotFoundException e) {\r
-                       log.error("Could not parse taskId " + taskId + " Message "\r
-                                       + e.getLocalizedMessage(), e.getCause());\r
+                       log.error(\r
+                                       "Could not parse taskId " + taskId + " Message "\r
+                                                       + e.getLocalizedMessage(), e.getCause());\r
                }\r
                return null;\r
        }\r