mirror of https://github.com/sbt/sbt.git
In launcher configuration parser, convert '/' in paths to platform separator
This commit is contained in:
parent
92fc01f185
commit
4143aff1dc
|
|
@ -60,7 +60,7 @@ class ConfigurationParser extends NotNull
|
||||||
val (b, m) = id(map, name, default.toString)
|
val (b, m) = id(map, name, default.toString)
|
||||||
(toBoolean(b), m)
|
(toBoolean(b), m)
|
||||||
}
|
}
|
||||||
def toFile(path: String): File = new File(path)// if the path is relative, it will be resolve by Launch later
|
def toFile(path: String): File = new File(path.replace('/', File.separatorChar))// if the path is relative, it will be resolve by Launch later
|
||||||
def file(map: LabelMap, name: String, default: File): (File, LabelMap) =
|
def file(map: LabelMap, name: String, default: File): (File, LabelMap) =
|
||||||
(getOrNone(map, name).map(toFile).getOrElse(default), map - name)
|
(getOrNone(map, name).map(toFile).getOrElse(default), map - name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue