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 AbstractIDLJMojoProcess 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
Fields Modifier and Type Field Description private java.io.File[]includeDirsAdditional include directories containing additional *.idl files required for compilation.private java.io.FileoutputDirectoryThe directory to output the generated sources to.private java.io.FilesourceDirectoryThe source directory containing *.idl files.
-
Constructor Summary
Constructors Constructor Description TestIDLJMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCompileSourceRoot(java.io.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 java.io.File[]getIncludeDirs()protected java.io.FilegetOutputDirectory()protected java.io.FilegetSourceDirectory()-
Methods inherited from class org.codehaus.mojo.idlj.AbstractIDLJMojo
execute, getProject, getProjectHelper
-
-
-
-
Field Detail
-
sourceDirectory
@Parameter(defaultValue="${basedir}/src/test/idl") private java.io.File sourceDirectoryThe 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-test-sources/idl") private java.io.File outputDirectoryThe directory to output the generated sources to.
-
-
Method Detail
-
getSourceDirectory
protected java.io.File getSourceDirectory()
- Specified by:
getSourceDirectoryin classAbstractIDLJMojo- Returns:
- the directory that contains the source
-
getOutputDirectory
protected java.io.File getOutputDirectory()
- Specified by:
getOutputDirectoryin classAbstractIDLJMojo- Returns:
- the directory that will contain the generated code
-
getIncludeDirs
protected java.io.File[] getIncludeDirs()
- Specified by:
getIncludeDirsin classAbstractIDLJMojo- Returns:
- a
Listof directory to use as include
-
addCompileSourceRoot
protected void addCompileSourceRoot(java.io.File directory)
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
-
-