Author: [log in to unmask]
Date: Fri Nov 14 13:54:46 2014
New Revision: 3425
Log:
Add method to run from command line arguments in main.
Modified:
projects/lcsim/trunk/job-manager/src/main/java/org/lcsim/job/JobControlManager.java
Modified: projects/lcsim/trunk/job-manager/src/main/java/org/lcsim/job/JobControlManager.java
=============================================================================
--- projects/lcsim/trunk/job-manager/src/main/java/org/lcsim/job/JobControlManager.java (original)
+++ projects/lcsim/trunk/job-manager/src/main/java/org/lcsim/job/JobControlManager.java Fri Nov 14 13:54:46 2014
@@ -165,19 +165,22 @@
/**
* Run the manager using a main. Takes command-line options (use -h option to see them).
- *
* @param args The command line arguments.
*/
public static void main(String args[]) {
JobControlManager mgr = new JobControlManager();
+ mgr.run(args);
+ }
+
+ public void run(String args[]) {
if (args.length == 0) {
- mgr.logStream.println("java -jar lcsim-bin.jar [options] steeringFile.xml");
+ logStream.println("java -jar lcsim-bin.jar [options] steeringFile.xml");
HelpFormatter help = new HelpFormatter();
help.printHelp(" ", options);
System.exit(1);
}
- mgr.parseCommandLineOptions(args);
- mgr.run();
+ parseCommandLineOptions(args);
+ run();
}
/**
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1
|