private ArrayList < String > getExtensionInstallDirs ( ) throws IOException { String extensiondir = root + "etc/extensions/" ; ArrayList < String > extensionDirs = new ArrayList < String > ( ) ; for ( Entry entry : container ) { if ( entry . getName ( ) . startsWith ( extensiondir ) && entry . getName ( ) . endsWith ( ".properties" ) ) { Properties prop = new Properties ( ) ; prop . load ( entry . getInputStream ( ) ) ; String installDir = ( prop . getProperty ( "com.ibm.websphere.productInstall" ) ) ; if ( null != installDir && ! installDir . equals ( "" ) ) { extensionDirs . add ( installDir ) ; } } } return extensionDirs ; }
Retrieves all the extension products install directories as indicated their properties file .