public boolean hasRuntimeDeploymentDescriptor(ReadableArchive archive) throws IOException { //check null: since .par archive does not have runtime dds getConfigurationDDFile(archive); if (confDD != null) { return true; } else { return false; } }
/** * @return the location of the runtime deployment descriptor file * for a particular type of J2EE Archive */ public String getRuntimeDeploymentDescriptorPath(ReadableArchive archive) throws IOException { DeploymentDescriptorFile ddFile = getConfigurationDDFile(archive); if (ddFile != null) { return ddFile.getDeploymentDescriptorPath(); } else { return null; } }
/** * @return the location of the runtime deployment descriptor file * for a particular type of J2EE Archive */ public String getRuntimeDeploymentDescriptorPath() { DeploymentDescriptorFile ddFile = getConfigurationDDFile(); if (ddFile != null) { return ddFile.getDeploymentDescriptorPath(); } else { return null; } }
/** * writes de configuration deployment descriptor to a new XML file * * @param os stream to write the configuration deployment descriptors */ public void writeRuntimeDeploymentDescriptors(OutputStream os) throws IOException { DeploymentDescriptorFile confDD = getConfigurationDDFile(); if (confDD != null) { confDD.write(getDescriptor(), os); } }
/** * apply runtimne info to this archive descriptors and saves it */ public void applyRuntimeInfo(File runtimeDD, File output) throws IOException, SAXParseException { // update the runtime info getConfigurationDDFile().read(getDescriptor(), new FileInputStream(runtimeDD)); // save the runtime info... saveRuntimeInfo(output); }
public boolean hasRuntimeDeploymentDescriptor(ReadableArchive archive) throws IOException { //check null: since .par archive does not have runtime dds if (getConfigurationDDFile() != null) { InputStream runIs = archive.getEntry( getConfigurationDDFile().getDeploymentDescriptorPath()); if (runIs != null) { runIs.close(); return true; } } if (getSunConfigurationDDFile() != null) { InputStream runIs = archive.getEntry( getSunConfigurationDDFile().getDeploymentDescriptorPath()); if (runIs != null) { runIs.close(); return true; } } return false; }
/** * Read the runtime deployment descriptors (can contained in one or * many file) from a deployment plan archive, set the corresponding * information in the passed descriptor. */ protected void readRuntimeDDFromDeploymentPlan( String entry, ReadableArchive planArchive, T descriptor) throws IOException, SAXParseException { InputStream is = null; try { is = planArchive.getEntry(entry); DeploymentDescriptorFile confDD = getConfigurationDDFile(); if (is != null && confDD != null) { if (planArchive.getURI() != null) { confDD.setErrorReportingString(planArchive.getURI().getSchemeSpecificPart()); } confDD.setXMLValidation(getXMLValidation()); confDD.read(descriptor, is); } } finally { if (is != null) { try { is.close(); } catch (IOException ioe) { } } } }
DeploymentDescriptorFile confDD = getConfigurationDDFile(); if (archive.getURI() != null) { confDD.setErrorReportingString(archive.getURI().getSchemeSpecificPart());
/** * writes the runtime deployment descriptors to an abstract archive * * @param out output archive */ public void writeRuntimeDeploymentDescriptors(WritableArchive out) throws IOException { T desc = getDescriptor(); // Runtime DDs if (isHandlingRuntimeInfo()) { DeploymentDescriptorFile confDD = getConfigurationDDFile(); if (confDD != null) { OutputStream os = out.putNextEntry(getRuntimeDeploymentDescriptorPath()); confDD.write(desc, os); out.closeEntry(); } // Legacy Sun Runtime DDs DeploymentDescriptorFile sunConfDD = getSunConfigurationDDFile(); if (sunConfDD != null) { OutputStream os = out.putNextEntry( sunConfDD.getDeploymentDescriptorPath()); sunConfDD.write(desc, os); out.closeEntry(); } } }
if (is!=null) { DeploymentDescriptorFile confDD = newArchivist.getConfigurationDDFile(); confDD.setXMLValidation( newArchivist.getRuntimeXMLValidation());
if (is!=null) { DeploymentDescriptorFile confDD = archivist.getConfigurationDDFile(); confDD.setXMLValidation( archivist.getRuntimeXMLValidation());
DeploymentDescriptorFile confDDFile = moduleArchivist.getConfigurationDDFile(); if (confDDFile!=null) { OutputStream os = out.putNextEntry(runtimeDDPath);