mirror of https://github.com/sbt/sbt.git
Merge pull request #3095 from eed3si9n/fport/3089
[fport] Add three slashes (u3) for file URI
This commit is contained in:
commit
90e560aa55
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
[repositories]
|
[repositories]
|
||||||
local
|
local
|
||||||
local-preloaded-ivy: file://${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
|
local-preloaded-ivy: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
|
||||||
local-preloaded: file://${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}
|
local-preloaded: file:///${sbt.preloaded-${sbt.global.base-${user.home}/.sbt}/preloaded/}
|
||||||
maven-central
|
maven-central
|
||||||
sbt-maven-releases: https://repo.scala-sbt.org/scalasbt/maven-releases/, bootOnly
|
sbt-maven-releases: https://repo.scala-sbt.org/scalasbt/maven-releases/, bootOnly
|
||||||
sbt-maven-snapshots: https://repo.scala-sbt.org/scalasbt/maven-snapshots/, bootOnly
|
sbt-maven-snapshots: https://repo.scala-sbt.org/scalasbt/maven-snapshots/, bootOnly
|
||||||
|
|
|
||||||
|
|
@ -2290,7 +2290,7 @@ object Classpaths {
|
||||||
i.url.getProtocol match {
|
i.url.getProtocol match {
|
||||||
case "file" =>
|
case "file" =>
|
||||||
// This hackery is to deal suitably with UNC paths on Windows. Once we can assume Java7, Paths should save us from this.
|
// This hackery is to deal suitably with UNC paths on Windows. Once we can assume Java7, Paths should save us from this.
|
||||||
val file = try { new File(i.url.toURI) } catch { case e: java.net.URISyntaxException => new File(i.url.getPath) }
|
val file = IO.toFile(i.url)
|
||||||
Resolver.file(i.id, file)(patterns)
|
Resolver.file(i.id, file)(patterns)
|
||||||
case _ => Resolver.url(i.id, i.url)(patterns)
|
case _ => Resolver.url(i.id, i.url)(patterns)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue