org.eclipse.xtend.maven
Class AbstractXtend2CompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.eclipse.xtend.maven.AbstractXtend2CompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
XtendCompile, XtendTestCompile

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

Author:
Michael Clay - Initial contribution and API

Field Summary
protected  java.lang.String encoding
          Xtend-File encoding argument for the compiler.
protected static com.google.common.base.Predicate<java.lang.String> FILE_EXISTS
           
protected  org.apache.maven.project.MavenProject project
          The project itself.
protected  boolean skipXtend
          Set this to true to skip compiling Xtend sources.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractXtend2CompilerMojo()
           
 
Method Summary
protected  void addDependencies(java.util.Set<java.lang.String> classPath, java.util.List<org.apache.maven.artifact.Artifact> dependencies)
           
protected  void compile(XtendBatchCompiler xtend2BatchCompiler, java.lang.String classPath, java.util.List<java.lang.String> sourceDirectories, java.lang.String outputPath)
           
protected  void configureLog4j()
           
protected  org.apache.log4j.AppenderSkeleton createMojoLogAppender()
           
protected  XtendBatchCompiler createXtendBatchCompiler()
           
 void execute()
           
protected abstract  java.lang.String getTempDirectory()
           
protected abstract  void internalExecute(XtendBatchCompiler xtend2BatchCompiler)
           
protected  boolean isSkipped()
           
 
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

FILE_EXISTS

protected static final com.google.common.base.Predicate<java.lang.String> FILE_EXISTS

project

protected org.apache.maven.project.MavenProject project
The project itself. This parameter is set by maven.


encoding

protected java.lang.String encoding
Xtend-File encoding argument for the compiler.


skipXtend

protected boolean skipXtend
Set this to true to skip compiling Xtend sources.

Constructor Detail

AbstractXtend2CompilerMojo

public AbstractXtend2CompilerMojo()
Method Detail

execute

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

isSkipped

protected boolean isSkipped()

internalExecute

protected abstract void internalExecute(XtendBatchCompiler xtend2BatchCompiler)
                                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

createXtendBatchCompiler

protected XtendBatchCompiler createXtendBatchCompiler()

compile

protected void compile(XtendBatchCompiler xtend2BatchCompiler,
                       java.lang.String classPath,
                       java.util.List<java.lang.String> sourceDirectories,
                       java.lang.String outputPath)
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getTempDirectory

protected abstract java.lang.String getTempDirectory()

configureLog4j

protected void configureLog4j()

createMojoLogAppender

protected org.apache.log4j.AppenderSkeleton createMojoLogAppender()

addDependencies

protected void addDependencies(java.util.Set<java.lang.String> classPath,
                               java.util.List<org.apache.maven.artifact.Artifact> dependencies)