@Override protected boolean postHandles(ReadableArchive archive) throws IOException { //check the main-class attribute if (getMainClassName(archive.getManifest()) != null) { return true; } return false; }
@Override protected boolean postHandles(ReadableArchive archive) throws IOException { //check the main-class attribute if (getMainClassName(archive.getManifest()) != null) { return true; } return false; }
/** * perform any action after all standard DDs is read * * @param descriptor the deployment descriptor for the module * @param archive the module archive * @param extensions map of extension archivists */ @Override protected void postStandardDDsRead(ApplicationClientDescriptor descriptor, ReadableArchive archive, Map<ExtensionsArchivist, RootDeploymentDescriptor> extensions) throws IOException { super.postStandardDDsRead(descriptor, archive, extensions); // look for MAIN_CLASS if (mainClassNameToRun == null) { Manifest m = archive.getManifest(); mainClassNameToRun = getMainClassName(m); } descriptor.setMainClassName(mainClassNameToRun); }
/** * perform any action after all standard DDs is read * * @param descriptor the deployment descriptor for the module * @param archive the module archive * @param extensions map of extension archivists */ @Override protected void postStandardDDsRead(ApplicationClientDescriptor descriptor, ReadableArchive archive, Map<ExtensionsArchivist, RootDeploymentDescriptor> extensions) throws IOException { super.postStandardDDsRead(descriptor, archive, extensions); // look for MAIN_CLASS if (mainClassNameToRun == null) { Manifest m = archive.getManifest(); mainClassNameToRun = getMainClassName(m); } descriptor.setMainClassName(mainClassNameToRun); }
if (acArchivist.hasStandardDeploymentDescriptor(subArchive) || acArchivist.hasRuntimeDeploymentDescriptor(subArchive) || acArchivist.getMainClassName(subArchive.getManifest()) != null) {
if (acArchivist.hasStandardDeploymentDescriptor(subArchive) || acArchivist.hasRuntimeDeploymentDescriptor(subArchive) || acArchivist.getMainClassName(subArchive.getManifest()) != null) {