OptionSpec<String> staticContentOpt = parser.accepts("static-dir",
"The static content directory for the web server.")
.withRequiredArg()
.describedAs("dir");
AzkabanCommandLine cl = new AzkabanCommandLine(parser, arguments);
OptionSet options = cl.getOptions();
if(cl.hasHelp())
cl.printHelpAndExit("USAGE: ./bin/azkaban-server.sh", System.out);
if(cl.getJobDirs().size() == 0)
cl.printHelpAndExit("No job directory given.", System.out);
logger.info("Job log directory set to " + cl.getLogDir().getAbsolutePath());
logger.info("Job directories set to " + cl.getJobDirs());
AzkabanApplication app = new AzkabanApplication(cl.getJobDirs(), cl.getLogDir(), new File("temp"), options.has(devModeOpt));
int portNumber = 8081;
if(options.has(portOpt))
portNumber = options.valueOf(portOpt);
int httpThreads = 10;