mirror of https://github.com/sbt/sbt.git
Also look in (x86)
This commit is contained in:
parent
b1fc7dc183
commit
b699f0fc6f
|
|
@ -369,8 +369,7 @@ private[sbt] object CrossJava {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class WindowsDiscoverConfig extends JavaDiscoverConf {
|
class WindowsDiscoverConfig(base: File) extends JavaDiscoverConf {
|
||||||
val base: File = file("C://Program Files/Java")
|
|
||||||
|
|
||||||
def candidates() = wrapNull(base.list())
|
def candidates() = wrapNull(base.list())
|
||||||
|
|
||||||
|
|
@ -403,7 +402,8 @@ private[sbt] object CrossJava {
|
||||||
new LinuxDiscoverConfig(file("/usr") / "java"),
|
new LinuxDiscoverConfig(file("/usr") / "java"),
|
||||||
new LinuxDiscoverConfig(file("/usr") / "lib" / "jvm"),
|
new LinuxDiscoverConfig(file("/usr") / "lib" / "jvm"),
|
||||||
new MacOsDiscoverConfig,
|
new MacOsDiscoverConfig,
|
||||||
new WindowsDiscoverConfig,
|
new WindowsDiscoverConfig(file("C://Program Files/Java")),
|
||||||
|
new WindowsDiscoverConfig(file("C://Program Files (x86)/Java")),
|
||||||
new JavaHomeDiscoverConfig,
|
new JavaHomeDiscoverConfig,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue