public boolean hasStandardDeploymentDescriptor(ReadableArchive archive) throws IOException { InputStream stIs = archive.getEntry(getDeploymentDescriptorPath()); if (stIs != null) { stIs.close(); return true; } return false; }
public boolean hasStandardDeploymentDescriptor(ReadableArchive archive) throws IOException { InputStream stIs = archive.getEntry(getDeploymentDescriptorPath()); if (stIs != null) { stIs.close(); return true; } return false; }
public void copyStandardDeploymentDescriptors(ReadableArchive in, WritableArchive out) throws IOException { String entryName = getDeploymentDescriptorPath(); copyAnEntry(in, out, entryName); }
/** * @return the list of files that should not be copied from the old archive * when a save is performed. */ public Vector getListOfFilesToSkip(ReadableArchive archive) throws IOException { Vector filesToSkip = new Vector(); filesToSkip.add(getDeploymentDescriptorPath()); if (manifest != null) { filesToSkip.add(JarFile.MANIFEST_NAME); } if (getRuntimeDeploymentDescriptorPath(archive) != null) { filesToSkip.add(getRuntimeDeploymentDescriptorPath(archive)); } // Can't depend on having a descriptor, so skip all possible // web service deployment descriptor paths. filesToSkip.addAll( getAllWebservicesDeploymentDescriptorPaths()); return filesToSkip; }
/** * @return the list of files that should not be copied from the old archive * when a save is performed. */ public Vector getListOfFilesToSkip() { Vector filesToSkip = new Vector(); filesToSkip.add(getDeploymentDescriptorPath()); if (manifest != null) { filesToSkip.add(JarFile.MANIFEST_NAME); } if (getRuntimeDeploymentDescriptorPath() != null) { filesToSkip.add(getRuntimeDeploymentDescriptorPath()); } // Can't depend on having a descriptor, so skip all possible // web service deployment descriptor paths. filesToSkip.addAll(WebServicesDeploymentDescriptorFile. getAllDescriptorPaths()); return filesToSkip; }
/** * writes the standard deployment descriptors to an abstract archive * * @param out archive to write to */ public void writeStandardDeploymentDescriptors(WritableArchive out) throws IOException { OutputStream os = out.putNextEntry(getDeploymentDescriptorPath()); writeStandardDeploymentDescriptors(os); out.closeEntry(); Descriptor desc = getDescriptor(); // only bundle descriptor can have web services if (desc instanceof BundleDescriptor) { writeWebServicesDescriptors((BundleDescriptor) desc, out); } }
/** * writes the standard deployment descriptors to an abstract archive * * @param out archive to write to */ public void writeStandardDeploymentDescriptors(WritableArchive out) throws IOException { getStandardDDFile().setArchiveType(getModuleType()); OutputStream os = out.putNextEntry(getDeploymentDescriptorPath()); standardDD.write(getDescriptor(), os); out.closeEntry(); }
public void copyStandardDeploymentDescriptors(ReadableArchive in, WritableArchive out) throws IOException { String entryName = getDeploymentDescriptorPath(); copyAnEntry(in, out, entryName); Descriptor desc = getDescriptor(); // only bundle descriptor can have web services if (desc instanceof BundleDescriptor) { BundleDescriptor desc2 = (BundleDescriptor) desc; if (desc2.hasWebServices()) { DeploymentDescriptorFile webServicesDD = getWebServicesDDFile((BundleDescriptor) desc2); String anEntry = webServicesDD.getDeploymentDescriptorPath(); copyAnEntry(in, out, anEntry); } } }