Gradle doesn't like it because you are trying to introduce a new task with
the same name as an existing one. Instead you should do:
test { // not "task test"
doFirst { ... }
doLast { ... }
}
Alternatively, you can override an existing task:
task test(override: true) {
...
}
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Java-Plugin-Doing-something-different-in-a-defined-task-tp4658534p4658603.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email