我正在尝试在WAR中预编译JSP。我的蚂蚁脚本分为两部分。首先它创建源,然后编译。
最初创建了一些源文件。此后,抛出以下错误:
[jasper2] 2010-11-12 16:58:49,865 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [Processing file: /categoryLanding/content/jeans_body.jsp]
[jasper2] 2010-11-12 16:58:49,868 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [/category/content/body.jsp is out dated, compiling...]
任何可能导致jsp被视为过时的想法?
答案 0 :(得分:0)
您的蚂蚁脚本是否有机会触及.jsp文件日期?
来自http://www.docjar.com/html/api/org/apache/jasper/JspC.java.html
// If compile is set, generate both .java and .class, if
1174 // .jsp file is newer than .class file;
1175 // Otherwise only generate .java, if .jsp file is newer than
1176 // the .java file
1177 if( clc.isOutDated(compile) ) {
1178 if (log.isDebugEnabled()) {
1179 log.debug(jspUri + " is out dated, compiling...");
1180 }
1181
1182 clc.compile(compile, true);
1183 }