Friends:
I am trying to get some help here in reading and understanding gradle DSL documentation.
Let me take example of the Test phase http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.testing.Test.html
There is a property called “options” for this. http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:options
How am I to read this ? What does it expect, a closure, a value or what ?
Reason I ask is, the following example
.....
......
test {
useTestNG()
options {
listeners << 'org.uncommons.reportng.HTMLReporter'
listeners << 'org.uncommons.reportng.JUnitXMLReporter'
}
}
As you can see above, options looks like it takes a closure, or what is it taking exactly ?
Please educate a Gradle-Newbie.
Regards, -Narahari