lcsim-job/src/main/java/org/lcsim/job
diff -u -r1.1 -r1.2
--- JobControlManager.java 7 Aug 2008 18:47:31 -0000 1.1
+++ JobControlManager.java 27 Aug 2008 20:19:26 -0000 1.2
@@ -45,6 +45,18 @@
Map<String,Driver> driverMap;
List<Driver> driverExec;
List<File> inputFiles;
+
+ public static void main(String args[])
+ {
+ if (args.length == 0)
+ throw new RuntimeException("Missing XML input file!");
+ File xmlRunControlFile = new File(args[0]);
+ if (!xmlRunControlFile.exists())
+ throw new RuntimeException("File " + args[0] + " does not exist!");
+ JobControlManager mgr = new JobControlManager();
+ mgr.setup(xmlRunControlFile);
+ mgr.run();
+ }
public void run() {
LCSimLoop loop = new LCSimLoop();