private void logIntro() { final String startMessage = messages.get("installer.started"); char[] chars = new char[startMessage.length()]; Arrays.fill(chars, '='); logger.info(new String(chars)); logger.info(startMessage); InputStream is = null; try { URL url = getClass().getClassLoader().getResource("META-INF/MANIFEST.MF"); is = url.openStream(); Manifest manifest = new Manifest(is); Attributes attr = manifest.getMainAttributes(); logger.info(messages.get("installer.version", attr.getValue("Created-By"))); } catch (IOException e) { logger.log(Level.WARNING, "IzPack version not found in manifest", e); } finally { IOUtils.closeQuietly(is); } logger.info(messages.get("installer.platform", matcher.getCurrentPlatform())); }
boolean isUnix = matcher.getCurrentPlatform().isA(UNIX);
public GUIInstallData provide(Resources resources, Locales locales, DefaultVariables variables, Housekeeper housekeeper, PlatformModelMatcher matcher) throws Exception { final GUIInstallData guiInstallData = new GUIInstallData(variables, matcher.getCurrentPlatform()); // Loads the installation data loadInstallData(guiInstallData, resources, matcher, housekeeper); loadGUIInstallData(guiInstallData, resources); loadInstallerRequirements(guiInstallData, resources); loadDynamicVariables(variables, guiInstallData, resources); loadDynamicConditions(guiInstallData, resources); loadDefaultLocale(guiInstallData, locales); // Load custom langpack if exist. AbstractInstallDataProvider.addCustomLangpack(guiInstallData, locales); loadLookAndFeel(guiInstallData); if (UIManager.getColor("Button.background") != null) { guiInstallData.buttonsHColor = UIManager.getColor("Button.background"); } // ENTER always presses button in focus UIManager.put("Button.defaultButtonFollowsFocus", Boolean.TRUE); return guiInstallData; }
public AutomatedInstallData provide(Resources resources, Locales locales, DefaultVariables variables, Housekeeper housekeeper, PlatformModelMatcher matcher) throws IOException, ClassNotFoundException, InstallerException { AutomatedInstallData automatedInstallData = new InstallData(variables, matcher.getCurrentPlatform()); // Loads the installation data loadInstallData(automatedInstallData, resources, matcher, housekeeper); loadInstallerRequirements(automatedInstallData, resources); loadDynamicVariables(variables, automatedInstallData, resources); loadDynamicConditions(automatedInstallData, resources); loadDefaultLocale(automatedInstallData, locales); // Load custom langpack if exist. AbstractInstallDataProvider.addCustomLangpack(automatedInstallData, locales); return automatedInstallData; }
public ConsoleInstallData provide(Resources resources, Locales locales, DefaultVariables variables, Housekeeper housekeeper, PlatformModelMatcher matcher) throws Exception { final ConsoleInstallData consoleInstallData = new ConsoleInstallData(variables, matcher.getCurrentPlatform()); loadInstallData(consoleInstallData, resources, matcher, housekeeper); loadConsoleInstallData(consoleInstallData, resources); loadInstallerRequirements(consoleInstallData, resources); loadDynamicVariables(variables, consoleInstallData, resources); loadDynamicConditions(consoleInstallData, resources); loadDefaultLocale(consoleInstallData, locales); // Load custom langpack if exist. AbstractInstallDataProvider.addCustomLangpack(consoleInstallData, locales); return consoleInstallData; }