TagFileInfo tagFileInfo = n.getTagFileInfo();
if (tagFileInfo != null) {
String tagFilePath = tagFileInfo.getPath();
if (tagFilePath.startsWith("/META-INF/")) {
// For tags in JARs, add the TLD and the tag as a dependency
TldResourcePath tldResourcePath =
compiler.getCompilationContext().getTldResourcePath(
tagFileInfo.getTagInfo().getTagLibrary().getURI());
Jar jar;
try {
jar = tldResourcePath.getJar();
} catch (IOException ioe) {
throw new JasperException(ioe);
}
if (jar != null) {
try {
// Add TLD
pageInfo.addDependant(jar.getURL(tldResourcePath.getEntryName()),
Long.valueOf(jar.getLastModified(tldResourcePath.getEntryName())));
// Add Tag
pageInfo.addDependant(jar.getURL(tagFilePath.substring(1)),
Long.valueOf(jar.getLastModified(tagFilePath.substring(1))));
} catch (IOException ioe) {
throw new JasperException(ioe);