From 31708cd038f7c94be76ebbcbf9556ba6269feec6 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Wed, 15 May 2024 13:18:09 -0400 Subject: [PATCH] fix for multi-project workspaces Signed-off-by: Pranav Gaikwad --- .../tackle/core/internal/SampleDelegateCommandHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java-analyzer-bundle.core/src/main/java/io/konveyor/tackle/core/internal/SampleDelegateCommandHandler.java b/java-analyzer-bundle.core/src/main/java/io/konveyor/tackle/core/internal/SampleDelegateCommandHandler.java index 4af9d1e..9a7a055 100644 --- a/java-analyzer-bundle.core/src/main/java/io/konveyor/tackle/core/internal/SampleDelegateCommandHandler.java +++ b/java-analyzer-bundle.core/src/main/java/io/konveyor/tackle/core/internal/SampleDelegateCommandHandler.java @@ -189,6 +189,11 @@ private static List search(String projectName, ArrayList/src/main/java/ + if (includedPath.startsWith(proj.getElementName())) { + includedIPath = includedIPath.removeFirstSegments(1); + } // instead of comparing path strings, comparing segments is better for 2 reasons: // - we don't have to worry about redundant . / etc in input // - matching sub-trees is easier with segments than strings