Author: yoavs Date: Sun Mar 25 15:46:46 2007 New Revision: 522367 URL: http://svn.apache.org/viewvc?view=rev&rev=522367 Log: Bugzilla 41227: add a bit of DEBUG-level logging to JspC so users know what file is being compiled.
Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java?view=diff&rev=522367&r1=522366&r2=522367 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java Sun Mar 25 15:46:46 2007 @@ -815,6 +815,11 @@ 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 @@ protected void processFile(String file) throws JasperException { + if (log.isDebugEnabled()) { + log.debug("Processing file: " + file); + } + ClassLoader originalClassLoader = null; try { @@ -991,6 +1000,10 @@ // 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); } Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diff&rev=522367&r1=522366&r2=522367 ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Sun Mar 25 15:46:46 2007 @@ -80,6 +80,14 @@ </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"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]