Class AbstractIDLJMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.idlj.AbstractIDLJMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
IDLJMojo, TestIDLJMojo

public abstract class AbstractIDLJMojo extends org.apache.maven.plugin.AbstractMojo
This is abstract class used to decrease the code needed to the creation of the compiler MOJO.
Version:
$Id$
Author:
Anders Hessellund Jensen invalid input: '<'ahj@trifork.com>
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates the abstract class using a production implementation of the dependencies.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Add generated sources in compile source root
    void
    Execute the goal of the MOJO that is: compiling the IDL files
    protected abstract File[]
     
    protected abstract File
     
    protected org.apache.maven.project.MavenProject
     
    protected org.apache.maven.project.MavenProjectHelper
     
    protected abstract File
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractIDLJMojo

      protected AbstractIDLJMojo()
      Creates the abstract class using a production implementation of the dependencies.
  • Method Details

    • getSourceDirectory

      protected abstract File getSourceDirectory()
      Returns:
      the source directory that contains the IDL files
    • getIncludeDirs

      protected abstract File[] getIncludeDirs()
      Returns:
      the File[] of the directories to use as include directories for the compilation
    • getOutputDirectory

      protected abstract File getOutputDirectory()
      Returns:
      the path of the directory that will contains the results of the compilation
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Execute the goal of the MOJO that is: compiling the IDL files
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the compilation fails or the compiler crashes
    • addCompileSourceRoot

      protected abstract void addCompileSourceRoot(File directory)
      Add generated sources in compile source root
      Parameters:
      directory - a directory containing generated java files to be compiled.
    • getProject

      protected org.apache.maven.project.MavenProject getProject()
      Returns:
      the current MavenProject instance
    • getProjectHelper

      protected org.apache.maven.project.MavenProjectHelper getProjectHelper()
      Returns:
      the current MavenProjectHelper instance