Commit in lcsim/src/org/lcsim/job on MAIN | |||
JobControlManager.java | +17 | -9 | 1.53 -> 1.54 |
diff -u -r1.53 -r1.54 --- JobControlManager.java 13 Feb 2012 22:18:35 -0000 1.53 +++ JobControlManager.java 16 Mar 2012 19:40:25 -0000 1.54 @@ -79,7 +79,7 @@
* which it should be discarded. If the {@link #run()} method is called twice on * the same manager, a fatal exception will be thrown. *
- * @version $Id: JobControlManager.java,v 1.53 2012/02/13 22:18:35 jeremy Exp $
+ * @version $Id: JobControlManager.java,v 1.54 2012/03/16 19:40:25 jeremy Exp $
* @author Jeremy McCormick */ public class JobControlManager
@@ -105,6 +105,7 @@
// Boolean job options. private boolean performDryRun; private boolean rewrite;
+ private boolean checkInputFilesExist = true;
// Settings effecting logging verbosity. private boolean printInputFiles;
@@ -1073,14 +1074,17 @@
} // Check that all the files exist.
- for (File file : inputFiles) - { - if (!file.exists()) - { - logStream.println("The input file " + file.getAbsolutePath() + " does not exist!"); - throw new RuntimeException("The input file " + file.getAbsolutePath() + " does not exist!"); - } - }
+ if (checkInputFilesExist) + { + for (File file : inputFiles) + { + if (!file.exists()) + { + logStream.println("The input file " + file.getAbsolutePath() + " does not exist!"); + throw new RuntimeException("The input file " + file.getAbsolutePath() + " does not exist!"); + } + } + }
// Print out the input file list. if (printInputFiles)
@@ -1449,4 +1453,8 @@
return path; } }
+ + public void checkInputFiles(boolean c) { + this.checkInputFilesExist = c; + }
}
\ No newline at end of file
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1