Bug 37728 - create a warningproperty attribute for the javadoc task
Summary: create a warningproperty attribute for the javadoc task
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.2
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
: 35817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-01 01:06 UTC by olivier dupuy
Modified: 2008-11-24 03:58 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description olivier dupuy 2005-12-01 01:06:01 UTC
Does not seem to exist as an RFE 

Same request as in the Junit task [failureproperty The name of a property to 
set in the event of a failure (errors are considered failures as well).]

I ask for an optional "warningproperty" attribute.
If the javadoc generates at least one warning, the property is set.

This way by full build goes on, creates javadoc, raises a warning and sends an 
email if the javadoc has warnings the same way as it raises a warning and sends 
an email if the tests fail  .... but the build always goes on
Comment 1 Jesse Glick 2006-12-29 16:43:47 UTC
*** Bug 35817 has been marked as a duplicate of this bug. ***
Comment 2 Jesse Glick 2006-12-29 16:47:46 UTC
See discussion in bug #35817 re. implementation. Seems to me this could be
implemented pretty easily by just grepping output for ": warning - ", at least
with the version of javadoc I use.