Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clarify why we have a new method
  • Loading branch information
big-guy committed May 23, 2017
commit 9f84acbbc9769de9c9d018c9c392e9b15e6812d3
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ public FileTree getSource() {
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
protected FileCollection getCandidateClassFiles() {
// We need to resolve the classes into a set of files so @SkipWhenEmpty will work
// Otherwise, a collection of empty directories is not seen as "empty"
return getClasses().getAsFileTree();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this now different to annotating getClasses directly? If we do not filter by *.class then I would actually not add this new method but just use the old method as is and only change the convention mapping.

}

Expand Down