Ignore directories that scalac reports as underlying source on Java 9

This commit is contained in:
Jason Zaugg 2017-11-01 11:20:31 +10:00
parent bf36f824fd
commit 5a1e832a13
1 changed files with 1 additions and 1 deletions

View File

@ -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 _ => ()
} }