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
- Direct Known Subclasses:
OsgiCompilerMojo,OsgiTestCompilerMojo
public abstract class AbstractOsgiCompilerMojo
extends AbstractCompilerMojo
implements JavaCompilerConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.project.MavenProjectstatic final StringExclude all but keep looking for other another matchstatic final StringFields inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
compilerId, DEFAULT_SOURCE_VERSION, DEFAULT_TARGET_VERSION, JDT_COMPILER_ID, release, source, targetFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddCompilerCustomArgument(org.codehaus.plexus.compiler.CompilerConfiguration compilerConfiguration, String key, String value) protected voiddoFinish()Subclasses might override this method to perform final tasks and as a last opportunity to fail the compilefinal voidexecute()getBREE()Only public for tests purpose!protected BundleProjectList<org.eclipse.tycho.ClasspathEntry>Computes and returns compile classpath of a Tycho eclipse-plugin or eclipse-test-plugin project.protected org.codehaus.plexus.compiler.CompilerConfigurationgetCompilerConfiguration(List<String> compileSourceRoots, List<String> compileSourceExcludes) protected abstract Stringpublic for testing purposesprotected Fileprotected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(int staleMillis) protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(String inputFileEnding) Methods inherited from class copied.org.apache.maven.plugin.AbstractCompilerMojo
removeEmptyCompileSourceRootsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.tycho.compiler.JavaCompilerConfiguration
getSourcepath
-
Field Details
-
RULE_SEPARATOR
-
RULE_EXCLUDE_ALL
Exclude all but keep looking for other another match- See Also:
-
project
@Parameter(property="project", readonly=true) protected org.apache.maven.project.MavenProject project
-
-
Constructor Details
-
AbstractOsgiCompilerMojo
public AbstractOsgiCompilerMojo()
-
-
Method Details
-
execute
public final 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
-
doFinish
protected void doFinish() throws org.apache.maven.plugin.MojoExecutionExceptionSubclasses might override this method to perform final tasks and as a last opportunity to fail the compile- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBREE
Only public for tests purpose! -
getEclipsePluginProject
public EclipsePluginProject getEclipsePluginProject() throws org.apache.maven.plugin.MojoExecutionExceptionpublic for testing purposes- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractCompilerMojo
-
getClasspathElements
- Specified by:
getClasspathElementsin classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getBundleProject
- 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
-
getCompileSourceExcludePaths
protected final List<String> getCompileSourceExcludePaths() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
getCompileSourceExcludePathsin classAbstractCompilerMojo- 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, List<String> compileSourceExcludes) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Overrides:
getCompilerConfigurationin classAbstractCompilerMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
addCompilerCustomArgument
-
getClasspath
public List<org.eclipse.tycho.ClasspathEntry> getClasspath() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from interface:JavaCompilerConfigurationComputes and returns compile classpath of a Tycho eclipse-plugin or eclipse-test-plugin project.- Specified by:
getClasspathin interfaceJavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDependencyScope
-
getExecutionEnvironment
- Specified by:
getExecutionEnvironmentin interfaceJavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getSourceLevel
- Specified by:
getSourceLevelin interfaceJavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getTargetLevel
- Specified by:
getTargetLevelin interfaceJavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getReleaseLevel
- Specified by:
getReleaseLevelin interfaceJavaCompilerConfiguration- Throws:
org.apache.maven.plugin.MojoExecutionException
-