Ignoring build errors
Hi,
Im trying to use CheckStyle in our build, so I added a task and a
logpublisher action to the build file. When I do this, I get some errors
reported by CheckStyle, which is OK. What I like to change is that I do not
want the build to fail on those errors. E.g. Id like to keep an eye on the
trend on the amount of coding style errors, but I do not want the build to
fail with every error that gets introduced.
What are the options to do this?
Thanks,
Ron de Jong
Im trying to use CheckStyle in our build, so I added a task and a
logpublisher action to the build file. When I do this, I get some errors
reported by CheckStyle, which is OK. What I like to change is that I do not
want the build to fail on those errors. E.g. Id like to keep an eye on the
trend on the amount of coding style errors, but I do not want the build to
fail with every error that gets introduced.
What are the options to do this?
Thanks,
Ron de Jong
One answer
Sounds like the build is failing because the CheckStyle task is
returning an error exit code. The Jazz Build Engine will automatically
set a build to failed if the ANT process exits with an error.
Does the CheckStyle have a flag for whether or not to fail when it
encounters an error? If so, set the flag not to fail.
Martha
Ron de Jong wrote:
returning an error exit code. The Jazz Build Engine will automatically
set a build to failed if the ANT process exits with an error.
Does the CheckStyle have a flag for whether or not to fail when it
encounters an error? If so, set the flag not to fail.
Martha
Ron de Jong wrote:
Hi,
Im trying to use CheckStyle in our build, so I added a task and a
logpublisher action to the build file. When I do this, I get some errors
reported by CheckStyle, which is OK. What I like to change is that I do not
want the build to fail on those errors. E.g. Id like to keep an eye on the
trend on the amount of coding style errors, but I do not want the build to
fail with every error that gets introduced.
What are the options to do this?
Thanks,
Ron de Jong