use of com.sun.enterprise.deployment.io.ConnectorDeploymentDescriptorFile in project Payara by payara.
the class ConnectorCheckMgrImpl method check.
public void check(Descriptor descriptor) throws Exception {
// run the ParseDD test
if (getSchemaVersion(descriptor).compareTo("1.5") < 0) {
// NOI18N
ConnectorDeploymentDescriptorFile ddf = new ConnectorDeploymentDescriptorFile();
File file = new File(new File(URI.create(getAbstractArchiveUri(descriptor))), ddf.getDeploymentDescriptorPath());
FileInputStream is = new FileInputStream(file);
try {
if (is != null) {
Result result = new ParseDD().validateConnectorDescriptor(is);
result.setComponentName(getArchiveUri(descriptor));
setModuleName(result);
verifierFrameworkContext.getResultManager().add(result);
}
} finally {
try {
if (is != null)
is.close();
} catch (Exception e) {
}
}
}
super.check(descriptor);
}
Aggregations