mirror of https://github.com/sbt/sbt.git
* https://github.com/coursier/coursier/issues/665
This commit is contained in:
parent
4ea6b9673f
commit
da7fd6585f
|
|
@ -1073,8 +1073,14 @@ object Cache {
|
|||
}
|
||||
|
||||
private lazy val ivy2HomeUri = {
|
||||
|
||||
val path =
|
||||
sys.props.get("coursier.ivy.home")
|
||||
.orElse(sys.props.get("ivy.home"))
|
||||
.getOrElse(sys.props("user.home") + "/.ivy2/")
|
||||
|
||||
// a bit touchy on Windows... - don't try to manually write down the URI with s"file://..."
|
||||
val str = new File(sys.props("user.home") + "/.ivy2/").toURI.toString
|
||||
val str = new File(path).toURI.toString
|
||||
if (str.endsWith("/"))
|
||||
str
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue