aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base/archiva-common/src
diff options
context:
space:
mode:
authorEmmanuel Venisse <evenisse@apache.org>2007-04-26 14:33:45 +0000
committerEmmanuel Venisse <evenisse@apache.org>2007-04-26 14:33:45 +0000
commitb0003019c09dc411daafe611fb22d9650748c001 (patch)
tree4e1cf83bc50802b7602b63930319cf203d0753b3 /archiva-base/archiva-common/src
parentfd3ad3d093ae2c44803b5956f322a6e381800dae (diff)
downloadarchiva-b0003019c09dc411daafe611fb22d9650748c001.tar.gz
archiva-b0003019c09dc411daafe611fb22d9650748c001.zip
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
Diffstat (limited to 'archiva-base/archiva-common/src')
-rw-r--r--archiva-base/archiva-common/src/test/java/org/apache/maven/archiva/common/utils/PathUtilTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/archiva-base/archiva-common/src/test/java/org/apache/maven/archiva/common/utils/PathUtilTest.java b/archiva-base/archiva-common/src/test/java/org/apache/maven/archiva/common/utils/PathUtilTest.java
index a66951511..f74e22114 100644
--- a/archiva-base/archiva-common/src/test/java/org/apache/maven/archiva/common/utils/PathUtilTest.java
+++ b/archiva-base/archiva-common/src/test/java/org/apache/maven/archiva/common/utils/PathUtilTest.java
@@ -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;