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");