org.nanoko.coffee.mill.mojos.packaging
Class StylesheetsMinifierMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
org.nanoko.coffee.mill.mojos.packaging.StylesheetsMinifierMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class StylesheetsMinifierMojo
- extends AbstractCoffeeMillMojo
Minify CSS sources.
It can use the CSS compressor from YUI.
The minified file is attached to the project using the min classifier,
except if the attachMinifiedCSS parameter is set to false
|
Field Summary |
protected boolean |
attachMinifiedCSS
Enables / Disables the attachment of the minified file to the Maven project. |
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 |
| 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 |
skipMinification
protected boolean skipMinification
- Enables to skip the minification phase.
attachMinifiedCSS
protected boolean attachMinifiedCSS
- Enables / Disables the attachment of the minified file to the Maven project.
Enabled by default.
StylesheetsMinifierMojo
public StylesheetsMinifierMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2012-2013 OW2. All Rights Reserved.