diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-09-18 04:01:15 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-09-18 04:01:15 +0000 |
commit | b1b4229880f1828c24abd5e3d0871c89cd53ee00 (patch) | |
tree | c34c1eb8743d40ecfcdd866c6855f9d845318642 /archiva-base/archiva-common | |
parent | 55baa9dff87009d3764c89ea8aeb65849a9546e9 (diff) | |
download | archiva-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.java | 2 |
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 ); } |