net.sf.alchim.mojo.yuicompressor
Class MojoSupport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sf.alchim.mojo.yuicompressor.MojoSupport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
JSLintMojo, YuiCompressorMojo

public abstract class MojoSupport
extends org.apache.maven.plugin.AbstractMojo

Common class for mojos.

Author:
David Bernard

Field Summary
protected  boolean failOnWarning
          define if plugin must stop/fail on warnings.
protected  ErrorReporter4Mojo jsErrorReporter_
           
protected  boolean jswarn
          [js only] Display possible errors in the code
protected  java.io.File outputDirectory
          The output directory into which to copy the resources.
protected  org.apache.maven.project.MavenProject project
           
protected  java.io.File webappDirectory
          The directory where the webapp is built.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MojoSupport()
           
 
Method Summary
protected abstract  void afterProcess()
           
protected abstract  void beforeProcess()
           
 void execute()
           
protected abstract  java.lang.String[] getDefaultIncludes()
           
protected  void processDir(java.io.File srcRoot, java.io.File destRoot, java.util.List<java.lang.String> srcIncludes, java.util.List<java.lang.String> srcExcludes, boolean destAsSource)
           
protected abstract  void processFile(SourceFile src)
           
 
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

webappDirectory

protected java.io.File webappDirectory
The directory where the webapp is built.


outputDirectory

protected java.io.File outputDirectory
The output directory into which to copy the resources.


project

protected org.apache.maven.project.MavenProject project

jswarn

protected boolean jswarn
[js only] Display possible errors in the code


failOnWarning

protected boolean failOnWarning
define if plugin must stop/fail on warnings.


jsErrorReporter_

protected ErrorReporter4Mojo jsErrorReporter_
Constructor Detail

MojoSupport

public MojoSupport()
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

getDefaultIncludes

protected abstract java.lang.String[] getDefaultIncludes()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

beforeProcess

protected abstract void beforeProcess()
                               throws java.lang.Exception
Throws:
java.lang.Exception

afterProcess

protected abstract void afterProcess()
                              throws java.lang.Exception
Throws:
java.lang.Exception

processDir

protected void processDir(java.io.File srcRoot,
                          java.io.File destRoot,
                          java.util.List<java.lang.String> srcIncludes,
                          java.util.List<java.lang.String> srcExcludes,
                          boolean destAsSource)
                   throws java.lang.Exception
Throws:
java.lang.Exception

processFile

protected abstract void processFile(SourceFile src)
                             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.