345729 Fixed test failure on Windows XP

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3297 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Michael Gorovoy 2011-05-27 02:15:05 +00:00
parent ec5b98db58
commit c9b934ce56
2 changed files with 3 additions and 2 deletions

View File

@ -72,6 +72,7 @@
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-helper</artifactId>
<version>1.6-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -66,11 +66,11 @@ public class XmlConfiguredJetty
String jettyHomeBase = testdir.getDir().getAbsolutePath();
// Ensure we have a new (pristene) directory to work with.
int idx = 0;
_jettyHome = new File(jettyHomeBase + "#" + idx);
_jettyHome = new File(jettyHomeBase + "_" + idx);
while (_jettyHome.exists())
{
idx++;
_jettyHome = new File(jettyHomeBase + "#" + idx);
_jettyHome = new File(jettyHomeBase + "_" + idx);
}
deleteContents(_jettyHome);
// Prepare Jetty.Home (Test) dir