Skip to content

Commit

Permalink
Modify input target to only include selected file
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Lehmann authored and Julius Lehmann committed Sep 26, 2024
1 parent b547d80 commit 7148eb8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ protected void createFormatTasks(String name, FormatExtension formatExtension) {
if (ideHookPath != null) {
var ideHookFile = project.file(ideHookPath);
task.setEnabled(task.getTarget().contains(ideHookFile));
var newTarget = task.getTarget().filter(ideHookFile::equals);
task.setTarget(newTarget);
}
});
});
Expand Down

0 comments on commit 7148eb8

Please sign in to comment.