org.codehaus.tycho.osgicompiler.copied
Class AbstractCompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.tycho.osgicompiler.copied.AbstractCompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractOsgiCompilerMojo

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

TODO: At least one step could be optimized, currently the plugin will do two scans of all the source code if the compiler has to have the entire set of sources. This is currently the case for at least the C# compiler and most likely all the other .NET compilers too.

Version:
$Id: AbstractCompilerMojo.java 210 2007-02-20 03:02:41Z jvanzyl $
Author:
others, Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCompilerMojo()
           
 
Method Summary
 void execute()
           
protected abstract  java.util.List getClasspathElements()
           
protected  org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(java.util.List<java.lang.String> compileSourceRoots)
           
protected abstract  java.util.List getCompileSourceRoots()
           
protected abstract  java.io.File getOutputDirectory()
           
protected abstract  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
           
protected abstract  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(java.lang.String inputFileEnding)
           
protected static java.util.List removeEmptyCompileSourceRoots(java.util.List compileSourceRootsList)
           
 
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

AbstractCompilerMojo

public AbstractCompilerMojo()
Method Detail

getSourceInclusionScanner

protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)

getSourceInclusionScanner

protected abstract org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(java.lang.String inputFileEnding)

getClasspathElements

protected abstract java.util.List getClasspathElements()
                                                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getCompileSourceRoots

protected abstract java.util.List getCompileSourceRoots()
                                                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getOutputDirectory

protected abstract java.io.File getOutputDirectory()

execute

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

getCompilerConfiguration

protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(java.util.List<java.lang.String> compileSourceRoots)
                                                                               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

removeEmptyCompileSourceRoots

protected static java.util.List removeEmptyCompileSourceRoots(java.util.List compileSourceRootsList)


Copyright © 2008-2011. All Rights Reserved.