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,org.eclipse.tycho.classpath.JavaCompilerConfiguration,org.eclipse.tycho.runtime.Adaptable
- Direct Known Subclasses:
OsgiCompilerMojo
public abstract class AbstractOsgiCompilerMojo extends AbstractCompilerMojo implements org.eclipse.tycho.classpath.JavaCompilerConfiguration, org.eclipse.tycho.runtime.Adaptable
-
-
Field Summary
Fields Modifier and Type Field Description static StringRULE_EXCLUDE_ALLExclude all but keep looking for other another matchstatic StringRULE_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 voidexecute()<T> TgetAdapter(Class<T> adapter)List<org.eclipse.tycho.classpath.ClasspathEntry>getClasspath()List<String>getClasspathElements()protected org.codehaus.plexus.compiler.CompilerConfigurationgetCompilerConfiguration(List<String> compileSourceRoots)protected List<String>getCompileSourceRoots()EclipsePluginProjectgetEclipsePluginProject()public for testing purposesStringgetExecutionEnvironment()protected FilegetOutputDirectory()protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(int staleMillis)protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(String inputFileEnding)StringgetSourceLevel()List<org.eclipse.tycho.classpath.SourcepathEntry>getSourcepath()StringgetTargetLevel()-
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:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.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:
getOutputDirectoryin classAbstractCompilerMojo
-
getClasspathElements
public List<String> getClasspathElements() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getClasspathElementsin classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCompileSourceRoots
protected final List<String> getCompileSourceRoots() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getCompileSourceRootsin classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourcepath
public List<org.eclipse.tycho.classpath.SourcepathEntry> getSourcepath() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getSourcepathin interfaceorg.eclipse.tycho.classpath.JavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(int staleMillis)
- Specified by:
getSourceInclusionScannerin classAbstractCompilerMojo
-
getSourceInclusionScanner
protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding)
- Specified by:
getSourceInclusionScannerin classAbstractCompilerMojo
-
getCompilerConfiguration
protected org.codehaus.plexus.compiler.CompilerConfiguration getCompilerConfiguration(List<String> compileSourceRoots) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Overrides:
getCompilerConfigurationin classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getClasspath
public List<org.eclipse.tycho.classpath.ClasspathEntry> getClasspath() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getClasspathin interfaceorg.eclipse.tycho.classpath.JavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getExecutionEnvironment
public String getExecutionEnvironment() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getExecutionEnvironmentin interfaceorg.eclipse.tycho.classpath.JavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourceLevel
public String getSourceLevel() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getSourceLevelin interfaceorg.eclipse.tycho.classpath.JavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getTargetLevel
public String getTargetLevel() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getTargetLevelin interfaceorg.eclipse.tycho.classpath.JavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.tycho.runtime.Adaptable
-
-