private static final Logger log = Logger.getLogger(DelegatingApplicationArchiveProcessor.class);
@Override
public void process(Archive<?> appArchive, TestClass testClass) {
ApplicationArchiveProcessor archiveProcessor;
if (isBundleArchive(testClass, appArchive)) {
archiveProcessor = new OSGiApplicationArchiveProcessor();
} else {
archiveProcessor = new ModuleApplicationArchiveProcessor();
}
log.debugf("Process archive '%s' with: %s", appArchive.getName(), archiveProcessor);
archiveProcessor.process(appArchive, testClass);
// Debug the application archive manifest
ArchivePath manifestPath = ArchivePaths.create(JarFile.MANIFEST_NAME);
Node node = appArchive.get(manifestPath);
if (node == null) {