ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
String uri = getAbstractArchiveUri(descriptor);
if (taglibEntry.startsWith("/"))
taglibEntry = taglibEntry.substring(1);
else taglibEntry = "WEB-INF/" + taglibEntry;
File tlf = new File(uri + File.separator + taglibEntry);
if (tlf.exists()) {
result.addGoodDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addGoodDetails(smh.getLocalString
(getClass().getName() + ".passed",
"Tag library/.tld file exist in web application."));
return true;
}
result.addErrorDetails(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addErrorDetails(smh.getLocalString
(getClass().getName() + ".failed",
"[ {0} ] is not a valid tld location.", new Object[] {taglibEntry}));
return false;