mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
Handle absolute paths passed to Path.fromString
This commit is contained in:
+8
-2
@@ -193,8 +193,14 @@ object Path extends Alternatives with Mapper
|
||||
basePath
|
||||
else
|
||||
{
|
||||
val components = value.split("""[/\\]""")
|
||||
(basePath /: components)( (path, component) => path / component )
|
||||
val f = new File(value)
|
||||
if(f.isAbsolute)
|
||||
fromFile(f)
|
||||
else
|
||||
{
|
||||
val components = value.split("""[/\\]""")
|
||||
(basePath /: components)( (path, component) => path / component )
|
||||
}
|
||||
}
|
||||
}
|
||||
def baseAncestor(path: Path): Option[Path] =
|
||||
|
||||
Reference in New Issue
Block a user