public RemoteServer(final int tries, final boolean verbose) { this.tries = (tries < 1 ? 1 : (tries > 3600 ? 3600 : tries)); //Wait at least 1 second to start or stop, but not more than an hour. this.verbose = verbose; home = getHome(); tomcat = (home != null) && (new File(new File(home, "bin"), "catalina.sh").exists()); portShutdown = options.get(SERVER_SHUTDOWN_PORT, tomcat ? 8005 : 4200); portStartup = portShutdown; command = options.get(SERVER_SHUTDOWN_COMMAND, "SHUTDOWN"); host = options.get(SERVER_SHUTDOWN_HOST, "localhost"); }
public RemoteServer(final int tries, final boolean verbose) { this.tries = (tries < 1 ? 1 : (tries > 3600 ? 3600 : tries)); //Wait at least 1 second to start or stop, but not more than an hour. this.verbose = verbose; home = getHome(); tomcat = (home != null) && (new File(new File(home, "bin"), "catalina.sh").exists()); portShutdown = options.get(SERVER_SHUTDOWN_PORT, tomcat ? 8005 : 4200); portStartup = portShutdown; command = options.get(SERVER_SHUTDOWN_COMMAND, "SHUTDOWN"); host = options.get(SERVER_SHUTDOWN_HOST, "localhost"); connectTimeout = options.get(SOCKET_TIMEOUT, 1000); }
System.out.println("[] START SERVER"); File home = getHome(); System.out.println("OPENEJB_HOME = "+home.getAbsolutePath()); String systemInfo = "Java " + System.getProperty("java.version") + "; " + System.getProperty("os.name") + "/" + System.getProperty("os.version");
final File home = getHome(); final String javaVersion = System.getProperty("java.version"); if (verbose) {
final File home = getHome(); final String javaVersion = JavaSecurityManagers.getSystemProperty("java.version"); if (verbose) {