git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@616556
13f79535-47bb-0310-9956-
ffa450edef68
public void compile() throws JasperException, FileNotFoundException {
createCompiler();
- if (isPackagedTagFile || jspCompiler.isOutDated()) {
+ boolean outDated;
+ if (isPackagedTagFile) {
+ // Tags in JARs only need to be compiled once
+ // If the JAR changes, the app needs to be re-loaded
+ outDated = !(new File(getClassFileName()).exists());
+ } else {
+ outDated = jspCompiler.isOutDated();
+ }
+ if (outDated) {
try {
jspCompiler.removeGeneratedFiles();
jspLoader = null;