net_alchim31_maven_yuicompressor
Class YuiCompressorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net_alchim31_maven_yuicompressor.MojoSupport
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
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 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.