Skip to content

Commit

Permalink
Merge pull request #674 from Rahul-khandelwal/master
Browse files Browse the repository at this point in the history
Fix support for loading onlyAnalyze classes/packages from specified file to handle maven modules correctly by using resourceHelper.
  • Loading branch information
hazendaz authored Nov 26, 2023
2 parents 57fa199 + ff7d91a commit 3d8badb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
if (onlyAnalyze) {
args << "-onlyAnalyze"
args << Arrays.stream(onlyAnalyze.split(",")).map {
it.startsWith("file:") ? Files.lines(Paths.get(it.substring(5))).collect(Collectors.joining(",")) : it
it.startsWith("file:") ? Files.lines(resourceHelper.getResourceFile(it.substring(5)).toPath()).collect(Collectors.joining(",")) : it
}.collect(Collectors.joining(","))
}

Expand Down

0 comments on commit 3d8badb

Please sign in to comment.