Skip to content

Commit

Permalink
remove usage of blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Nov 25, 2024
1 parent 8a2935f commit 45702ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ object ScalaInstance {

/** Return all the required Scala jars from a path `scalaHome`. */
def allJars(scalaHome: File): Seq[File] =
IO.listFiles(scalaLib(scalaHome)).toIndexedSeq.filter(f => !blacklist(f.getName))
IO.listFiles(scalaLib(scalaHome)).toIndexedSeq.filter(f => !excludeList(f.getName))

private[this] def scalaLib(scalaHome: File): File =
new File(scalaHome, "lib")

private[this] val blacklist: Set[String] = Set(
private[this] val excludeList: Set[String] = Set(
"scala-actors.jar",
"scalacheck.jar",
"scala-partest.jar",
Expand Down

0 comments on commit 45702ea

Please sign in to comment.