Package org.codehaus.mojo.idlj
Class TestIDLJMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.idlj.AbstractIDLJMojo
org.codehaus.mojo.idlj.TestIDLJMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-test",
defaultPhase=GENERATE_TEST_SOURCES)
public class TestIDLJMojo
extends AbstractIDLJMojo
Process CORBA IDL test 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
FieldsModifier and TypeFieldDescriptionprivate File[]
Additional include directories containing additional *.idl files required for compilation.private File
The directory to output the generated sources to.private File
The source directory containing *.idl files.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCompileSourceRoot
(File directory) Adds the generated source path to the test source directories list so that maven can find the new sources to compile tests.protected File[]
protected File
protected File
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
-
Field Details
-
sourceDirectory
The source directory containing *.idl files. -
includeDirs
Additional include directories containing additional *.idl files required for compilation. -
outputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-test-sources/idl") private File outputDirectoryThe directory to output the generated sources to.
-
-
Constructor Details
-
TestIDLJMojo
public TestIDLJMojo()
-
-
Method Details
-
getSourceDirectory
- Specified by:
getSourceDirectory
in classAbstractIDLJMojo
- Returns:
- the directory that contains the source
-
getOutputDirectory
- Specified by:
getOutputDirectory
in classAbstractIDLJMojo
- Returns:
- the directory that will contain the generated code
-
getIncludeDirs
- Specified by:
getIncludeDirs
in classAbstractIDLJMojo
- Returns:
- a
List
of directory to use as include
-
addCompileSourceRoot
Adds the generated source path to the test source directories list so that maven can find the new sources to compile tests.- Specified by:
addCompileSourceRoot
in classAbstractIDLJMojo
- Parameters:
directory
- the directory from which compilation should occur
-