void setFwJar(File fwJar) { manipulator.getLauncherData().setFwJar(fwJar); }
void setFwJar(File fwJar) { manipulator.getLauncherData().setFwJar(fwJar); }
private void getFrameworkJar(List<String> lines, URI launcherFolder, LauncherData launcherData) { File fwJar = launcherData.getFwJar(); if (fwJar != null) return; URI location = ParserUtils.getFrameworkJar(lines, launcherFolder); if (location != null) launcherData.setFwJar(URIUtil.toFile(location)); }
private void getFrameworkJar(List lines, URI launcherFolder, LauncherData launcherData) { File fwJar = launcherData.getFwJar(); if (fwJar != null) return; URI location = ParserUtils.getFrameworkJar(lines, launcherFolder); if (location != null) launcherData.setFwJar(URIUtil.toFile(location)); }
private File readFwJarLocation(ConfigData configData, LauncherData launcherData, Properties props) throws URISyntaxException { File fwJar = null; if (props.getProperty(EquinoxConstants.PROP_OSGI_FW) != null) { URI absoluteFwJar = null; absoluteFwJar = URIUtil.makeAbsolute(FileUtils.fromFileURL(props.getProperty(EquinoxConstants.PROP_OSGI_FW)), ParserUtils.getOSGiInstallArea(Arrays.asList(launcherData.getProgramArgs()), props, launcherData).toURI()); props.setProperty(EquinoxConstants.PROP_OSGI_FW, absoluteFwJar.toString()); String fwJarString = props.getProperty(EquinoxConstants.PROP_OSGI_FW); if (fwJarString != null) { fwJar = URIUtil.toFile(absoluteFwJar); if (fwJar == null) throw new IllegalStateException(Messages.exception_noFrameworkLocation); //Here we overwrite the value read from eclipse.ini, because the value of osgi.framework always takes precedence. launcherData.setFwJar(fwJar); } else { throw new IllegalStateException(Messages.exception_noFrameworkLocation); } } if (launcherData.getFwJar() != null) configData.addBundle(new BundleInfo(launcherData.getFwJar().toURI())); return launcherData.getFwJar(); }
private File readFwJarLocation(ConfigData configData, LauncherData launcherData, Properties props) throws URISyntaxException { File fwJar = null; if (props.getProperty(EquinoxConstants.PROP_OSGI_FW) != null) { URI absoluteFwJar = null; absoluteFwJar = URIUtil.makeAbsolute(FileUtils.fromFileURL(props.getProperty(EquinoxConstants.PROP_OSGI_FW)), ParserUtils.getOSGiInstallArea(Arrays.asList(launcherData.getProgramArgs()), props, launcherData).toURI()); props.setProperty(EquinoxConstants.PROP_OSGI_FW, absoluteFwJar.toString()); String fwJarString = props.getProperty(EquinoxConstants.PROP_OSGI_FW); if (fwJarString != null) { fwJar = URIUtil.toFile(absoluteFwJar); if (fwJar == null) throw new IllegalStateException(Messages.exception_noFrameworkLocation); //Here we overwrite the value read from eclipse.ini, because the value of osgi.framework always takes precedence. launcherData.setFwJar(fwJar); } else { throw new IllegalStateException(Messages.exception_noFrameworkLocation); } } if (launcherData.getFwJar() != null) configData.addBundle(new BundleInfo(launcherData.getFwJar().toURI())); return launcherData.getFwJar(); }
launcherData.setFwJar(fwJar);
launcherData.setFwJar(fwJar);
/** * compose new state without reading framework persistent data. The given * properties is used for the composition. If system bundle is not included * in the given bInfos, the fw jar launcherData contains will be used. * * @param launcherData * @param configData * @param properties * @param bInfos */ private void composeNewState(LauncherData launcherData, ConfigData configData, Properties properties, BundleInfo[] bInfos) { //Note, there use to be a lot more code in this method File fwJar = getSystemBundleFromBundleInfos(configData); launcherData.setFwJar(fwJar); this.setFwJar(fwJar); composeState(configData.getBundles(), properties, null); resolve(true); }
/** * compose new state without reading framework persistent data. The given * properties is used for the composition. If system bundle is not included * in the given bInfos, the fw jar launcherData contains will be used. * * @param launcherData * @param configData * @param properties * @param bInfos */ private void composeNewState(LauncherData launcherData, ConfigData configData, Properties properties, BundleInfo[] bInfos) { //Note, there use to be a lot more code in this method File fwJar = getSystemBundleFromBundleInfos(configData); launcherData.setFwJar(fwJar); this.setFwJar(fwJar); composeState(configData.getBundles(), properties, null); resolve(true); }