public Object open(Archivist main, ReadableArchive archive, RootDeploymentDescriptor descriptor) throws IOException, SAXParseException { DeploymentDescriptorFile confDD = getStandardDDFile(descriptor); if (archive.getURI() != null) { confDD.setErrorReportingString(archive.getURI().getSchemeSpecificPart()); } InputStream is = null; try { is = archive.getEntry(confDD.getDeploymentDescriptorPath()); if (is == null) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "Deployment descriptor: " + confDD.getDeploymentDescriptorPath(), " does not exist in archive: " + archive.getURI().getSchemeSpecificPart()); } } else { confDD.setXMLValidation(main.getXMLValidation()); confDD.setXMLValidationLevel(main.getXMLValidationLevel()); return confDD.read(descriptor, is); } } finally { if (is != null) { is.close(); } } return null; }
/** * 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) { } } } }
standardDD.setXMLValidation(main.getXMLValidation()); standardDD.setXMLValidationLevel(main.getXMLValidationLevel()); return standardDD.read(descriptor, is);
standardDD.setXMLValidation(getXMLValidation()); standardDD.setXMLValidationLevel(validationLevel); if (archive.getURI() != null) {
ddFile.setXMLValidation(newArchivist.getXMLValidation()); ddFile.setXMLValidationLevel(newArchivist.getXMLValidationLevel()); if (appArchive.getURI()!=null) {
if (is != null) { DeploymentDescriptorFile<T> ddFile = getStandardDDFile(); ddFile.setXMLValidation(getXMLValidation()); ddFile.setXMLValidationLevel(validationLevel); if (archive.getURI() != null) {
ddFile.setXMLValidation(newArchivist.getXMLValidation()); ddFile.setXMLValidationLevel(newArchivist.getXMLValidationLevel()); if (appArchive.getURI()!=null) {