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 Details

    • 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:
    • 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:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractCompilerMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • doFinish

      protected void doFinish() throws org.apache.maven.plugin.MojoExecutionException
      Subclasses might override this method to perform final tasks and as a last opportunity to fail the compile
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getBREE

      public StandardExecutionEnvironment[] getBREE()
      Only public for tests purpose!
    • 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
    • getBundleProject

      protected BundleProject getBundleProject() throws org.apache.maven.plugin.MojoExecutionException
      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
    • getCompileSourceExcludePaths

      protected final List<String> getCompileSourceExcludePaths() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getCompileSourceExcludePaths in class AbstractCompilerMojo
      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, List<String> compileSourceExcludes) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Overrides:
      getCompilerConfiguration in class AbstractCompilerMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getClasspath

      public List<org.eclipse.tycho.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 interface JavaCompilerConfiguration
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getDependencyScope

      protected abstract String getDependencyScope()
    • getExecutionEnvironment

      public String getExecutionEnvironment() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getExecutionEnvironment in interface JavaCompilerConfiguration
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getSourceLevel

      public String getSourceLevel() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getSourceLevel in interface JavaCompilerConfiguration
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getTargetLevel

      public String getTargetLevel() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getTargetLevel in interface JavaCompilerConfiguration
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getReleaseLevel

      public String getReleaseLevel() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      getReleaseLevel in interface JavaCompilerConfiguration
      Throws:
      org.apache.maven.plugin.MojoExecutionException