private Properties loadProperties(URL location) { Properties result = new Properties(); if (location == null) return result; try { InputStream in = LocationHelper.getStream(location); try { result.load(in); } finally { in.close(); } } catch (FileNotFoundException e) { // TODO probably should log, but the common case for non-eclipse // environments would be to not have a config.ini ... } catch (IOException e) { // We'll just use the defaults for everything but log the exception on reading exceptions.put(e, FrameworkLogEntry.WARNING); } return substituteVars(result); }
private Properties loadProperties(URL location) { Properties result = new Properties(); if (location == null) return result; try { InputStream in = LocationHelper.getStream(location); try { result.load(in); } finally { in.close(); } } catch (FileNotFoundException e) { // TODO probably should log, but the common case for non-eclipse // environments would be to not have a config.ini ... } catch (IOException e) { // We'll just use the defaults for everything but log the exception on reading exceptions.put(e, FrameworkLogEntry.WARNING); } return substituteVars(result); }
InputStream input = LocationHelper.getStream(optionsFile); try { options.load(input);
InputStream input = LocationHelper.getStream(optionsFile); try { options.load(input);
InputStream in = LocationHelper.getStream(initialBundles[i].location); try { osgiBundle = context.installBundle(initialBundles[i].locationString, in);
InputStream in = LocationHelper.getStream(initialBundles[i].location); try { osgiBundle = context.installBundle(initialBundles[i].locationString, in);
loadDevProperties(LocationHelper.getStream(location)); devMode = true; } catch (IOException e) {
loadDevProperties(LocationHelper.getStream(location)); devMode = true; } catch (IOException e) {