protected static class AbstractCommandLineRunner.CommandLineConfig extends Object
Modifier | Constructor and Description |
---|---|
protected |
CommandLineConfig() |
Modifier and Type | Method and Description |
---|---|
AbstractCommandLineRunner.CommandLineConfig |
setAngularPass(boolean angularPass)
Sets whether to process AngularJS-specific annotations.
|
AbstractCommandLineRunner.CommandLineConfig |
setApplyInputSourceMaps(boolean applyInputSourceMaps)
Whether to apply input source maps to the output, i.e.
|
AbstractCommandLineRunner.CommandLineConfig |
setCharset(String charset)
Input charset for all files.
|
AbstractCommandLineRunner.CommandLineConfig |
setCodingConvention(CodingConvention codingConvention)
Sets rules and conventions to enforce.
|
AbstractCommandLineRunner.CommandLineConfig |
setCreateNameMapFiles(boolean createNameMapFiles)
If true, variable renaming and property renaming map
files will be produced as {binary name}_vars_map.out and
{binary name}_props_map.out.
|
AbstractCommandLineRunner.CommandLineConfig |
setCreateSourceMap(String createSourceMap)
If specified, a source map file mapping the generated
source files back to the original source file will be
output to the specified path.
|
AbstractCommandLineRunner.CommandLineConfig |
setDefine(List<String> define)
Override the value of a variable annotated @define.
|
AbstractCommandLineRunner.CommandLineConfig |
setDependencyMode(CompilerOptions.DependencyMode newVal)
Sets whether to sort files by their goog.provide/require deps,
and prune inputs that are not required.
|
AbstractCommandLineRunner.CommandLineConfig |
setEntryPoints(List<ModuleIdentifier> entryPoints)
Set module entry points, which makes the compiler only include
those files and sort them in dependency order.
|
AbstractCommandLineRunner.CommandLineConfig |
setExterns(List<String> externs)
The file containing JavaScript externs.
|
AbstractCommandLineRunner.CommandLineConfig |
setHideWarningsFor(List<String> hideWarningsFor)
Sets the paths for which warnings will be hidden.
|
AbstractCommandLineRunner.CommandLineConfig |
setInstrumentationTemplateFile(String fileName) |
AbstractCommandLineRunner.CommandLineConfig |
setJs(List<String> js)
The JavaScript filename.
|
AbstractCommandLineRunner.CommandLineConfig |
setJscompDevMode(com.google.javascript.jscomp.CompilerOptions.DevMode jscompDevMode)
Turns on extra sanity checks
|
AbstractCommandLineRunner.CommandLineConfig |
setJsonStreamMode(com.google.javascript.jscomp.CompilerOptions.JsonStreamMode mode) |
AbstractCommandLineRunner.CommandLineConfig |
setJsOutputFile(String jsOutputFile)
Primary output filename.
|
AbstractCommandLineRunner.CommandLineConfig |
setJsZip(List<String> zip)
The JavaScript zip filename.
|
AbstractCommandLineRunner.CommandLineConfig |
setLoggingLevel(String loggingLevel)
The logging level (standard java.util.logging.Level
values) for Compiler progress.
|
AbstractCommandLineRunner.CommandLineConfig |
setManifestMaps(List<String> manifestMaps)
Sets the execPath:rootRelativePath mappings
|
AbstractCommandLineRunner.CommandLineConfig |
setMixedJsSources(List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> mixedJsSources)
The JavaScript source file names, including .js and .zip files.
|
AbstractCommandLineRunner.CommandLineConfig |
setModule(List<String> module)
A JavaScript module specification.
|
AbstractCommandLineRunner.CommandLineConfig |
setModuleOutputPathPrefix(String moduleOutputPathPrefix)
Prefix for filenames of compiled JS modules.
|
AbstractCommandLineRunner.CommandLineConfig |
setModuleRoots(List<String> jsModuleRoots)
Sets the module roots.
|
AbstractCommandLineRunner.CommandLineConfig |
setModuleWrapper(List<String> moduleWrapper)
An output wrapper for a JavaScript module (optional).
|
AbstractCommandLineRunner.CommandLineConfig |
setNewTypeInference(boolean useNewTypeInference) |
AbstractCommandLineRunner.CommandLineConfig |
setOutputBundle(List<String> outputBundles)
Sets whether to print output bundle files.
|
AbstractCommandLineRunner.CommandLineConfig |
setOutputManifest(List<String> outputManifests)
Sets whether to print output manifest files.
|
AbstractCommandLineRunner.CommandLineConfig |
setOutputModuleDependencies(String outputModuleDependencies)
Sets whether a JSON file representing the dependencies between modules
should be created.
|
AbstractCommandLineRunner.CommandLineConfig |
setOutputWrapper(String outputWrapper)
Interpolate output into this string at the place denoted
by the marker token %output%, or %output|jsstring%
|
AbstractCommandLineRunner.CommandLineConfig |
setParseInlineSourceMaps(boolean parseInlineSourceMaps) |
AbstractCommandLineRunner.CommandLineConfig |
setPrintAst(boolean printAst)
Prints a dot file describing the internal abstract syntax tree
and exits
|
AbstractCommandLineRunner.CommandLineConfig |
setPrintPassGraph(boolean printPassGraph)
Prints a dot file describing the passes that will get run and exits
|
AbstractCommandLineRunner.CommandLineConfig |
setProcessCommonJSModules(boolean processCommonJSModules)
Sets whether to process CommonJS modules.
|
AbstractCommandLineRunner.CommandLineConfig |
setPropertyMapInputFile(String propertyMapInputFile)
File containing the serialized version of the property renaming
map produced by a previous compilation
|
AbstractCommandLineRunner.CommandLineConfig |
setPropertyMapOutputFile(String propertyMapOutputFile)
File where the serialized version of the property renaming map
produced should be saved
|
AbstractCommandLineRunner.CommandLineConfig |
setSkipNormalOutputs(boolean skipNormalOutputs)
Sets whether the normal outputs of compilation should be skipped.
|
AbstractCommandLineRunner.CommandLineConfig |
setSourceMapDetailLevel(SourceMap.DetailLevel level)
The detail supplied in the source map file, if generated.
|
AbstractCommandLineRunner.CommandLineConfig |
setSourceMapFormat(SourceMap.Format format)
The source map format to use, if generated.
|
AbstractCommandLineRunner.CommandLineConfig |
setSourceMapInputFiles(Map<String,String> sourceMapInputFiles) |
AbstractCommandLineRunner.CommandLineConfig |
setSourceMapLocationMappings(List<SourceMap.LocationMapping> locationMappings)
The source map location mappings to use, if generated.
|
AbstractCommandLineRunner.CommandLineConfig |
setStringMapOutputFile(String stringMapOutputPath)
File where the serialized version of the string map produced by the ReplaceStrings pass
should be saved.
|
AbstractCommandLineRunner.CommandLineConfig |
setSummaryDetailLevel(int summaryDetailLevel)
Controls how detailed the compilation summary is.
|
AbstractCommandLineRunner.CommandLineConfig |
setTracerMode(CompilerOptions.TracerMode tracerMode) |
AbstractCommandLineRunner.CommandLineConfig |
setTransformAMDToCJSModules(boolean transformAMDToCJSModules)
Set whether to transform AMD to CommonJS modules.
|
AbstractCommandLineRunner.CommandLineConfig |
setTweak(List<String> tweak)
Override the default value of a registered tweak.
|
AbstractCommandLineRunner.CommandLineConfig |
setTweakProcessing(CompilerOptions.TweakProcessing tweakProcessing)
Sets the kind of processing to do for goog.tweak functions.
|
AbstractCommandLineRunner.CommandLineConfig |
setVariableMapInputFile(String variableMapInputFile)
File containing the serialized version of the variable renaming
map produced by a previous compilation
|
AbstractCommandLineRunner.CommandLineConfig |
setVariableMapOutputFile(String variableMapOutputFile)
File where the serialized version of the variable renaming map
produced should be saved
|
AbstractCommandLineRunner.CommandLineConfig |
setWarningGuards(List<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards)
Add warning guards.
|
AbstractCommandLineRunner.CommandLineConfig |
setWarningsWhitelistFile(String fileName)
Sets a whitelist file that suppresses warnings.
|
public AbstractCommandLineRunner.CommandLineConfig setPrintAst(boolean printAst)
public AbstractCommandLineRunner.CommandLineConfig setPrintPassGraph(boolean printPassGraph)
public AbstractCommandLineRunner.CommandLineConfig setJscompDevMode(com.google.javascript.jscomp.CompilerOptions.DevMode jscompDevMode)
public AbstractCommandLineRunner.CommandLineConfig setLoggingLevel(String loggingLevel)
public AbstractCommandLineRunner.CommandLineConfig setExterns(List<String> externs)
public AbstractCommandLineRunner.CommandLineConfig setJs(List<String> js)
public AbstractCommandLineRunner.CommandLineConfig setJsZip(List<String> zip)
public AbstractCommandLineRunner.CommandLineConfig setMixedJsSources(List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> mixedJsSources)
public AbstractCommandLineRunner.CommandLineConfig setJsOutputFile(String jsOutputFile)
public AbstractCommandLineRunner.CommandLineConfig setModule(List<String> module)
<name>:<num-js-files>[:[<dep>,...][:]]]
. Module names must be
unique. Each dep is the name of a module that this module
depends on. Modules must be listed in dependency order, and JS
source files must be listed in the corresponding order. Where
--module flags occur in relation to --js flags is unimportantpublic AbstractCommandLineRunner.CommandLineConfig setSourceMapInputFiles(Map<String,String> sourceMapInputFiles)
public AbstractCommandLineRunner.CommandLineConfig setParseInlineSourceMaps(boolean parseInlineSourceMaps)
public AbstractCommandLineRunner.CommandLineConfig setVariableMapInputFile(String variableMapInputFile)
public AbstractCommandLineRunner.CommandLineConfig setPropertyMapInputFile(String propertyMapInputFile)
public AbstractCommandLineRunner.CommandLineConfig setVariableMapOutputFile(String variableMapOutputFile)
public AbstractCommandLineRunner.CommandLineConfig setCreateNameMapFiles(boolean createNameMapFiles)
public AbstractCommandLineRunner.CommandLineConfig setPropertyMapOutputFile(String propertyMapOutputFile)
public AbstractCommandLineRunner.CommandLineConfig setStringMapOutputFile(String stringMapOutputPath)
public AbstractCommandLineRunner.CommandLineConfig setCodingConvention(CodingConvention codingConvention)
public AbstractCommandLineRunner.CommandLineConfig setSummaryDetailLevel(int summaryDetailLevel)
public AbstractCommandLineRunner.CommandLineConfig setOutputWrapper(String outputWrapper)
public AbstractCommandLineRunner.CommandLineConfig setModuleWrapper(List<String> moduleWrapper)
public AbstractCommandLineRunner.CommandLineConfig setModuleOutputPathPrefix(String moduleOutputPathPrefix)
<module-name>.js
will be appended to this prefix. Directories
will be created as needed. Use with --modulepublic AbstractCommandLineRunner.CommandLineConfig setCreateSourceMap(String createSourceMap)
public AbstractCommandLineRunner.CommandLineConfig setSourceMapDetailLevel(SourceMap.DetailLevel level)
public AbstractCommandLineRunner.CommandLineConfig setSourceMapFormat(SourceMap.Format format)
public AbstractCommandLineRunner.CommandLineConfig setSourceMapLocationMappings(List<SourceMap.LocationMapping> locationMappings)
public AbstractCommandLineRunner.CommandLineConfig setApplyInputSourceMaps(boolean applyInputSourceMaps)
public AbstractCommandLineRunner.CommandLineConfig setWarningGuards(List<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards)
public AbstractCommandLineRunner.CommandLineConfig setDefine(List<String> define)
<name>[=<val>]
, where <name>
is the name of
a @define variable and <val>
is a boolean, number, or a
single-quoted string that contains no single quotes. If
[=<val>]
is omitted, the variable is marked truepublic AbstractCommandLineRunner.CommandLineConfig setTweak(List<String> tweak)
<name>[=<val>]
, where <name>
is the ID of a
tweak and <val>
is a boolean, number, or a
single-quoted string that contains no single quotes. If
[=<val>]
is omitted, then true is assumed.public AbstractCommandLineRunner.CommandLineConfig setTweakProcessing(CompilerOptions.TweakProcessing tweakProcessing)
public AbstractCommandLineRunner.CommandLineConfig setCharset(String charset)
public AbstractCommandLineRunner.CommandLineConfig setDependencyMode(CompilerOptions.DependencyMode newVal)
public AbstractCommandLineRunner.CommandLineConfig setEntryPoints(List<ModuleIdentifier> entryPoints)
public AbstractCommandLineRunner.CommandLineConfig setOutputManifest(List<String> outputManifests)
public AbstractCommandLineRunner.CommandLineConfig setOutputModuleDependencies(String outputModuleDependencies)
public AbstractCommandLineRunner.CommandLineConfig setOutputBundle(List<String> outputBundles)
public AbstractCommandLineRunner.CommandLineConfig setSkipNormalOutputs(boolean skipNormalOutputs)
public AbstractCommandLineRunner.CommandLineConfig setManifestMaps(List<String> manifestMaps)
public AbstractCommandLineRunner.CommandLineConfig setTransformAMDToCJSModules(boolean transformAMDToCJSModules)
public AbstractCommandLineRunner.CommandLineConfig setProcessCommonJSModules(boolean processCommonJSModules)
public AbstractCommandLineRunner.CommandLineConfig setModuleRoots(List<String> jsModuleRoots)
public AbstractCommandLineRunner.CommandLineConfig setWarningsWhitelistFile(String fileName)
public AbstractCommandLineRunner.CommandLineConfig setHideWarningsFor(List<String> hideWarningsFor)
public AbstractCommandLineRunner.CommandLineConfig setAngularPass(boolean angularPass)
public AbstractCommandLineRunner.CommandLineConfig setTracerMode(CompilerOptions.TracerMode tracerMode)
public AbstractCommandLineRunner.CommandLineConfig setNewTypeInference(boolean useNewTypeInference)
public AbstractCommandLineRunner.CommandLineConfig setInstrumentationTemplateFile(String fileName)
public AbstractCommandLineRunner.CommandLineConfig setJsonStreamMode(com.google.javascript.jscomp.CompilerOptions.JsonStreamMode mode)
Copyright © 2009-2016 Google. All Rights Reserved.