When I have the following build.gant
target(example: 'example target') {
echo(message: "name : ${it.name}, description: ${it.description}")
}
target(alwaysFails: 'never succeed') {
27
}
If I run gant alwaysFails
, the build failed.
But if I run gant alwaysFails example
, the build succeeded.
Actually I expected build failed and 'example' target did not run.
How can I make gant stop on target failure?