/** * Copy this archivist to a new abstract archive * @param source the archive to copy from * @param target the new archive to use to copy our contents into */ public void copyInto(ReadableArchive source, WritableArchive target) throws IOException { try { Application a = readStandardDeploymentDescriptor(source); copyInto(a, source, target); } catch(SAXException spe) { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.fileCopyFailure", spe); } }
/** * Copy this archivist to a new abstract archive * @param source the archive to copy from * @param target the new archive to use to copy our contents into */ public void copyInto(ReadableArchive source, WritableArchive target) throws IOException { try { Application a = readStandardDeploymentDescriptor(source); copyInto(a, source, target); } catch(SAXParseException spe) { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.fileCopyFailure", spe); } }
/** * This method creates a top level Application object for an ear. * @param archive the archive for the application * @param directory whether the application is packaged as a directory */ public Application createApplication(ReadableArchive archive, boolean directory) throws IOException, SAXException { if (hasStandardDeploymentDescriptor(archive) ) { return readStandardDeploymentDescriptor(archive); } else { return getApplicationFromIntrospection(archive, directory); } }
/** * This method creates a top level Application object for an ear. * @param archive the archive for the application * @param directory whether the application is packaged as a directory */ public Application createApplication(ReadableArchive archive, boolean directory) throws IOException, SAXParseException { if (hasStandardDeploymentDescriptor(archive) ) { return readStandardDeploymentDescriptor(archive); } else { return getApplicationFromIntrospection(archive, directory); } }
/** * open a new application archive file, read all the deployment descriptors * * @param appArchive the file path for the J2EE Application archive */ @Override public Application open(ReadableArchive appArchive) throws IOException, SAXParseException { setManifest(appArchive.getManifest()); // read the standard deployment descriptors Application appDesc = readStandardDeploymentDescriptor(appArchive); return openWith(appDesc, appArchive); }
/** * open a new application archive file, read all the deployment descriptors * * @param appArchive the file path for the J2EE Application archive */ @Override public Application open(ReadableArchive appArchive) throws IOException, SAXException { setManifest(appArchive.getManifest()); // read the standard deployment descriptors Application appDesc = readStandardDeploymentDescriptor(appArchive); return openWith(appDesc, appArchive); }