mirror of https://github.com/sbt/sbt.git
Ignore directories that scalac reports as underlying source on Java 9
This commit is contained in:
parent
bf36f824fd
commit
5a1e832a13
|
|
@ -63,7 +63,7 @@ final class Dependency(val global: CallbackGlobal) extends LocateClassFile with
|
||||||
case Some((f, className, inOutDir)) =>
|
case Some((f, className, inOutDir)) =>
|
||||||
if (inOutDir && on.isJavaDefined) registerTopLevelSym(on)
|
if (inOutDir && on.isJavaDefined) registerTopLevelSym(on)
|
||||||
f match {
|
f match {
|
||||||
case ze: ZipArchive#Entry => for (zip <- ze.underlyingSource; zipFile <- Option(zip.file)) binaryDependency(zipFile, className)
|
case ze: ZipArchive#Entry => for (zip <- ze.underlyingSource; zipFile <- Option(zip.file).filterNot(_.isDirectory)) binaryDependency(zipFile, className)
|
||||||
case pf: PlainFile => binaryDependency(pf.file, className)
|
case pf: PlainFile => binaryDependency(pf.file, className)
|
||||||
case _ => ()
|
case _ => ()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue