# getSource

@PathSensitive(value = PathSensitivity.RELATIVE)
open fun getSource(): FileTree

Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.

The for the sources is configured to be PathSensitivity#ABSOLUTE. If your sources are less strict, please change it accordingly by overriding this method in your subclass.

The sources for this task are relatively relocatable even though it produces output that includes absolute paths. This is a compromise made to ensure that results can be reused between different builds. The downside is that up-to-date results, or results loaded from cache can show different absolute paths than would be produced if the task was executed.