From a9ef680cd631ad8d68f5078dfcaa84eb1a5413ed Mon Sep 17 00:00:00 2001 From: "N. Justus" Date: Mon, 11 Feb 2019 13:33:56 +0100 Subject: [PATCH] fix file-listing for projects without 'package.mo' files --- src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala b/src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala index 7708c59..fdb0c5c 100644 --- a/src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala +++ b/src/main/scala/de/thm/mope/tree/ModelicaProjectTree.scala @@ -36,7 +36,7 @@ object ModelicaProjectTree { def singleFiles(tree: TreeLike[Path], packageDirectories: List[Path]): List[Path] = { tree.filterElements { path => - !packageDirectories.forall(path.startsWith) + packageDirectories.find(path.startsWith).isEmpty }.filterNot(Files.isDirectory(_)) } }