Author: remm Date: Sat Sep 9 16:22:05 2006 New Revision: 441879 URL: http://svn.apache.org/viewvc?view=rev&rev=441879 Log: - Always check the output folder when going in the compile method, to make sure it exists.
Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspCompilationContext.java tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Compiler.java Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspCompilationContext.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspCompilationContext.java?view=diff&rev=441879&r1=441878&r2=441879 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspCompilationContext.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspCompilationContext.java Sat Sep 9 16:22:05 2006 @@ -606,6 +606,16 @@ static Object outputDirLock = new Object(); + public void checkOutputDir() { + if (outputDir != null) { + if (!(new File(outputDir)).exists()) { + makeOutputDir(); + } + } else { + createOutputDir(); + } + } + protected boolean makeOutputDir() { synchronized(outputDirLock) { File outDirFile = new File(outputDir); Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Compiler.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Compiler.java?view=diff&rev=441879&r1=441878&r2=441879 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Compiler.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Compiler.java Sat Sep 9 16:22:05 2006 @@ -130,6 +130,7 @@ pageInfo.setIncludeCoda(jspProperty.getIncludeCoda()); } + ctxt.checkOutputDir(); String javaFileName = ctxt.getServletJavaFileName(); ServletWriter writer = null; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]