|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
org.nanoko.coffee.mill.mojos.packaging.JavaScriptMinifierMojo
public class JavaScriptMinifierMojo
Minify JavaScript sources. It can use Google Closure or YUI Compressor. The minified file is attached to the project using the min classifier, except if the attachMinifiedJavaScript parameter is set to false
| Nested Class Summary | |
|---|---|
static class |
JavaScriptMinifierMojo.Minifier
|
| Field Summary | |
|---|---|
protected boolean |
attachMinifiedJavaScript
Enables / Disables the attachment of the minified file to the Maven project. |
protected JavaScriptMinifierMojo.Minifier |
minifier
The JavaScript minifier to use among GOOGLE_CLOSURE (default) and YUI_COMPRESSOR. |
protected com.google.javascript.jscomp.CompilationLevel |
minifierGoogleCompilationLevel
Selects the compilation level for Google Closure among SIMPLE_OPTIMIZATIONS, WHITESPACE_ONLY and ADVANCED_OPTIMIZATIONS. |
protected boolean |
minifierYUIDisableOptimizations
YUI Options to disable the optimizations. |
protected boolean |
minifierYUIMunge
YUI Options to enable / disable the munge mode. |
protected boolean |
minifierYUIPreserveSemiColumn
YUI Option to preserve all semi columns. |
protected boolean |
minifierYUIVerbose
YUI Option to enable the verbose mode. |
protected boolean |
skipMinification
Enables to skip the minification phase. |
| Fields inherited from class org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo |
|---|
assetsDir, baseDirectory, buildDirectory, coffeeScriptDir, coffeeScriptTestDir, javaScriptDir, javaScriptTestDir, libDir, project, projectHelper, stylesheetsDir, workDir, workTestDir |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JavaScriptMinifierMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
protected com.google.javascript.jscomp.CompilerOptions |
newCompilerOptions()
|
| Methods inherited from class org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo |
|---|
getLibDirectory, getTarget, getWorkDirectory, getWorkTestDirectory |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean skipMinification
protected boolean attachMinifiedJavaScript
protected JavaScriptMinifierMojo.Minifier minifier
protected boolean minifierYUIPreserveSemiColumn
protected boolean minifierYUIVerbose
protected boolean minifierYUIMunge
protected boolean minifierYUIDisableOptimizations
protected com.google.javascript.jscomp.CompilationLevel minifierGoogleCompilationLevel
| Constructor Detail |
|---|
public JavaScriptMinifierMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionprotected com.google.javascript.jscomp.CompilerOptions newCompilerOptions()
CompilerOptions object to be used by compressor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||