public InstallationConfigurator( final String productName, final String altRootDir, final String xcsFilePath, final String installDir) { productRef = new Product( productName, installDir, GlassFishUtils.getGlassfishAdminScriptPath(installDir), GlassFishUtils.getGlassfishConfigFilePath(installDir)); }
/* Try to stop domain, so that uninstall can cleanup files effectively. Currently only tries to stop the default domain. */ private void stopDomain() { ExecuteCommand asadminExecuteCommand = null; try { String[] asadminCommandArray = { GlassFishUtils.getGlassfishAdminScriptPath(productRef.getInstallLocation()), "stop-domain", "domain1" }; LOGGER.log(Level.INFO, Msg.get("STOP_DEFAULT_DOMAIN", null)); asadminExecuteCommand = new ExecuteCommand(asadminCommandArray); asadminExecuteCommand.setOutputType(ExecuteCommand.ERRORS | ExecuteCommand.NORMAL); asadminExecuteCommand.setCollectOutput(true); LOGGER.log( Level.FINEST, asadminExecuteCommand.expandCommand(asadminExecuteCommand.getCommand())); asadminExecuteCommand.execute(); } catch (Exception e) { } LOGGER.log(Level.FINEST, asadminExecuteCommand.getAllOutput()); }