Bugzilla 41227: add a bit of DEBUG-level logging to JspC so users know what file...
authoryoavs <yoavs@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Mar 2007 22:46:46 +0000 (22:46 +0000)
committeryoavs <yoavs@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Mar 2007 22:46:46 +0000 (22:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@522367 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/JspC.java
webapps/docs/changelog.xml

index a4d74c7..52435ba 100644 (file)
@@ -815,6 +815,11 @@ public class JspC implements Options {
     public void generateWebMapping( String file, JspCompilationContext clctxt )
         throws IOException
     {
+        if (log.isDebugEnabled()) {
+            log.debug("Generating web mapping for file " + file
+                      + " using compilation context " + clctxt);
+        }
+
         String className = clctxt.getServletClassName();
         String packageName = clctxt.getServletPackageName();
 
@@ -950,6 +955,10 @@ public class JspC implements Options {
     protected void processFile(String file)
         throws JasperException
     {
+        if (log.isDebugEnabled()) {
+            log.debug("Processing file: " + file);
+        }
+
         ClassLoader originalClassLoader = null;
 
         try {
@@ -991,6 +1000,10 @@ public class JspC implements Options {
             // Otherwise only generate .java, if .jsp file is newer than
             // the .java file
             if( clc.isOutDated(compile) ) {
+                if (log.isDebugEnabled()) {
+                    log.debug(jspUri + " is out dated, compiling...");
+                }
+
                 clc.compile(compile, true);
             }
 
index 4a17c64..0815b8a 100644 (file)
       </update>
     </changelog>
   </subsection>
+  <subsection name="Jasper">
+    <changelog>
+      <fix>
+        <bug>41227</bug> Add a bit of DEBUG-level logging to JspC so users know
+          which file is being compiled. (yoavs)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 6.0.10 (remm)">
   <subsection name="Catalina">