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$
  • Field Details

    • sourceDirectory

      @Parameter(defaultValue="${basedir}/src/test/idl") private File sourceDirectory
      The source directory containing *.idl files.
    • includeDirs

      @Parameter private File[] includeDirs
      Additional include directories containing additional *.idl files required for compilation.
    • outputDirectory

      @Parameter(defaultValue="${project.build.directory}/generated-test-sources/idl") private File outputDirectory
      The directory to output the generated sources to.
  • Constructor Details

    • TestIDLJMojo

      public TestIDLJMojo()
  • Method Details

    • getSourceDirectory

      protected File getSourceDirectory()
      Specified by:
      getSourceDirectory in class AbstractIDLJMojo
      Returns:
      the directory that contains the source
    • getOutputDirectory

      protected File getOutputDirectory()
      Specified by:
      getOutputDirectory in class AbstractIDLJMojo
      Returns:
      the directory that will contain the generated code
    • getIncludeDirs

      protected File[] getIncludeDirs()
      Specified by:
      getIncludeDirs in class AbstractIDLJMojo
      Returns:
      a List of directory to use as include
    • addCompileSourceRoot

      protected 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.
      Specified by:
      addCompileSourceRoot in class AbstractIDLJMojo
      Parameters:
      directory - the directory from which compilation should occur