Skip to content

Commit

Permalink
Fix empty configurations adding empty string to BSL ignore list (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Jan 11, 2024
1 parent ad9e77e commit 96d3cf8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ private static Provider<String> createIgnoreList(Project project, Configuration.
return project.provider(() -> {
StringBuilder ignoreList = new StringBuilder(1000);
for (Configuration cfg : configurations) {
ignoreList.append(cfg.getFiles().stream().map(File::getName).collect(Collectors.joining(","))).append(",");
if (!cfg.isEmpty()) { // Skip empty else we will end up with ",," in the ignore list and all entries will be ignored.
ignoreList.append(cfg.getFiles().stream().map(File::getName).collect(Collectors.joining(","))).append(",");
}
}
ignoreList.append("client-extra").append(",").append(project.getName()).append("-");
return ignoreList.toString();
Expand Down

0 comments on commit 96d3cf8

Please sign in to comment.