[BUG 283172] fix build on windows

* Ensure tmpdir exists
* Ensure tmpdir is not reused between tests


git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@549 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Joakim Erdfelt 2009-07-11 00:01:29 +00:00
parent b3c82d1bbf
commit 1c11416ad4
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@ public abstract class RFC2616BaseTest extends AbstractJettyTestCase
{
super.setUp();
File testWorkDir = new File(getTargetDir(), "work" + File.pathSeparator + getName());
File testWorkDir = new File(getTargetDir(),"work" + File.separator + getClass().getSimpleName() + File.separator + getName());
if (!testWorkDir.exists())
{
testWorkDir.mkdirs();
}
System.setProperty("java.io.tmpdir",testWorkDir.getAbsolutePath());