Skip to content

JRubyExec should support "watch" configuration #358

Open
@rtyler

Description

@rtyler

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions