aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base/archiva-common
diff options
context:
space:
mode:
authorJoakim Erdfelt <joakime@apache.org>2007-09-18 04:01:15 +0000
committerJoakim Erdfelt <joakime@apache.org>2007-09-18 04:01:15 +0000
commitb1b4229880f1828c24abd5e3d0871c89cd53ee00 (patch)
treec34c1eb8743d40ecfcdd866c6855f9d845318642 /archiva-base/archiva-common
parent55baa9dff87009d3764c89ea8aeb65849a9546e9 (diff)
downloadarchiva-b1b4229880f1828c24abd5e3d0871c89cd53ee00.tar.gz
archiva-b1b4229880f1828c24abd5e3d0871c89cd53ee00.zip
Fixing .toRelative() to operate in a platform neutral way. working with filesystems and urls equally as well.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576682 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-common')
-rw-r--r--archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/PathUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/PathUtil.java b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/PathUtil.java
index ddacedcc4..836838e41 100644
--- a/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/PathUtil.java
+++ b/archiva-base/archiva-common/src/main/java/org/apache/maven/archiva/common/utils/PathUtil.java
@@ -82,7 +82,7 @@ public class PathUtil
*/
public static String getRelative( String basedir, String child )
{
- if ( basedir.endsWith( File.separator ) )
+ if ( basedir.endsWith( "/" ) || basedir.endsWith( "\\" ) )
{
basedir = basedir.substring( 0, basedir.length() - 1 );
}