diff options
-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 ); } |