org.codehaus.mojo.idlj
Class IDLJMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.idlj.AbstractIDLJMojo
          extended by org.codehaus.mojo.idlj.IDLJMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class IDLJMojo
extends AbstractIDLJMojo

Process CORBA IDL files in IDLJ.

Version:
$Id: IDLJMojo.java 9344 2009-04-03 22:25:02Z aheritier $
Author:
Alan D. Cabrera
Is defined by the goal name:
generate
Is bound to the specified phase of the standard build lifecycle:
generate-sources

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
IDLJMojo()
           
 
Method Summary
protected  void addCompileSourceRoot()
          Adds the generated source path to the source directories list so that maven can find the new sources to compile.
protected  File[] getIncludeDirs()
           
protected  File getOutputDirectory()
           
protected  File getSourceDirectory()
           
protected  void setSourceDirectory(File dir)
          Set the source directory.
 
Methods inherited from class org.codehaus.mojo.idlj.AbstractIDLJMojo
execute, getProject, getProjectHelper
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDLJMojo

public IDLJMojo()
Method Detail

getSourceDirectory

protected File getSourceDirectory()
                           throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getSourceDirectory in class AbstractIDLJMojo
Returns:
the source directory that contains the IDL files
Throws:
org.apache.maven.plugin.MojoExecutionException

getIncludeDirs

protected File[] getIncludeDirs()
Specified by:
getIncludeDirs in class AbstractIDLJMojo
Returns:
the List of the directories to use as include directories for the compilation

getOutputDirectory

protected File getOutputDirectory()
                           throws org.apache.maven.plugin.MojoExecutionException
Specified by:
getOutputDirectory in class AbstractIDLJMojo
Returns:
the path of the directory that will contains the results of the compilation
Throws:
org.apache.maven.plugin.MojoExecutionException

setSourceDirectory

protected void setSourceDirectory(File dir)
Set the source directory.

Parameters:
dir - the path of directory that conatins the IDL files

addCompileSourceRoot

protected void addCompileSourceRoot()
                             throws org.apache.maven.plugin.MojoExecutionException
Adds the generated source path to the source directories list so that maven can find the new sources to compile.

Specified by:
addCompileSourceRoot in class AbstractIDLJMojo
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2005-2011 Codehaus. All Rights Reserved.