org.eclipse.xtend.maven
Class AbstractXtend2CompilerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 |
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 |
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.
AbstractXtend2CompilerMojo
public AbstractXtend2CompilerMojo()
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)