costin 00/12/29 11:53:53
Modified: src/share/org/apache/tomcat/modules/config WorkDirSetup.java
Log:
Ops, forgot the starting "/" in the path.
The workdir for examples in the default host should be:
work/DEFAULT/examples ( without this patch it's %2Fexamples - not nice )
Revision Changes Path
1.3 +4 -2
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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WorkDirSetup.java 2000/12/29 01:34:41 1.2
+++ WorkDirSetup.java 2000/12/29 19:53:53 1.3
@@ -209,8 +209,10 @@
} else {
File hostD=new File( sb.toString());
hostD.mkdirs();
-
- workDirF=new File( hostD, URLEncoder.encode( ctx.getPath() ));
+
+ String path=ctx.getPath();
+ if( path.startsWith("/")) path=path.substring(1);
+ workDirF=new File( hostD, URLEncoder.encode( path ));
}
ctx.setWorkDir( workDirF );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]