Package org.eclipse.tycho.compiler
Class AbstractOsgiCompilerMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- copied.org.apache.maven.plugin.AbstractCompilerMojo
-
- org.eclipse.tycho.compiler.AbstractOsgiCompilerMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,JavaCompilerConfiguration
,Adaptable
- Direct Known Subclasses:
OsgiCompilerMojo
public abstract class AbstractOsgiCompilerMojo extends AbstractCompilerMojo implements JavaCompilerConfiguration, Adaptable
-
-
Field Summary
Fields Modifier and Type Field Description static String
RULE_EXCLUDE_ALL
Exclude all but keep looking for other another matchstatic String
RULE_SEPARATOR
-
Fields inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
DEFAULT_SOURCE_VERSION, DEFAULT_TARGET_VERSION, release, source, target
-
-
Constructor Summary
Constructors Constructor Description AbstractOsgiCompilerMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
<T> T
getAdapter(Class<T> adapter)
List<ClasspathEntry>
getClasspath()
Computes and returns compile classpath of a Tycho eclipse-plugin or eclipse-test-plugin project.List<String>
getClasspathElements()
protected org.codehaus.plexus.compiler.CompilerConfiguration
getCompilerConfiguration(List<String> compileSourceRoots)
protected List<String>
getCompileSourceRoots()
EclipsePluginProject
getEclipsePluginProject()
public for testing purposesString
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<SourcepathEntry>
getSourcepath()
Computes and returns sourcepath of a Tycho eclipse-plugin or eclipse-test-plugin project.String
getTargetLevel()
String
getTargetLevel(ExecutionEnvironment ee)
-
Methods inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
removeEmptyCompileSourceRoots
-
-
-
-
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
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractCompilerMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
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 classAbstractCompilerMojo
-
getClasspathElements
public List<String> getClasspathElements() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getClasspathElements
in classAbstractCompilerMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCompileSourceRoots
protected final List<String> getCompileSourceRoots() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getCompileSourceRoots
in classAbstractCompilerMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourcepath
public List<SourcepathEntry> getSourcepath() throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:JavaCompilerConfiguration
Computes and returns sourcepath of a Tycho eclipse-plugin or eclipse-test-plugin project.- Specified by:
getSourcepath
in interfaceJavaCompilerConfiguration
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
- Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
- Specified by:
getSourceInclusionScanner
in classAbstractCompilerMojo
-
getCompilerConfiguration
protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Overrides:
getCompilerConfiguration
in classAbstractCompilerMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getClasspath
public List<ClasspathEntry> getClasspath() throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:JavaCompilerConfiguration
Computes and returns compile classpath of a Tycho eclipse-plugin or eclipse-test-plugin project.- Specified by:
getClasspath
in interfaceJavaCompilerConfiguration
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getExecutionEnvironment
public String getExecutionEnvironment() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getExecutionEnvironment
in interfaceJavaCompilerConfiguration
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourceLevel
public String getSourceLevel() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getSourceLevel
in interfaceJavaCompilerConfiguration
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getTargetLevel
public String getTargetLevel() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getTargetLevel
in interfaceJavaCompilerConfiguration
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getTargetLevel
public String getTargetLevel(ExecutionEnvironment ee) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceAdaptable
-
-