larryi 01/08/24 15:07:05
Modified: src/share/org/apache/tomcat/modules/config WorkDirSetup.java
Log:
For root context, use ROOT as the subdirectory name instead of "" which
uses the parent directory.
Revision Changes Path
1.7 +1 -0
jakarta-tomcat/src/share/org/apache/tomcat/modules/config/WorkDirSetup.java
Index: WorkDirSetup.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/WorkDirSetup.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- WorkDirSetup.java 2001/06/16 20:19:23 1.6
+++ WorkDirSetup.java 2001/08/24 22:07:05 1.7
@@ -219,6 +219,7 @@
String path=ctx.getPath();
if( path.startsWith("/")) path=path.substring(1);
+ if( "".equals(path) ) path="ROOT";
workDirF=new File( hostD, URLEncoder.encode( path ));
}
ctx.setWorkDir( workDirF );