net_alchim31_maven_yuicompressor
Class YuiCompressorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net_alchim31_maven_yuicompressor.MojoSupport
          extended by net_alchim31_maven_yuicompressor.YuiCompressorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class YuiCompressorMojo
extends MojoSupport

Apply compression on JS and CSS (using YUI Compressor).

Author:
David Bernard

Field Summary
 
Fields inherited from class net_alchim31_maven_yuicompressor.MojoSupport
failOnWarning, jsErrorReporter_, jswarn, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
YuiCompressorMojo()
           
 
Method Summary
protected  void afterProcess()
           
 void beforeProcess()
           
protected  String[] getDefaultIncludes()
           
protected  File gzipIfRequested(File file)
           
protected  void processFile(SourceFile src)
           
protected  long ratioOfSize(File file100, File fileX)
           
 
Methods inherited from class net_alchim31_maven_yuicompressor.MojoSupport
execute, processDir
 
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
 

Constructor Detail

YuiCompressorMojo

public YuiCompressorMojo()
Method Detail

getDefaultIncludes

protected String[] getDefaultIncludes()
                               throws Exception
Specified by:
getDefaultIncludes in class MojoSupport
Throws:
Exception

beforeProcess

public void beforeProcess()
                   throws Exception
Specified by:
beforeProcess in class MojoSupport
Throws:
Exception

afterProcess

protected void afterProcess()
                     throws Exception
Specified by:
afterProcess in class MojoSupport
Throws:
Exception

processFile

protected void processFile(SourceFile src)
                    throws Exception
Specified by:
processFile in class MojoSupport
Throws:
Exception

gzipIfRequested

protected File gzipIfRequested(File file)
                        throws Exception
Throws:
Exception

ratioOfSize

protected long ratioOfSize(File file100,
                           File fileX)
                    throws Exception
Throws:
Exception


Copyright © 2010-2012 Alchim31. All Rights Reserved.