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 FileThe directory to output the generated sources to.private FileThe source directory containing *.idl files.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCompileSourceRoot(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 Fileprotected FileMethods inherited from class org.codehaus.mojo.idlj.AbstractIDLJMojo
execute, getProject, getProjectHelperMethods 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:
getSourceDirectoryin classAbstractIDLJMojo- Returns:
- the directory that contains the source
-
getOutputDirectory
- Specified by:
getOutputDirectoryin classAbstractIDLJMojo- Returns:
- the directory that will contain the generated code
-
getIncludeDirs
- Specified by:
getIncludeDirsin classAbstractIDLJMojo- Returns:
- a
Listof 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:
addCompileSourceRootin classAbstractIDLJMojo- Parameters:
directory- the directory from which compilation should occur
-