org.eclipse.tycho.compiler
Class AbstractOsgiCompilerMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by copied.org.apache.maven.plugin.AbstractCompilerMojo
          extended by org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.eclipse.tycho.classpath.JavaCompilerConfiguration, org.eclipse.tycho.runtime.Adaptable
Direct Known Subclasses:
OsgiCompilerMojo, OsgiTestCompilerMojo

public abstract class AbstractOsgiCompilerMojo
extends AbstractCompilerMojo
implements org.eclipse.tycho.classpath.JavaCompilerConfiguration, org.eclipse.tycho.runtime.Adaptable


Field Summary
static String RULE_EXCLUDE_ALL
          Exclude all but keep looking for other another match
static String RULE_SEPARATOR
           
 
Fields inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
DEFAULT_SOURCE_VERSION, DEFAULT_TARGET_VERSION, source, target
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractOsgiCompilerMojo()
           
 
Method Summary
 void execute()
           
<T> T
getAdapter(Class<T> adapter)
           
 List<org.eclipse.tycho.classpath.ClasspathEntry> getClasspath()
           
 List<String> getClasspathElements()
           
protected  org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots)
           
protected  List<String> getCompileSourceRoots()
           
 EclipsePluginProject getEclipsePluginProject()
          public for testing purposes
 String getExecutionEnvironment()
           
protected  File getOutputDirectory()
           
protected  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
           
protected  org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
           
 String getSourceLevel()
           
 List<org.eclipse.tycho.classpath.SourcepathEntry> getSourcepath()
           
 String getTargetLevel()
           
 String getTargetLevel(org.eclipse.tycho.core.ee.shared.ExecutionEnvironment env)
           
 
Methods inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
removeEmptyCompileSourceRoots
 
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

RULE_SEPARATOR

public static final String RULE_SEPARATOR

RULE_EXCLUDE_ALL

public static final String RULE_EXCLUDE_ALL
Exclude all but keep looking for other another match

See Also:
Constant Field Values
Constructor Detail

AbstractOsgiCompilerMojo

public AbstractOsgiCompilerMojo()
Method Detail

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

getEclipsePluginProject

public EclipsePluginProject getEclipsePluginProject()
                                             throws org.apache.maven.plugin.MojoExecutionException
public for testing purposes

Throws:
org.apache.maven.plugin.MojoExecutionException

getOutputDirectory

protected File getOutputDirectory()
Specified by:
getOutputDirectory in class AbstractCompilerMojo

getClasspathElements

public List<String> getClasspathElements()
                                  throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getClasspathElements in class AbstractCompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getCompileSourceRoots

protected final List<String> getCompileSourceRoots()
                                            throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getCompileSourceRoots in class AbstractCompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getSourcepath

public List<org.eclipse.tycho.classpath.SourcepathEntry> getSourcepath()
                                                                throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getSourcepath in interface org.eclipse.tycho.classpath.JavaCompilerConfiguration
Throws:
org.apache.maven.plugin.MojoExecutionException

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(String inputFileEnding)
Specified by:
getSourceInclusionScanner in class AbstractCompilerMojo

getCompilerConfiguration

protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots)
                                                                               throws org.apache.maven.plugin.MojoExecutionException
Overrides:
getCompilerConfiguration in class AbstractCompilerMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

getClasspath

public List<org.eclipse.tycho.classpath.ClasspathEntry> getClasspath()
                                                              throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getClasspath in interface org.eclipse.tycho.classpath.JavaCompilerConfiguration
Throws:
org.apache.maven.plugin.MojoExecutionException

getExecutionEnvironment

public String getExecutionEnvironment()
                               throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getExecutionEnvironment in interface org.eclipse.tycho.classpath.JavaCompilerConfiguration
Throws:
org.apache.maven.plugin.MojoExecutionException

getSourceLevel

public String getSourceLevel()
                      throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getSourceLevel in interface org.eclipse.tycho.classpath.JavaCompilerConfiguration
Throws:
org.apache.maven.plugin.MojoExecutionException

getTargetLevel

public String getTargetLevel()
                      throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getTargetLevel in interface org.eclipse.tycho.classpath.JavaCompilerConfiguration
Throws:
org.apache.maven.plugin.MojoExecutionException

getTargetLevel

public String getTargetLevel(org.eclipse.tycho.core.ee.shared.ExecutionEnvironment env)
                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getAdapter

public <T> T getAdapter(Class<T> adapter)
Specified by:
getAdapter in interface org.eclipse.tycho.runtime.Adaptable


Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.