org.apache.maven.plugin
Class CompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.AbstractCompilerMojo
          extended by org.apache.maven.plugin.CompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CompilerMojo
extends AbstractCompilerMojo

Compiles application sources

Since:
2.0
Version:
$Id: CompilerMojo.java 1162398 2011-08-27 16:39:22Z rfscholte $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.maven.plugin.AbstractCompilerMojo
compilerArgument, compilerArguments, source, target
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CompilerMojo()
           
 
Method Summary
 void execute()
           
protected  java.util.List<java.lang.String> getClasspathElements()
           
protected  java.lang.String getCompilerArgument()
           
protected  java.util.Map<java.lang.String,java.lang.String> getCompilerArguments()
           
protected  java.util.List<java.lang.String> getCompileSourceRoots()
           
protected  java.io.File getGeneratedSourcesDirectory()
           
protected  java.io.File getOutputDirectory()
           
protected  java.lang.String getSource()
           
protected  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
           
protected  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(java.lang.String inputFileEnding)
           
protected  java.lang.String getTarget()
           
 
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

CompilerMojo

public CompilerMojo()
Method Detail

getCompileSourceRoots

protected java.util.List<java.lang.String> getCompileSourceRoots()
Specified by:
getCompileSourceRoots in class AbstractCompilerMojo

getClasspathElements

protected java.util.List<java.lang.String> getClasspathElements()
Specified by:
getClasspathElements in class AbstractCompilerMojo

getOutputDirectory

protected java.io.File getOutputDirectory()
Specified by:
getOutputDirectory in class AbstractCompilerMojo

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    CompilationFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractCompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
CompilationFailureException

getSourceInclusionScanner

protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
Specified by:
getSourceInclusionScanner in class AbstractCompilerMojo

getSourceInclusionScanner

protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(java.lang.String inputFileEnding)
Specified by:
getSourceInclusionScanner in class AbstractCompilerMojo

getSource

protected java.lang.String getSource()
Specified by:
getSource in class AbstractCompilerMojo

getTarget

protected java.lang.String getTarget()
Specified by:
getTarget in class AbstractCompilerMojo

getCompilerArgument

protected java.lang.String getCompilerArgument()
Specified by:
getCompilerArgument in class AbstractCompilerMojo

getCompilerArguments

protected java.util.Map<java.lang.String,java.lang.String> getCompilerArguments()
Specified by:
getCompilerArguments in class AbstractCompilerMojo

getGeneratedSourcesDirectory

protected java.io.File getGeneratedSourcesDirectory()
Specified by:
getGeneratedSourcesDirectory in class AbstractCompilerMojo


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.