private static String usageNote() { boolean isWindows = (SecurityActions.getSystemProperty("os.name")).toLowerCase(Locale.ENGLISH).contains("windows"); String command = isWindows ? "domain" : "domain.sh"; return MESSAGES.usageNote(command); }
private PCSocketConfig() { boolean preferIPv6 = Boolean.valueOf(SecurityActions.getSystemProperty("java.net.preferIPv6Addresses", "false")); this.defaultBindAddress = preferIPv6 ? "::1" : "127.0.0.1"; UnknownHostException toCache = null; try { bindAddress = InetAddress.getByName(defaultBindAddress); } catch (UnknownHostException e) { try { bindAddress = InetAddressUtil.getLocalHost(); } catch (UnknownHostException uhe) { toCache = uhe; } } uhe = toCache; }
} else { command.add("-Dorg.jboss.boot.log.file=" + getAbsolutePath(new File(logDir), "boot.log")); final String fileName = SecurityActions.getSystemProperty("logging.configuration"); if (fileName == null) { path = "file:" + getAbsolutePath(environment.getDomainConfigurationDir(), "logging.properties");
productConfig = new ProductConfig(Module.getBootModuleLoader(), SecurityActions.getSystemProperty(HostControllerEnvironment.HOME_DIR), hostSystemProperties); return new HostControllerEnvironment(hostSystemProperties, isRestart, modulePath, pmAddress, pmPort, pcSocketConfig.getBindAddress(), pcSocketConfig.getBindPort(), defaultJVM,
SecurityActions.setSystemProperty(DOMAIN_CONFIG_DIR, this.domainConfigurationDir.getAbsolutePath()); final String defaultHostConfig = SecurityActions.getSystemProperty(JBOSS_HOST_DEFAULT_CONFIG, "host.xml"); hostConfigurationFile = new ConfigurationFile(domainConfigurationDir, defaultHostConfig, initialHostConfig == null ? hostConfig : initialHostConfig, initialHostConfig == null); final String defaultDomainConfig = SecurityActions.getSystemProperty(JBOSS_DOMAIN_DEFAULT_CONFIG, "domain.xml"); domainConfigurationFile = new ConfigurationFile(domainConfigurationDir, defaultDomainConfig, initialDomainConfig == null ? domainConfig : initialDomainConfig, initialDomainConfig == null);