mirror of https://github.com/apache/archiva.git
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
This commit is contained in:
parent
55baa9dff8
commit
b1b4229880
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue