Package org.codehaus.groovy.tools

# Class FileSystemCompiler.CompilationOptions

java.lang.Object
org.codehaus.groovy.tools.FileSystemCompiler.CompilationOptions

Enclosing class:
  FileSystemCompiler

public static class FileSystemCompiler.CompilationOptions extends Object
Command-line options accepted by the `groovyc` launcher.

Since:
  2.5

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CompilationOptions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `generateFileNames()`
  Expands the parsed source-file arguments, including `@`-files, into the list of file names to compile.
  `CompilerConfiguration`
  `toCompilerConfiguration()`
  Builds a compiler configuration from the parsed command-line options.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CompilationOptions

    public CompilationOptions()

- ## Method Details

  - ### toCompilerConfiguration

    public CompilerConfiguration toCompilerConfiguration() throws IOException
    Builds a compiler configuration from the parsed command-line options.
    Returns:
      the configured compiler configuration
    Throws:
      `IOException` - if a configuration script cannot be read

  - ### generateFileNames

    public String[] generateFileNames()
    Expands the parsed source-file arguments, including `@`-files, into the list of file names to compile.
    Returns:
      the source file names, or `null` if expansion failed