public class CompilerOptionsImpl extends PrecompileTaskOptionsImpl implements CompilerOptions
OPTIMIZE_LEVEL_DEFAULT, OPTIMIZE_LEVEL_DRAFT, OPTIMIZE_LEVEL_MAX
Constructor and Description |
---|
CompilerOptionsImpl() |
CompilerOptionsImpl(CompilerOptions other) |
Modifier and Type | Method and Description |
---|---|
void |
addModuleName(String moduleName)
Sets the name of the module.
|
void |
copyFrom(CompilerOptions other) |
void |
copyFrom(CompileTaskOptions other) |
File |
getCompilerWorkDir(String moduleName) |
File |
getDeployDir()
Returns the deploy directory.
|
File |
getExtraDir()
Returns the extra resource directory.
|
int |
getLocalWorkers()
Returns the number of workers to run on this machine.
|
TreeLogger.Type |
getLogLevel()
Returns the tree logger level.
|
List<String> |
getModuleNames()
Returns the list of module names.
|
File |
getSaveSourceOutput()
Returns the directory or jar where the GWT compiler should write the source code,
or null if the source files shouldn't be written.
|
File |
getWarDir()
Returns the output directory.
|
File |
getWorkDir()
Returns the compiler work directory.
|
void |
setDeployDir(File extraDir)
Sets the deploy directory.
|
void |
setExtraDir(File extraDir)
Sets the extra resource directory.
|
void |
setLocalWorkers(int localWorkers)
Sets the number of workers to run on this machine.
|
void |
setLogLevel(TreeLogger.Type logLevel)
Sets the tree logger level.
|
void |
setModuleNames(List<String> moduleNames)
Sets the list of module names.
|
void |
setSaveSourceOutput(File dest)
Sets the directory or jar where the GWT compiler should write the source code,
or null to skip writing it.
|
void |
setWarDir(File outDir)
Sets the output directory.
|
void |
setWorkDir(File workDir)
Sets the compiler work directory.
|
copyFrom, copyFrom, enforceStrictResources, getFragmentCount, getFragmentsMerge, getGenDir, getMaxPermsPerPrecompile, getOptimizationLevel, getOutput, getSourceLevel, isAggressivelyOptimize, isCastCheckingDisabled, isClassMetadataDisabled, isClosureCompilerEnabled, isCompilerMetricsEnabled, isDraftCompile, isEnableAssertions, isEnabledGeneratingOnShards, isOptimizePrecompile, isRunAsyncEnabled, isSoycEnabled, isSoycExtra, isSoycHtmlDisabled, isStrict, isUpdateCheckDisabled, isValidateOnly, setAggressivelyOptimize, setCastCheckingDisabled, setClassMetadataDisabled, setClosureCompilerEnabled, setClusterSimilarFunctions, setCompilerMetricsEnabled, setDisableUpdateCheck, setEnableAssertions, setEnabledGeneratingOnShards, setEnforceStrictResources, setFragmentCount, setFragmentsMerge, setGenDir, setInlineLiteralParameters, setMaxPermsPerPrecompile, setOptimizationLevel, setOptimizeDataflow, setOptimizePrecompile, setOrdinalizeEnums, setOutput, setRemoveDuplicateFunctions, setRunAsyncEnabled, setSaveSource, setSourceLevel, setSoycEnabled, setSoycExtra, setSoycHtmlDisabled, setStrict, setValidateOnly, shouldClusterSimilarFunctions, shouldInlineLiteralParameters, shouldOptimizeDataflow, shouldOrdinalizeEnums, shouldRemoveDuplicateFunctions, shouldSaveSource
getOptimizationLevel, setOptimizationLevel
isAggressivelyOptimize, setAggressivelyOptimize
setClusterSimilarFunctions, shouldClusterSimilarFunctions
isClassMetadataDisabled, setClassMetadataDisabled
isCastCheckingDisabled, setCastCheckingDisabled
isEnableAssertions, setEnableAssertions
setInlineLiteralParameters, shouldInlineLiteralParameters
setOptimizeDataflow, shouldOptimizeDataflow
isRunAsyncEnabled, setRunAsyncEnabled
getOutput, setOutput
isSoycEnabled, setSoycEnabled
isSoycExtra, setSoycExtra
isOptimizePrecompile, setOptimizePrecompile
setOrdinalizeEnums, shouldOrdinalizeEnums
setRemoveDuplicateFunctions, shouldRemoveDuplicateFunctions
isStrict, setStrict
enforceStrictResources, setEnforceStrictResources
isSoycHtmlDisabled, setSoycHtmlDisabled
isCompilerMetricsEnabled, setCompilerMetricsEnabled
isClosureCompilerEnabled, setClosureCompilerEnabled
getFragmentsMerge, setFragmentsMerge
getFragmentCount, setFragmentCount
getSourceLevel, setSourceLevel
getGenDir, setGenDir
setSaveSource, shouldSaveSource
isValidateOnly, setValidateOnly
isUpdateCheckDisabled, setDisableUpdateCheck
isEnabledGeneratingOnShards, setEnabledGeneratingOnShards
getMaxPermsPerPrecompile, setMaxPermsPerPrecompile
addModuleName, getModuleNames, setModuleNames
getLogLevel, setLogLevel
getWorkDir, setWorkDir
public CompilerOptionsImpl()
public CompilerOptionsImpl(CompilerOptions other)
public void copyFrom(CompilerOptions other)
public File getDeployDir()
OptionDeployDir
getDeployDir
in interface OptionDeployDir
public File getExtraDir()
OptionExtraDir
getExtraDir
in interface OptionExtraDir
public int getLocalWorkers()
OptionLocalWorkers
getLocalWorkers
in interface OptionLocalWorkers
public File getSaveSourceOutput()
OptionSaveSourceOutput
getSaveSourceOutput
in interface OptionSaveSourceOutput
public File getWarDir()
OptionWarDir
getWarDir
in interface OptionWarDir
public void setDeployDir(File extraDir)
OptionDeployDir
setDeployDir
in interface OptionDeployDir
public void setExtraDir(File extraDir)
OptionExtraDir
setExtraDir
in interface OptionExtraDir
public void setLocalWorkers(int localWorkers)
OptionLocalWorkers
setLocalWorkers
in interface OptionLocalWorkers
public void setSaveSourceOutput(File dest)
OptionSaveSourceOutput
setSaveSourceOutput
in interface OptionSaveSourceOutput
public void setWarDir(File outDir)
OptionWarDir
setWarDir
in interface OptionWarDir
public void addModuleName(String moduleName)
OptionModuleName
addModuleName
in interface OptionModuleName
public void copyFrom(CompileTaskOptions other)
public TreeLogger.Type getLogLevel()
OptionLogLevel
getLogLevel
in interface OptionLogLevel
public List<String> getModuleNames()
OptionModuleName
getModuleNames
in interface OptionModuleName
public File getWorkDir()
OptionWorkDir
getWorkDir
in interface OptionWorkDir
public void setLogLevel(TreeLogger.Type logLevel)
OptionLogLevel
setLogLevel
in interface OptionLogLevel
public void setModuleNames(List<String> moduleNames)
OptionModuleName
setModuleNames
in interface OptionModuleName
public void setWorkDir(File workDir)
OptionWorkDir
setWorkDir
in interface OptionWorkDir
Copyright © 2018. All rights reserved.