Working only with changed files

plugins

(David Molnar) #1

Hello, I’m trying to learn gradle api by implementing a plugin to help build php prpojects.
What I’m trying to do is lint (php -l ) each individual file that changed since the last successful run.

I’d like to know if it’s possible to filter specific fileset to get only changed files from last successfull task run.

If I decided to implement caching myself, is there some part of the API that could help me achieve this?

For reference, I would like to achieve similar behavior to ants ‘apply’ with ‘modified’ selector.


(Stefan Oehme) #2

Have a look at the user guide about incremental task inputs.


(David Molnar) #3

Thank you. I can’t believe I missed that.