Class ClosureConfig
java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.ClosureConfig
Google Closure Compiler configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionClosureConfig(MinifyMojo mojo) Create a new closure compiler configuration from the mojo configuration. -
Method Summary
Modifier and TypeMethodDescriptionapplyLocationMapping(String location) com.google.javascript.jscomp.CompilationLevelcom.google.javascript.jscomp.CompilerOptionsgetCompilerOptions(com.google.javascript.jscomp.SourceMap.LocationMapping defaultMapping, File minifiedFile, File sourceMapFile, File baseDirForSourceFiles, File sourceDir) com.google.javascript.jscomp.CompilerOptions.EnvironmentList<com.google.javascript.jscomp.SourceFile> com.google.javascript.jscomp.CompilerOptions.LanguageModecom.github.blutorange.maven.plugin.closurecompiler.common.OutputInterpolatorcom.github.blutorange.maven.plugin.closurecompiler.common.FilenameInterpolatorbooleanboolean
-
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.MojoFailureExceptionIOException
-
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()
-