BindingCache.java (eucalyptus-4.4.1) | : | BindingCache.java (eucalyptus-4.4.2) | ||
---|---|---|---|---|
skipping to change at line 452 | skipping to change at line 452 | |||
} catch ( Exception ex ) { | } catch ( Exception ex ) { | |||
LOG.error( ex, ex ); | LOG.error( ex, ex ); | |||
System.exit( 1 ); | System.exit( 1 ); | |||
throw new Error( "Failed to prepare the system while trying to compile bindings: " + ex.getMessage( ), ex ); | throw new Error( "Failed to prepare the system while trying to compile bindings: " + ex.getMessage( ), ex ); | |||
} | } | |||
} | } | |||
} | } | |||
public static void processFiles( final FileProcessingMode mode ) { | public static void processFiles( final FileProcessingMode mode ) { | |||
BindingFileSearch.CURRENT_PROPS.clear( ); | BindingFileSearch.CURRENT_PROPS.clear( ); | |||
BindingFileSearch.BINDING_LIST.clear( ); | ||||
final File libDir = new File( BaseDirectory.LIB.toString( ) ); | final File libDir = new File( BaseDirectory.LIB.toString( ) ); | |||
for ( final File f : libDir.listFiles( ) ) { | for ( final File f : libDir.listFiles( ) ) { | |||
if ( f.getName( ).startsWith( "eucalyptus" ) && f.getName( ).endsWith( " .jar" ) | if ( f.getName( ).startsWith( "eucalyptus" ) && f.getName( ).endsWith( " .jar" ) | |||
&& !f.getName( ).matches( ".*-ext-.*" ) ) { | && !f.getName( ).matches( ".*-ext-.*" ) ) { | |||
EventRecord.here( ServiceJarDiscovery.class, EventType.BOOTSTRAP_INIT_ SERVICE_JAR, f.getName( ) ).info( ); | EventRecord.here( ServiceJarDiscovery.class, EventType.BOOTSTRAP_INIT_ SERVICE_JAR, f.getName( ) ).info( ); | |||
try { | try { | |||
BindingFileSearch.INSTANCE.process( mode, f ); | BindingFileSearch.INSTANCE.process( mode, f ); | |||
} catch ( final Throwable e ) { | } catch ( final Throwable e ) { | |||
LOG.error( e.getMessage( ) ); | LOG.error( e.getMessage( ) ); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |