private static void processErraiAppPropertiesFiles(final Map<String, String> frameworkProps, final Map<String, String> mappingAliases, final Set<MetaClass> exposedClasses, final Set<MetaClass> nonportableClasses, final Set<String> explicitTypes) { for (final URL url : getErraiAppPropertiesFilesUrls()) { InputStream inputStream = null; try { log.debug("checking " + url.getFile() + " for configured types ..."); inputStream = url.openStream(); final ResourceBundle props = new PropertyResourceBundle(inputStream); processErraiAppPropertiesBundle(frameworkProps, mappingAliases, exposedClasses, nonportableClasses, explicitTypes, props); } catch (final IOException e) { throw new RuntimeException("error reading ErraiApp.properties", e); } finally { if (inputStream != null) { try { inputStream.close(); } catch (final IOException e) { // } } } } }
private static void processErraiAppPropertiesFiles(final Map<String, String> frameworkProps, final Map<String, String> mappingAliases, final Set<MetaClass> exposedClasses, final Set<MetaClass> nonportableClasses, final Set<String> explicitTypes) { for (final URL url : getErraiAppPropertiesFilesUrls()) { InputStream inputStream = null; try { log.debug("checking " + url.getFile() + " for configured types ..."); inputStream = url.openStream(); final ResourceBundle props = new PropertyResourceBundle(inputStream); processErraiAppPropertiesBundle(frameworkProps, mappingAliases, exposedClasses, nonportableClasses, explicitTypes, props); } catch (final IOException e) { throw new RuntimeException("error reading ErraiApp.properties", e); } finally { if (inputStream != null) { try { inputStream.close(); } catch (final IOException e) { // } } } } }