org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt
Class AbstractCompressMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.jmt.AbstractCompressMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AttachCompressedMojo, DirectoryCompressMojo, WebappCompressMojo

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

Abstact mojo for compressing JavaScripts.

Author:
nicolas De Loof

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCompressMojo()
           
 
Method Summary
 void execute()
          
abstract  String getExtension()
           
protected abstract  File getOutputDirectory()
           
protected abstract  File getSourceDirectory()
           
protected  void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
           
 
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

AbstractCompressMojo

public AbstractCompressMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException

Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()

getExtension

public abstract String getExtension()
Returns:
the extension to append to compressed scripts.

getOutputDirectory

protected abstract File getOutputDirectory()
Returns:
the outputDirectory

getSourceDirectory

protected abstract File getSourceDirectory()
Returns:
the sourceDirectory

setLocalRepository

protected void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.