mirror of https://github.com/apache/archiva.git
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:
parent
fd3ad3d093
commit
b0003019c0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue