[
https://issues.apache.org/jira/browse/GROOVY-10578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-10578.
--------------------------------
Fix Version/s: 5.0.0-alpha-1
3.0.12
4.0.4
Assignee: Paul King
Resolution: Fixed
> 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: 3.0.10, 4.0.1
> Environment: Linux, Java 11, Groovy 3.0.10 and 4.0.2.
> Reporter: Octavia Togami
> Assignee: Paul King
> Priority: Major
> Fix For: 5.0.0-alpha-1, 3.0.12, 4.0.4
>
>
> 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.7#820007)