mirror of https://github.com/sbt/sbt.git
Merge pull request #5522 from eatkins/jdk9-dummy-virtual-file
Fix DefinesClass implementation for jdk > 8
This commit is contained in:
commit
8f4d3f3f8e
|
|
@ -179,7 +179,8 @@ object Defaults extends BuildCommon {
|
|||
classpathEntryDefinesClass := {
|
||||
val converter = fileConverter.value
|
||||
val f = FileValueCache({ x: NioPath =>
|
||||
Locate.definesClass(converter.toVirtualFile(x))
|
||||
if (x.getFileName.toString != "rt.jar") Locate.definesClass(converter.toVirtualFile(x))
|
||||
else ((_: String) => false): DefinesClass
|
||||
}).get;
|
||||
{ (x: File) =>
|
||||
f(x.toPath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue