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
ConstructorsModifierConstructorDescriptionprotectedCreates the abstract class using a production implementation of the dependencies. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddCompileSourceRoot(File directory) Add generated sources in compile source rootvoidexecute()Execute the goal of the MOJO that is: compiling the IDL filesprotected abstract File[]protected abstract Fileprotected org.apache.maven.project.MavenProjectprotected org.apache.maven.project.MavenProjectHelperprotected abstract FileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractIDLJMojo
protected AbstractIDLJMojo()Creates the abstract class using a production implementation of the dependencies.
-
-
Method Details
-
getSourceDirectory
- Returns:
- the source directory that contains the IDL files
-
getIncludeDirs
- Returns:
- the
File[]of the directories to use as include directories for the compilation
-
getOutputDirectory
- Returns:
- the path of the directory that will contains the results of the compilation
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionExecute 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
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
MavenProjectinstance
-
getProjectHelper
protected org.apache.maven.project.MavenProjectHelper getProjectHelper()- Returns:
- the current
MavenProjectHelperinstance
-