Skip to content

Commit

Permalink
bugfix: Don't add single files to classpath
Browse files Browse the repository at this point in the history
Only jars and directories are excepted. In case of resources it will most likely be always a directory.
  • Loading branch information
tgodzik committed Jan 2, 2025
1 parent c1ff013 commit 9cde0c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/main/scala/bloop/data/Project.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ final case class Project(
}

def runtimeResources: List[AbsolutePath] = platform match {
case jvm: Platform.Jvm => jvm.resources
case jvm: Platform.Jvm =>
jvm.resources.filter(path => path.isDirectory || path.syntax.endsWith(".jar"))
case _ => resources
}

Expand Down

0 comments on commit 9cde0c0

Please sign in to comment.