this.readServiceComponentDescriptor( scrInfoFile, artifact.toString() + ':' + ABSTRACT_DESCRIPTOR_ARCHIV_PATH);
continue;
}
this.log.debug( "Artifact has no scrinfo file (it's optional): " + artifact );
} catch ( final IOException ioe ) {
throw new SCRDescriptorException( "Unable to get scrinfo from artifact", artifact.toString(),
ioe );
} finally {
if ( scrInfoFile != null ) {
try { scrInfoFile.close(); } catch ( final IOException ignore ) {}
}
}
this.log.debug( "Trying to get manifest from artifact " + artifact );
final Manifest manifest = this.getManifest( artifact );
if ( manifest != null ) {
// read Service-Component entry
if ( manifest.getMainAttributes().getValue( SERVICE_COMPONENT ) != null ) {
final String serviceComponent = manifest.getMainAttributes().getValue(SERVICE_COMPONENT );
this.log.debug( "Found Service-Component: " + serviceComponent + " in artifact " + artifact );
final StringTokenizer st = new StringTokenizer( serviceComponent, "," );
while ( st.hasMoreTokens() ) {
final String entry = st.nextToken().trim();
if ( entry.length() > 0 ) {
this.readServiceComponentDescriptor( artifact, entry );
}
}
} else {
this.log.debug( "Artifact has no service component entry in manifest " + artifact );
}
} else {
this.log.debug( "Unable to get manifest from artifact " + artifact );
}
} catch ( IOException ioe ) {
throw new SCRDescriptorException( "Unable to get manifest from artifact", artifact.toString(),
ioe );
}
}
}