Package org.codehaus.mojo.idlj
Class IDLJMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.idlj.AbstractIDLJMojo
-
- org.codehaus.mojo.idlj.IDLJMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES) public class IDLJMojo extends AbstractIDLJMojo
Process CORBA IDL files in IDLJ.- Version:
- $Id$
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.mojo.idlj.AbstractIDLJMojo
AbstractIDLJMojo.DependenciesFacade, AbstractIDLJMojo.DependenciesFacadeImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File[]
includeDirs
Additional include directories containing additional *.idl files required for compilation.private java.io.File
outputDirectory
The directory to output the generated sources to.private java.io.File
sourceDirectory
The source directory containing *.idl files.
-
Constructor Summary
Constructors Constructor Description IDLJMojo()
Constructs a standard IDL translation Mojo.IDLJMojo(AbstractIDLJMojo.DependenciesFacade dependenciesFacade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCompileSourceRoot(java.io.File directory)
Add generated sources in compile source rootprotected java.io.File[]
getIncludeDirs()
protected java.io.File
getOutputDirectory()
protected java.io.File
getSourceDirectory()
protected void
setSourceDirectory(java.io.File dir)
Set the source directory.-
Methods inherited from class org.codehaus.mojo.idlj.AbstractIDLJMojo
execute, getProject, getProjectHelper
-
-
-
-
Field Detail
-
sourceDirectory
@Parameter(defaultValue="${basedir}/src/main/idl") private java.io.File sourceDirectory
The source directory containing *.idl files.
-
includeDirs
@Parameter private java.io.File[] includeDirs
Additional include directories containing additional *.idl files required for compilation.
-
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/idl") private java.io.File outputDirectory
The directory to output the generated sources to.
-
-
Constructor Detail
-
IDLJMojo
public IDLJMojo()
Constructs a standard IDL translation Mojo.
-
IDLJMojo
IDLJMojo(AbstractIDLJMojo.DependenciesFacade dependenciesFacade)
-
-
Method Detail
-
getSourceDirectory
protected java.io.File getSourceDirectory()
- Specified by:
getSourceDirectory
in classAbstractIDLJMojo
- Returns:
- the source directory that contains the IDL files
-
getIncludeDirs
protected java.io.File[] getIncludeDirs()
- Specified by:
getIncludeDirs
in classAbstractIDLJMojo
- Returns:
- the
List
of the directories to use as include directories for the compilation
-
getOutputDirectory
protected java.io.File getOutputDirectory()
- Specified by:
getOutputDirectory
in classAbstractIDLJMojo
- Returns:
- the path of the directory that will contains the results of the compilation
-
setSourceDirectory
protected void setSourceDirectory(java.io.File dir)
Set the source directory.- Parameters:
dir
- the path of directory that contains the IDL files
-
addCompileSourceRoot
protected void addCompileSourceRoot(java.io.File directory)
Add generated sources in compile source root- Specified by:
addCompileSourceRoot
in classAbstractIDLJMojo
- Parameters:
directory
- a directory containing generated java files to be compiled.
-
-