java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.ClosureConfig

public final class ClosureConfig extends Object
  • Constructor Details

    • ClosureConfig

      public ClosureConfig(MinifyMojo mojo) throws org.apache.maven.plugin.MojoFailureException
      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

      public String applyLocationMapping(String location)
    • 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

      public List<com.google.javascript.jscomp.SourceFile> 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

      public SourceMapOutputType getSourceMapOutputType()
    • isCreateSourceMap

      public boolean isCreateSourceMap()
    • isCreateSourceMapFile

      public boolean isCreateSourceMapFile()