From 2034990906c2f09afe8af3f909333da34a45e9d0 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Fri, 2 Feb 2024 15:25:02 -0800 Subject: [PATCH] Only look for conflicting main reactors in the `src` directory, not other directories in the package --- core/src/main/java/org/lflang/MainConflictChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/lflang/MainConflictChecker.java b/core/src/main/java/org/lflang/MainConflictChecker.java index 1805cda5d7..48344d5465 100644 --- a/core/src/main/java/org/lflang/MainConflictChecker.java +++ b/core/src/main/java/org/lflang/MainConflictChecker.java @@ -51,7 +51,7 @@ public MainConflictChecker(FileConfig fileConfig) { // files in the current package (which happens when we get the resources) this.fileConfig = fileConfig; try { - Files.walkFileTree(fileConfig.srcPkgPath, new PackageVisitor()); + Files.walkFileTree(fileConfig.srcPath, new PackageVisitor()); } catch (IOException e) { System.err.println("Error while checking for name conflicts in package."); e.printStackTrace();