You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Octavia Togami (Jira)" <ji...@apache.org> on 2022/04/12 04:00:00 UTC

[jira] [Created] (GROOVY-10578) Groovydoc noscripts and nomainforscripts options no longer work

Octavia Togami created GROOVY-10578:
---------------------------------------

             Summary: Groovydoc noscripts and nomainforscripts options no longer work
                 Key: GROOVY-10578
                 URL: https://issues.apache.org/jira/browse/GROOVY-10578
             Project: Groovy
          Issue Type: Bug
          Components: GroovyDoc
    Affects Versions: 4.0.1, 3.0.10
         Environment: Linux, Java 11, Groovy 3.0.10 and 4.0.2.
            Reporter: Octavia Togami


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}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)