[Swift-commit] r7595 - branches/release-0.95/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Sun Feb 16 10:15:00 CST 2014


Author: davidk
Date: 2014-02-16 10:15:00 -0600 (Sun, 16 Feb 2014)
New Revision: 7595

Modified:
   branches/release-0.95/bin/swiftrun
Log:
Property to allow the disabling of run directories


Modified: branches/release-0.95/bin/swiftrun
===================================================================
--- branches/release-0.95/bin/swiftrun	2014-02-16 14:55:52 UTC (rev 7594)
+++ branches/release-0.95/bin/swiftrun	2014-02-16 16:15:00 UTC (rev 7595)
@@ -462,12 +462,14 @@
    exit;
 }
 
- at new_swift_args = ("-Dscript.dir=$run_directory/scripts");
-push(@new_swift_args, "-Drestart.log.name=$run_directory/restart.log");
-push(@new_swift_args, "-swiftoutlog=$run_directory/swift.out");
-push(@new_swift_args, "-runid " . basename($run_directory));
-push(@new_swift_args, "-Ddebug.dir.prefix=" . basename($run_directory));  
-push( @new_swift_args, sprintf( "-logfile $run_directory/run%03s.log", $run_number ));
+if(!defined($properties{"config.rundirs"}) || $properties{"config.rundirs"} ne "false") {
+   @new_swift_args = ("-Dscript.dir=$run_directory/scripts");
+   push(@new_swift_args, "-Drestart.log.name=$run_directory/restart.log");
+   push(@new_swift_args, "-swiftoutlog=$run_directory/swift.out");
+   push(@new_swift_args, "-runid " . basename($run_directory));
+   push(@new_swift_args, "-Ddebug.dir.prefix=" . basename($run_directory) . "/");  
+   push(@new_swift_args, sprintf( "-logfile $run_directory/run%03s.log", $run_number ));
+}
 
 # Write swift configuration files
 &write_sites("sites.xml") if defined( $option_siteslist ) || defined($properties{site});




More information about the Swift-commit mailing list