tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1635278 - /tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java
Date Wed, 29 Oct 2014 19:40:42 GMT
Author: markt
Date: Wed Oct 29 19:40:41 2014
New Revision: 1635278

URL: http://svn.apache.org/r1635278
Log:
Avoid using /tmp as a docBase where it is not necessary

Modified:
    tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java

Modified: tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java?rev=1635278&r1=1635277&r2=1635278&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java (original)
+++ tomcat/trunk/test/org/apache/catalina/mapper/TestMapperWebapps.java Wed Oct 29 19:40:41
2014
@@ -46,9 +46,8 @@ public class TestMapperWebapps extends T
         Tomcat tomcat = getTomcatInstance();
         tomcat.enableNaming();
 
-        // Must have a real docBase - just use temp
-        Context ctx =
-            tomcat.addContext("", System.getProperty("java.io.tmpdir"));
+        // No file system docBase required
+        Context ctx = tomcat.addContext("", null);
 
         Tomcat.addServlet(ctx, "Bug53356", new Bug53356Servlet());
         ctx.addServletMapping("", "Bug53356");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message