CruiseControlController.DEFAULT_CONFIG_FILE_NAME));
controller.setConfigFile(configFile);
ServerXMLHelper helper = new ServerXMLHelper(configFile);
ThreadQueueProperties.setMaxThreadCount(helper.getNumThreads());
if (shouldStartController(args)) {
CruiseControlControllerAgent agent =
new CruiseControlControllerAgent(
controller,
parseHttpPort(args),
parseRmiPort(args),
parseUser(args),
parsePassword(args),
parseXslPath(args));
agent.start();
}
controller.resume();
} catch (CruiseControlException e) {
LOG.fatal(e.getMessage());
printUsageAndExit();