Class OptionSetGroovyCompilerConfiguration
java.lang.Object
org.springframework.boot.cli.command.options.OptionSetGroovyCompilerConfiguration
- All Implemented Interfaces:
GroovyCompilerConfiguration
public class OptionSetGroovyCompilerConfiguration
extends Object
implements GroovyCompilerConfiguration
Simple adapter class to present an
OptionSet
as a
GroovyCompilerConfiguration
.- Since:
- 1.0.0
- Author:
- Andy Wilkinson
-
Field Summary
Fields inherited from interface org.springframework.boot.cli.compiler.GroovyCompilerConfiguration
DEFAULT_CLASSPATH
-
Constructor Summary
ModifierConstructorDescriptionprotected
OptionSetGroovyCompilerConfiguration
(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler) OptionSetGroovyCompilerConfiguration
(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the classpath for local resources.protected joptsimple.OptionSet
Returns the configuration for the repositories that will be used by the compiler to resolve dependencies.getScope()
Returns the scope in which the compiler operates.boolean
Returns true if auto-configuration transformations should be applied.boolean
Returns if jar dependencies should be guessed.boolean
Returns if import declarations should be guessed.boolean
isQuiet()
Returns if running in quiet mode.
-
Constructor Details
-
OptionSetGroovyCompilerConfiguration
protected OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler) -
OptionSetGroovyCompilerConfiguration
public OptionSetGroovyCompilerConfiguration(joptsimple.OptionSet optionSet, CompilerOptionHandler compilerOptionHandler, List<RepositoryConfiguration> repositoryConfiguration)
-
-
Method Details
-
getOptions
protected joptsimple.OptionSet getOptions() -
getScope
Description copied from interface:GroovyCompilerConfiguration
Returns the scope in which the compiler operates.- Specified by:
getScope
in interfaceGroovyCompilerConfiguration
- Returns:
- the scope of the compiler
-
isGuessImports
public boolean isGuessImports()Description copied from interface:GroovyCompilerConfiguration
Returns if import declarations should be guessed.- Specified by:
isGuessImports
in interfaceGroovyCompilerConfiguration
- Returns:
true
if imports should be guessed, otherwisefalse
-
isGuessDependencies
public boolean isGuessDependencies()Description copied from interface:GroovyCompilerConfiguration
Returns if jar dependencies should be guessed.- Specified by:
isGuessDependencies
in interfaceGroovyCompilerConfiguration
- Returns:
true
if dependencies should be guessed, otherwisefalse
-
isAutoconfigure
public boolean isAutoconfigure()Description copied from interface:GroovyCompilerConfiguration
Returns true if auto-configuration transformations should be applied.- Specified by:
isAutoconfigure
in interfaceGroovyCompilerConfiguration
- Returns:
true
if auto-configuration transformations should be applied, otherwisefalse
-
getClasspath
Description copied from interface:GroovyCompilerConfiguration
Returns the classpath for local resources.- Specified by:
getClasspath
in interfaceGroovyCompilerConfiguration
- Returns:
- a path for local resources
-
getRepositoryConfiguration
Description copied from interface:GroovyCompilerConfiguration
Returns the configuration for the repositories that will be used by the compiler to resolve dependencies.- Specified by:
getRepositoryConfiguration
in interfaceGroovyCompilerConfiguration
- Returns:
- the repository configurations
-
isQuiet
public boolean isQuiet()Description copied from interface:GroovyCompilerConfiguration
Returns if running in quiet mode.- Specified by:
isQuiet
in interfaceGroovyCompilerConfiguration
- Returns:
true
if running in quiet mode
-