if ("upgrade".equals(context.getPlatformMainServiceName())) { upgrade();
} else { try { final String mainServiceName = context.getPlatformMainServiceName();
} else { try { final String mainServiceName = context.getPlatformMainServiceName();
if ("upgrade".equals(context.getPlatformMainServiceName())) { upgrade();
/** * Start the server from the command line * * @param args * the command line arguments */ public void start(String[] args) throws BootException { File bootstrap = this.getBootstrapFile(); File root = bootstrap.getAbsoluteFile().getParentFile(); // root is the directory in which this bootstrap.jar is located // For most cases, this is the lib directory although this is completely // dependent on the usage of this facility. if (root == null) { throw new BootException("Cannot find root installation from " + bootstrap); } // get the ModuleStartup implementation. ModulesRegistry mr = AbstractFactory.getInstance().createModulesRegistry(); StartupContext context = new StartupContext( ArgumentManager.argsToMap(args)); launch(mr, context.getPlatformMainServiceName(), context); }
/** * Start the server from the command line * * @param args * the command line arguments */ public void start(String[] args) throws BootException { File bootstrap = this.getBootstrapFile(); File root = bootstrap.getAbsoluteFile().getParentFile(); // root is the directory in which this bootstrap.jar is located // For most cases, this is the lib directory although this is completely // dependent on the usage of this facility. if (root == null) { throw new BootException("Cannot find root installation from " + bootstrap); } // get the ModuleStartup implementation. ModulesRegistry mr = AbstractFactory.getInstance().createModulesRegistry(); StartupContext context = new StartupContext( ArgumentManager.argsToMap(args)); launch(mr, context.getPlatformMainServiceName(), context); }