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

Groovydoc noscripts and nomainforscripts options no longer work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.10, 4.0.1
    • 3.0.12, 4.0.4
    • GroovyDoc
    • None
    • Linux, Java 11, Groovy 3.0.10 and 4.0.2.

    Description

      Groovydoc used to support the noscripts option to not include scripts, and nomainforscripts to exclude the script's main method from the documentation. As of Groovy 3, these options no longer work, because they were only part of the old parser, and never added to the new one. They should either be removed from the documentation and API, or reimplemented.

      Reproduction:
      1. Make a Script.groovy
      2. Run groovydoc -noscripts --destdir=doc . Script.groovy under Groovy 2
      3. Notice that the Script class is NOT in the docs.
      4. Run groovydoc -noscripts --destdir=doc . Script.groovy under Groovy 3 or 4.
      5. Notice that the Script class is now in the docs.

      A similar set of steps can be used for nomainforscripts.

      Attachments

        Activity

          People

            paulk Paul King
            otogami Octavia Togami
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: