[Swift-commit] cog r3849

swift at ci.uchicago.edu swift at ci.uchicago.edu
Wed Dec 4 10:30:04 CST 2013


------------------------------------------------------------------------
r3849 | davidkelly999 | 2013-12-04 10:29:46 -0600 (Wed, 04 Dec 2013) | 2 lines

Property to specify the name of the restart log 

------------------------------------------------------------------------
Index: modules/karajan/src/org/globus/cog/karajan/compiled/nodes/restartLog/RestartLog.java
===================================================================
--- modules/karajan/src/org/globus/cog/karajan/compiled/nodes/restartLog/RestartLog.java	(revision 3848)
+++ modules/karajan/src/org/globus/cog/karajan/compiled/nodes/restartLog/RestartLog.java	(working copy)
@@ -182,8 +182,13 @@
 			name = fileName.getValue(stack);
 		}
 		for (int i = 0; i < Integer.MAX_VALUE; i++) {
-			String index = "." + String.valueOf(i);
-			File f = new File(name + index + ".rlog");
+                        String restartLogFilename = System.getProperty("restart.log.name");
+                        if(restartLogFilename == null) {
+                                String index = "." + String.valueOf(i);
+                                restartLogFilename = name + index + ".rlog";
+                        }
+                        File f = new File(restartLogFilename);
+
 			if (f.exists()) {
 				if (i == MAX_INDEX) {
 					throw new ExecutionException(this, "Maximum restart log index reached");



More information about the Swift-commit mailing list