Bug 21249

Summary: Add "getXxx()" and "clearXxx()" methods to Javadoc task
Product: Ant Reporter: Patrick Conant <patrick_conant>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement Keywords: PatchAvailable
Priority: P3    
Version: 1.5.1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Attachments: Proposed patch with getXxx() methods.
patch w/ corrected getPackagenames() and getExcludedPackagenames method signatures.

Description Patrick Conant 2003-07-01 22:43:21 UTC
I'm developing several Ant listeners to do various checks on the outputs of our
build process.  One of these tests is to run the DocCheck (javadoc validation)
doclet on each <javadoc> task that gets run as a part of our build.  This allows
us to make sure that the javadoc documentation is accurate.  Unfortunately,
there are no getter methods on the javadoc task, so I can't determine what
values werre set in the javadoc task.  As a result, the only way I can run the
DocCheck doclet is to set the doclet, the doclet path, and the output directory
on the existing javadoc task, the execute() the task again.  This works in some
cases, but the DocCheck doclet fails when there are "-list ..." options passed
to the javadoc command.  And there's no way to clear these from the javadoc
task, so the only thing I can do is catch the BuildException and log it -- I
can't even tell what source files were passed into the javadoc command because
all of the interesting properties of the Javadoc object are very private...
Comment 1 Patrick Conant 2003-08-01 21:08:29 UTC
Created attachment 7619 [details]
Proposed patch with getXxx() methods.
Comment 2 Patrick Conant 2003-08-04 15:09:38 UTC
Created attachment 7644 [details]
patch w/ corrected getPackagenames() and getExcludedPackagenames method signatures.