public Long getLastModified(String resource) { return getLastModified(resource, tagJar); }
public Long getLastModified(String resource) { return getLastModified(resource, tagJar); }
pi.addDependant(path, ctxt.getLastModified(path));
Long jspRealLastModified = ctxt.getLastModified(ctxt.getJspFile()); if (jspRealLastModified.longValue() < 0) {
Long jspRealLastModified = ctxt.getLastModified(ctxt.getJspFile()); if (jspRealLastModified.longValue() < 0) {
pi.addDependant(path, ctxt.getLastModified(path));
Long jspRealLastModified = ctxt.getLastModified(ctxt.getJspFile()); if (jspRealLastModified.longValue() < 0) {
compiler.getCompilationContext().getLastModified( tagFilePath)); compiler.getCompilationContext().getLastModified( tagFilePath));
String[] smap = generateJava(); File javaFile = new File(ctxt.getServletJavaFileName()); Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); javaFile.setLastModified(jspLastModified.longValue()); if (compileClass) {
@Override public void visit(Node.CustomTag n) throws JasperException { 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 // For tags in JARs, add the TLD and the tag as a dependency String[] location = compiler.getCompilationContext().getTldLocation( tagFileInfo.getTagInfo().getTagLibrary().getURI()); // Add TLD String path = "jar:" + location[0] + "!/" + location[1]; pageInfo.addDependant(path, compiler.getCompilationContext().getLastModified(path)); // Add Tag path = "jar:" + location[0] + "!" + tagFilePath; //todo this will probably break pageInfo.addDependant(path, compiler.getCompilationContext().getLastModified(path)); } else { pageInfo.addDependant(tagFilePath, compiler.getCompilationContext().getLastModified(tagFilePath)); } Class<?> c = loadTagFile(compiler, tagFilePath, n.getTagInfo(), pageInfo); n.setTagHandlerClass(c); } visitBody(n); } }
String[] smap = generateJava(); File javaFile = new File(ctxt.getServletJavaFileName()); Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); javaFile.setLastModified(jspLastModified.longValue()); if (compileClass) {
String[] smap = generateJava(); File javaFile = new File(ctxt.getServletJavaFileName()); Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); javaFile.setLastModified(jspLastModified.longValue()); if (compileClass) {
ctxt.getLastModified(absFileName)); } else { String entry = absFileName.substring(1);
Map<String,SmapStratum> smaps = generateJava(); File javaFile = new File(ctxt.getServletJavaFileName()); Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); if (!javaFile.setLastModified(jspLastModified.longValue())) { throw new JasperException(Localizer.getMessage("jsp.error.setLastModified", javaFile));
ctxt.getLastModified(absFileName)); } else { String entry = absFileName.substring(1);
ctxt.getLastModified(absFileName)); } else { String entry = absFileName.substring(1);
} else { pageInfo.addDependant(tagFilePath, compiler.getCompilationContext().getLastModified(tagFilePath)); compiler.getCompilationContext().getLastModified(tagFilePath));
String path = tldResourcePath.getWebappPath(); pageInfo.addDependant(path, ctxt.getLastModified(path)); if (jar != null) {
compiler.getCompilationContext().getLastModified( tagFilePath)); compiler.getCompilationContext().getLastModified( tagFilePath));
if (pageInfo != null) { pageInfo.addDependant(tldName, ctxt.getLastModified(tldName));