Result result = getInitializedResult();
result.setStatus(Result.FAILED);
try{
Manifest manifest=getVerifierContext().getAbstractArchive().getManifest();
String cp=null;
if (manifest!=null)
cp=manifest.getMainAttributes().getValue(Attributes.Name.CLASS_PATH);
if(cp==null || cp.length()==0){
result.passed(smh.getLocalString(getClass().getName() + ".passed",
"Manifest file of this EAR file does not contain any Class-Path entry."));
}else{
result.failed(smh.getLocalString(getClass().getName() + ".failed",
"Manifest file of this EAR file contains [ {0} ] as the Class-Path entry.",
new Object[]{cp}));
}
}catch(IOException e){
result.addErrorDetails(e.toString());
}
return result;