You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/04/14 21:15:43 UTC
svn commit: r528858 -
/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
Author: ivaynberg
Date: Sat Apr 14 12:15:42 2007
New Revision: 528858
URL: http://svn.apache.org/viewvc?view=rev&rev=528858
Log:
jdk1.4 doesnt have a uuid, so generate our own
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=528858&r1=528857&r2=528858
==============================================================================
--- 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 Sat Apr 14 12:15:42 2007
@@ -104,7 +104,11 @@
// directory,
// and will be cleaned up with a mvn clean
- final File tempDir = createTempDir("wicket" + UUID.randomUUID());
+ String uniqueKey = "" + System.currentTimeMillis();
+ uniqueKey += "-";
+ uniqueKey += String.valueOf(Math.random()).substring(2);
+
+ File tempDir = createTempDir("wicket" + UUID.randomUUID());
attributes.put("javax.servlet.context.tempdir", tempDir);
mimeTypes.put("html", "text/html");