Author: dashorst
Date: Thu Apr 12 14:23:22 2007
New Revision: 528240
URL: http://svn.apache.org/viewvc?view=rev&rev=528240
Log:
Removed those pesky sessions directory when the unittests run that were created
in the project root folder. Now the context work dir is created inside the
target folder (only for unittests). This fix assumes you run using maven or in
an eclipse project generated by maven (and if not, then the only thing
different is that you'll now get a target/sessions folder instead of a
sessions/ folder).
Modified:
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
Modified:
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java?view=diff&rev=528240&r1=528239&r2=528240
==============================================================================
---
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
(original)
+++
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
Thu Apr 12 14:23:22 2007
@@ -98,6 +98,12 @@
}
}
+ // assume we're running in maven or an eclipse project created
by maven,
+ // so the sessions directory will be created inside the target
directory,
+ // and will be cleaned up with a mvn clean
+
+ attributes.put("javax.servlet.context.tempdir", new
File("target"));
+
mimeTypes.put("html", "text/html");
mimeTypes.put("htm", "text/html");
mimeTypes.put("css", "text/css");