use of com.ibm.dtfj.corereaders.NewElfDump in project openj9 by eclipse.
the class DTFJLibraryAdapter method isLibraryCollectionRequired.
public boolean isLibraryCollectionRequired(File coreFile) {
ICoreFileReader reader = null;
try {
ClosingFileReader closingFile = new ClosingFileReader(coreFile);
reader = DumpFactory.createDumpForCore(closingFile);
} catch (Exception e) {
logger.log(SEVERE, "Could not determine if library collection is required for " + coreFile.getAbsolutePath(), e);
errorMessages.add(e.getMessage());
// if this fails, then so would any collection attempt as well
return false;
}
if (reader instanceof NewElfDump) {
return true;
}
if (reader instanceof NewAixDump) {
return true;
}
return false;
}
Aggregations