Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6-beta-2
-
None
-
Windows XP SP3, Ubuntu 8.10
-
Patch
Description
The groovydoc ant task exposes a sourcepath attribute that currently only supports a Path with a single location.
The code in org/codehaus/groovy/ant/Groovydoc.java handles the reading of multiple path locations, but when it comes to parsing the classes using org/codehaus/groovy/tools/groovydoc/GroovyDocTool.java and org/codehaus/groovy/tools/groovydoc/GroovyRootDocBuilder.java sourcepath is expected to be a string and therefore treated as a single location.
I have attached a patch to support multiple locations in GroovyDocTool.java and GroovyRootDocBuilder.java I have updated the GroovyDocToolTest.java to reflect the changes. There was also a minor change to teh Groovydoc.java file itself.