Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19854

Test task with InputChanges

$
0
0

How do I test a custom task where the execute takes InputChanges?

@TaskAction
fun execute(inputChanges: InputChanges)
val project = ProjectBuilder.builder().build()
val task = project.tasks.create("myTask", MyTask::class.java) {
  it.from(...)
  it.into(...)
}
task.execute() // What goes here? How can I construct input changes?

Viewing all articles
Browse latest Browse all 19854

Trending Articles