use of com.sun.enterprise.deployment.io.AppClientDeploymentDescriptorFile in project Payara by payara.
the class AppClientCheckMgrImpl method check.
/**
* Check method introduced for WebServices integration
*
* @param descriptor appclient descriptor
*/
public void check(Descriptor descriptor) throws Exception {
// run persistence tests first.
checkPersistenceUnits(ApplicationClientDescriptor.class.cast(descriptor));
// An ApplicationClient can have WebService References
checkWebServicesClient(descriptor);
if (verifierFrameworkContext.isPartition() && !verifierFrameworkContext.isAppClient())
return;
// run the ParseDD test
if (getSchemaVersion(descriptor).compareTo("1.4") < 0) {
// NOI18N
AppClientDeploymentDescriptorFile ddf = new AppClientDeploymentDescriptorFile();
File file = new File(getAbstractArchiveUri(descriptor), ddf.getDeploymentDescriptorPath());
FileInputStream is = new FileInputStream(file);
try {
if (is != null) {
Result result = new ParseDD().validateAppClientDescriptor(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