private Properties loadIndexProperties( final File indexDirectoryFile, final String remoteIndexPropertiesName ) { File indexProperties = new File( indexDirectoryFile, remoteIndexPropertiesName ); try ( FileInputStream fis = new FileInputStream( indexProperties ) ) { Properties properties = new Properties(); properties.load( fis ); return properties; } catch ( IOException e ) { getLogger().debug( "Unable to read remote properties stored locally", e ); } return null; }
private Properties loadIndexProperties( final File indexDirectoryFile, final String remoteIndexPropertiesName ) { File indexProperties = new File( indexDirectoryFile, remoteIndexPropertiesName ); try ( FileInputStream fis = new FileInputStream( indexProperties ) ) { Properties properties = new Properties(); properties.load( fis ); return properties; } catch ( IOException e ) { getLogger().debug( "Unable to read remote properties stored locally", e ); } return null; }
private Properties loadIndexProperties( final File indexDirectoryFile, final String remoteIndexPropertiesName ) { File indexProperties = new File( indexDirectoryFile, remoteIndexPropertiesName ); FileInputStream fis = null; try { Properties properties = new Properties(); fis = new FileInputStream( indexProperties ); properties.load( fis ); return properties; } catch ( IOException e ) { getLogger().debug( "Unable to read remote properties stored locally", e ); } finally { IOUtil.close( fis ); } return null; }
getLogger().info( IndexUpdateSideEffect.class.getName() + " extensions found: " + sideEffects.size() ); for ( IndexUpdateSideEffect sideeffect : sideEffects )
getLogger().info( IndexUpdateSideEffect.class.getName() + " extensions found: " + sideEffects.size() ); for ( IndexUpdateSideEffect sideeffect : sideEffects )
getLogger().info( IndexUpdateSideEffect.class.getName() + " extensions found: " + sideEffects.size() ); for ( IndexUpdateSideEffect sideeffect : sideEffects )
getLogger().error( "Fallback to *.zip also failed: " + ex2 ); // do not bother with stack trace
getLogger().error( "Fallback to *.zip also failed: " + ex2 ); // do not bother with stack trace
getLogger().error( "Fallback to *.zip also failed: " + ex2 ); // do not bother with stack trace