You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Roberto Juarez <rj...@omnilogic.es> on 2004/11/23 17:16:18 UTC
halt on javadoc warnings?
Hi folks,
I would like to know if it is possible to stop a build process when <javadoc> produces warnings.
Using the failonerror attribute of the <javadoc> task is trivial, but it only works for errors not warnings. I would like to have the same for warnings as for errors.
Thanks a lot.
Roberto
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: halt on javadoc warnings?
Posted by Guru Balse <gu...@oracle.com>.
One possible solution is to
* use <loadfile> to load the javadoc output as a property (filtering for warnings, if possible),
* use <contains> to look for egregious warnings,
* <fail> if appropriate
Of course, if you would like the build to fail while javadoc is running this won't help ...
Roberto Juarez wrote:
>
> Hi folks,
>
> I would like to know if it is possible to stop a build process when <javadoc> produces warnings.
>
> Using the failonerror attribute of the <javadoc> task is trivial, but it only works for errors not warnings. I would like to have the same for warnings as for errors.
>
> Thanks a lot.
>
> Roberto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org