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:
parent
ec5b98db58
commit
c9b934ce56
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue