Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3132

Groovydoc doesn't support multiple locations in sourcepath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6-beta-2
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Ant integration
    • 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.

      Attachments

        1. groovyDocPatch.patch
          16 kB
          Ben Leedham

        Activity

          People

            guillaume Guillaume Sauthier
            ben_leedham Ben Leedham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: