/** * Sets the default install path. * * @param path the default install path * @see #getDefaultInstallPath */ @Override public void setDefaultInstallPath(String path) { setVariable(DEFAULT_INSTALL_PATH, path); }
/** * Sets the install path. * * @param path the new install path * @see #getInstallPath */ @Override public void setInstallPath(String path) { setVariable(INSTALL_PATH, path); }
/** * Sets the media path for multi-volume installation. * * @param path the media path. May be <tt>null</tt> */ @Override public void setMediaPath(String path) { setVariable(MEDIA_PATH, path); }
protected void setStandardVariables(AutomatedInstallData installData, String dir) { // Determine the hostname and IP address String hostname; String IPAddress; try { InetAddress localHost = InetAddress.getLocalHost(); IPAddress = localHost.getHostAddress(); hostname = localHost.getHostName(); } catch (Exception exception) { logger.log(Level.WARNING, "Failed to determine hostname and IP address", exception); hostname = ""; IPAddress = ""; } installData.setVariable("APPLICATIONS_DEFAULT_ROOT", dir); installData.setVariable(ScriptParserConstant.JAVA_HOME, System.getProperty("java.home")); installData.setVariable(ScriptParserConstant.CLASS_PATH, System.getProperty("java.class.path")); installData.setVariable(ScriptParserConstant.USER_HOME, System.getProperty("user.home")); installData.setVariable(ScriptParserConstant.USER_NAME, System.getProperty("user.name")); installData.setVariable(ScriptParserConstant.IP_ADDRESS, IPAddress); installData.setVariable(ScriptParserConstant.HOST_NAME, hostname); installData.setVariable(ScriptParserConstant.FILE_SEPARATOR, File.separator); }
/** * Sets the locale. * <p/> * NOTE: for backwards compatibility, this sets the {@link ScriptParserConstant#ISO3_LANG ISO3} variable to be the * the <em>lowercase</em> version of the supplied ISO code. * * @param locale the locale * @param code the 3 character ISO code used to select the locale. May be an ISO country code or an ISO language * code */ public void setLocale(Locale locale, String code) { this.locale = locale; getInstallationRecord().setAttribute("langpack", code.toLowerCase()); setVariable(ScriptParserConstant.ISO3_LANG, code.toLowerCase()); if(locale != null) { setVariable(ScriptParserConstant.ISO2_LANG, locale.getLanguage()); } }
this.automatedInstallData.setVariable("INSTALL_GROUP", selected.name); logger.fine("Added variable INSTALL_GROUP=" + selected.name);
installData.setVariable(ScriptParserConstant.APP_NAME, info.getAppName()); if (info.getAppURL() != null) installData.setVariable(ScriptParserConstant.APP_URL, info.getAppURL()); installData.setVariable(ScriptParserConstant.APP_VER, info.getAppVersion()); if (info.getUninstallerCondition() != null) installData.setVariable("UNINSTALLER_CONDITION", info.getUninstallerCondition()); for (String varName : vars) installData.setVariable(varName, properties.getProperty(varName));