/** * writes the deployment descriptors (standard and runtime) * to a JarFile using the right deployment descriptor path * * @out the abstract archive file to write to */ public void writeDeploymentDescriptors(WritableArchive out) throws IOException { // Standard DDs writeStandardDeploymentDescriptors(out); // the rest... writeExtraDeploymentDescriptors(out); }
/** * writes the deployment descriptors (standard and runtime) * to a JarFile using the right deployment descriptor path * * @param in the input archive * @param out the abstract archive file to write to */ public void writeDeploymentDescriptors(ReadableArchive in, WritableArchive out) throws IOException { // Standard DDs writeStandardDeploymentDescriptors(out); // Runtime DDs writeRuntimeDeploymentDescriptors(in, out); // Extension DDs writeExtensionDeploymentDescriptors(in, out); }
/** * 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); } }
subArchivist.writeStandardDeploymentDescriptors(os); out.closeEntry();