Little fix for windows

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@532761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2007-04-26 14:33:45 +00:00
parent fd3ad3d093
commit b0003019c0
1 changed files with 10 additions and 0 deletions

View File

@ -52,6 +52,11 @@ public class PathUtilTest
workingDirname = workingDirname.substring( 0, workingDirname.length() - 2 );
}
if ( !workingDirname.startsWith( "/" ) )
{
workingDirname = "/" + workingDirname;
}
String path = "path/to/resource.xml";
String expectedPath = "file:" + workingDirname + "/" + path;
@ -70,6 +75,11 @@ public class PathUtilTest
workingDirname = workingDirname.substring( 0, workingDirname.length() - 2 );
}
if ( !workingDirname.startsWith( "/" ) )
{
workingDirname = "/" + workingDirname;
}
String path = "path/to/resource.xml";
String expectedPath = "file:" + workingDirname + "/" + path;