org.apache.myfaces.maven.plugin
Class AbstractAPTMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.myfaces.maven.plugin.AbstractAPTMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AptMojo, TestAptMojo

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

Version:
$Id: AbstractAPTMojo.java 949569 2010-05-30 20:44:27Z bommel $
Author:
Juraj Burian

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAPTMojo()
           
 
Method Summary
 void execute()
          execute
protected abstract  List getAptSourceRoots()
          The extra source directories containing the source to be processed.
protected abstract  List getClasspathElements()
          classpath elements.
protected abstract  List getCompileSourceRoots()
          The source directories containing the sources to be compiled.
protected abstract  String getGenerated()
          The directory where generated code go.
protected abstract  File getOutputDirectory()
          The directory where compiled classes go.
 org.apache.maven.project.MavenProject getProject()
          The maven project.
protected  String getResourceTargetPath()
          targetPath for generated resources
protected abstract  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner()
           
 int getStaleMillis()
          The granularity in milliseconds of the last modification date for testing whether a source needs recompilation
protected  List getTargetFiles()
          A List of targetFiles for SingleSourceTargetMapping
 boolean isForce()
          Force apt call without staleness checking.
protected  boolean isResourceFiltering()
          enables resource filtering for generated resources
 boolean isVerbose()
          run Apt in verbode mode
 
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

AbstractAPTMojo

public AbstractAPTMojo()
Method Detail

getProject

public org.apache.maven.project.MavenProject getProject()
The maven project.

Returns:
MavenProject

isForce

public boolean isForce()
Force apt call without staleness checking.

Returns:
force

isVerbose

public boolean isVerbose()
run Apt in verbode mode

Returns:
verbose

getStaleMillis

public int getStaleMillis()
The granularity in milliseconds of the last modification date for testing whether a source needs recompilation

Returns:
staleMillis

getTargetFiles

protected List getTargetFiles()
A List of targetFiles for SingleSourceTargetMapping

Returns:
a List of TargetFiles

isResourceFiltering

protected boolean isResourceFiltering()
enables resource filtering for generated resources

Returns:
resourceFiltering

getResourceTargetPath

protected String getResourceTargetPath()
targetPath for generated resources

Returns:
resouceTargetPath

getClasspathElements

protected abstract List getClasspathElements()
classpath elements.

Returns:
a List of classPathElements

getCompileSourceRoots

protected abstract List getCompileSourceRoots()
The source directories containing the sources to be compiled.

Returns:
a List of CompileSourceRoots

getAptSourceRoots

protected abstract List getAptSourceRoots()
The extra source directories containing the source to be processed.

Returns:
a List of AptSourceRoots

getOutputDirectory

protected abstract File getOutputDirectory()
The directory where compiled classes go.

Returns:
outputDirector

getGenerated

protected abstract String getGenerated()
The directory where generated code go.

Returns:
generated

getSourceInclusionScanner

protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner()
Returns:
a SourceInclusionScanner

execute

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

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.