Package: org.codehaus.groovy.tools.groovydoc

## [Groovy] Class Main

- org.codehaus.groovy.tools.groovydoc.Main

-     class Main
      extends Object

  Main CLI entry-point for `groovydoc`.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Main()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static Object` | `collectSourceFileNames(List<String> remainingArgs, String[] sourceDirs, List<String> exclusions)` Populates sourceFilesToDoc by resolving each entry in `remainingArgs` against the given `sourceDirs`, collecting `.groovy` and `.java` files.
    `` | `static int` | `execute()` Builds and runs the GroovyDocTool using the static configuration set by main, writes output to destDir, and returns the number of parse errors.
    `` | `static void` | `main(String[] args)` Runs the `groovydoc` command-line entry point.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Main()

  - ### Method Detail

    - #### static Object collectSourceFileNames(List<String> remainingArgs, String[] sourceDirs, List<String> exclusions)

      Populates sourceFilesToDoc by resolving each entry in `remainingArgs` against the given `sourceDirs`, collecting `.groovy` and `.java` files. Entries in `exclusions` are skipped.

    - #### static int execute()

      Builds and runs the GroovyDocTool using the static configuration set by main, writes output to destDir, and returns the number of parse errors.

    - #### static void main(String[] args)

      Runs the `groovydoc` command-line entry point.

      Parameters:
        `args` - command-line arguments