Is this difference between Exec Task and project.exec expected behaviour in Gradle 1.6 or a bug?
// Works fine
task exec1 ( type : Exec ) {
executable 'prog1'
ignoreExitValue true
}
// Fails to compile, complaining about ignoreExitValue
task exec2 << {
exec {
executable 'prog1'
ignoreExitValue true
}
}
As far as I understood project.exec had the same semantics as the Exec Task.