mirror of https://github.com/sbt/sbt.git
Improve IO.toFile's handling for Windows, and use it for identifying resolvers.
This adds support to convert URL to File on Windows in several ways:
```
val u0 = new URL("file:C:\\Users\\foo/.sbt/preloaded")
val u1 = new URL("file:/C:\\Users\\foo/.sbt/preloaded")
val u2 = new URL("file://unc/Users/foo/.sbt/preloaded")
val u3 = new URL("file:///C:\\Users\\foo/.sbt/preloaded")
val u4 = new URL("file:////unc/Users/foo/.sbt/preloaded")
```
Note that `u0` and `u2` are something `new File(u.toURI)` won't handle. This also correctly handles UNC convention specified by Microsoft in https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/.
Fixes #3086
Fixes #2150
|
||
|---|---|---|
| .. | ||
| appmacro/src/main/scala/sbt/appmacro | ||
| classfile | ||
| classpath | ||
| collection | ||
| complete | ||
| control | ||
| cross/src/main/input_sources | ||
| datatype | ||
| io | ||
| log | ||
| logic/src | ||
| process | ||
| relation/src | ||