You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ki...@apache.org on 2003/05/13 05:02:20 UTC
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper JspCompilationContext.java
kinman 2003/05/12 20:02:20
Modified: jasper2/src/share/org/apache/jasper
JspCompilationContext.java
Log:
- Make sure that the output direct exist, in case it was removed.
Revision Changes Path
1.39 +14 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java
Index: JspCompilationContext.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- JspCompilationContext.java 18 Apr 2003 17:26:15 -0000 1.38
+++ JspCompilationContext.java 13 May 2003 03:02:20 -0000 1.39
@@ -470,7 +470,12 @@
if (servletJavaFileName == null) {
servletJavaFileName =
getOutputDir() + getServletClassName() + ".java";
- }
+ } else {
+ File outDirFile = new File(outputDir);
+ if (!outDirFile.exists()) {
+ outDirFile.mkdirs();
+ }
+ }
return servletJavaFileName;
}
@@ -516,6 +521,11 @@
if (classFileName == null) {
classFileName = getOutputDir() + getServletClassName() + ".class";
+ } else {
+ File outDirFile = new File(outputDir);
+ if (!outDirFile.exists()) {
+ outDirFile.mkdirs();
+ }
}
return classFileName;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org