Open
Description
I don't think we can do this today with TaskInputs, but the option of watch
on JRubyExec
would be a great way to provide file or directory task inputs for a JRubyExec task.
For rspec
, it might look something like this:
task spec(type: JRubyExec) {
description 'Execute RSpec against spec/**/*.rb'
script 'rspec'
watch 'spec/'
}
And the user would be able to use ./gradlew -t spec
to take advantage of Gradle's continuous building functionality.