net.sf.alchim.mojo.yuicompressor
Class YuiCompressorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.sf.alchim.mojo.yuicompressor.MojoSupport
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
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 |
YuiCompressorMojo
public YuiCompressorMojo()
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.