net.sf.alchim.mojo.yuicompressor
Class YuiCompressorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sf.alchim.mojo.yuicompressor.MojoSupport
          extended by net.sf.alchim.mojo.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.sf.alchim.mojo.yuicompressor.MojoSupport
failOnWarning, jsErrorReporter_, jswarn, outputDirectory, project, webappDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
YuiCompressorMojo()
           
 
Method Summary
protected  void afterProcess()
           
 void beforeProcess()
           
protected  java.lang.String[] getDefaultIncludes()
           
protected  java.io.File gzipIfRequested(java.io.File file)
           
protected  void processFile(SourceFile src)
           
protected  long ratioOfSize(java.io.File file100, java.io.File fileX)
           
 
Methods inherited from class net.sf.alchim.mojo.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 java.lang.String[] getDefaultIncludes()
                                         throws java.lang.Exception
Specified by:
getDefaultIncludes in class MojoSupport
Throws:
java.lang.Exception

beforeProcess

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

afterProcess

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

processFile

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

gzipIfRequested

protected java.io.File gzipIfRequested(java.io.File file)
                                throws java.lang.Exception
Throws:
java.lang.Exception

ratioOfSize

protected long ratioOfSize(java.io.File file100,
                           java.io.File fileX)
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.