Class ClosureConfig
java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.ClosureConfig
Google Closure Compiler configuration.
-
Constructor Summary
ConstructorDescriptionClosureConfig
(MinifyMojo mojo) Create a new closure compiler configuration from the mojo configuration. -
Method Summary
Modifier and TypeMethodDescriptionapplyLocationMapping
(String location) com.google.javascript.jscomp.CompilationLevel
com.google.javascript.jscomp.CompilerOptions
getCompilerOptions
(com.google.javascript.jscomp.SourceMap.LocationMapping defaultMapping, File minifiedFile, File sourceMapFile, File baseDirForSourceFiles, File sourceDir) com.google.javascript.jscomp.CompilerOptions.Environment
List<com.google.javascript.jscomp.SourceFile>
com.google.javascript.jscomp.CompilerOptions.LanguageMode
com.github.blutorange.maven.plugin.closurecompiler.common.OutputInterpolator
com.github.blutorange.maven.plugin.closurecompiler.common.FilenameInterpolator
boolean
boolean
-
Constructor Details
-
ClosureConfig
Create a new closure compiler configuration from the mojo configuration.- Parameters:
mojo
- Mojo with the options.- Throws:
org.apache.maven.plugin.MojoFailureException
- When the configuration is invalid or cannot be parsed.
-
-
Method Details
-
applyLocationMapping
-
getCompilationLevel
public com.google.javascript.jscomp.CompilationLevel getCompilationLevel() -
getCompilerOptions
public com.google.javascript.jscomp.CompilerOptions getCompilerOptions(com.google.javascript.jscomp.SourceMap.LocationMapping defaultMapping, File minifiedFile, File sourceMapFile, File baseDirForSourceFiles, File sourceDir) throws org.apache.maven.plugin.MojoFailureException, IOException - Throws:
org.apache.maven.plugin.MojoFailureException
IOException
-
getEnvironment
public com.google.javascript.jscomp.CompilerOptions.Environment getEnvironment() -
getExterns
-
getLanguageOut
public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageOut() -
getOutputInterpolator
public com.github.blutorange.maven.plugin.closurecompiler.common.OutputInterpolator getOutputInterpolator() -
getSourceMapInterpolator
public com.github.blutorange.maven.plugin.closurecompiler.common.FilenameInterpolator getSourceMapInterpolator() -
getSourceMapOutputType
-
isCreateSourceMap
public boolean isCreateSourceMap() -
isCreateSourceMapFile
public boolean isCreateSourceMapFile()
-