org.nanoko.coffee.mill.mojos.compile
Class OptiPNGMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nanoko.coffee.mill.mojos.AbstractCoffeeMillMojo
          extended by org.nanoko.coffee.mill.mojos.compile.OptiPNGMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class OptiPNGMojo
extends AbstractCoffeeMillMojo

Optimizes PNG files using optiPNG (http://optipng.sourceforge.net/). OptiPNG must be installed and the executable `optipng` available form the system path.


Field Summary
protected  int optiPngOptimizationLevel
          The optiPNG optimization level among 0-7.
 boolean optiPNGVerbose
          Enables the verbose mode of optiPNG.
protected  boolean skipOptiPNG
          Skips the PNG files optimization.
 
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
OptiPNGMojo()
           
 
Method Summary
 void execute()
           
 
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

optiPNGVerbose

public boolean optiPNGVerbose
Enables the verbose mode of optiPNG.


optiPngOptimizationLevel

protected int optiPngOptimizationLevel
The optiPNG optimization level among 0-7.


skipOptiPNG

protected boolean skipOptiPNG
Skips the PNG files optimization.

Constructor Detail

OptiPNGMojo

public OptiPNGMojo()
Method Detail

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.