Interface CompilerTranslator

All Known Implementing Classes:
AbstractTranslator, BuiltInTranslator, GlassfishTranslator, IdljTranslator, JacorbTranslator

public interface CompilerTranslator
This is the interface to implement in order to add a new compiler backend to this plugin
Version:
$Id$
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invokeCompiler(String sourceDirectory, File[] includeDirs, String targetDirectory, String idlFile, Source source)
    This method it's used to invoke the compiler
    void
    setDebug(boolean debug)
    Enable/disable debug messages.
    void
    setFailOnError(boolean failOnError)
    Set to true to fail the build if an error occur while compiling the IDL.
    void
    setLog(org.apache.maven.plugin.logging.Log log)
    The Log that will used for the messages
  • Method Details

    • invokeCompiler

      void invokeCompiler(String sourceDirectory, File[] includeDirs, String targetDirectory, String idlFile, Source source) throws org.apache.maven.plugin.MojoExecutionException
      This method it's used to invoke the compiler
      Parameters:
      sourceDirectory - the path to the sources
      includeDirs - the File[] of directories where to find the includes
      targetDirectory - the path to the destination of the compilation
      idlFile - the path to the file to compile
      source - the source set on which to run the compiler
      Throws:
      org.apache.maven.plugin.MojoExecutionException - the exeception is thrown whenever the compilation fails or crashes
    • setDebug

      void setDebug(boolean debug)
      Enable/disable debug messages.
      Parameters:
      debug - the debug to set
    • setLog

      void setLog(org.apache.maven.plugin.logging.Log log)
      The Log that will used for the messages
      Parameters:
      log - the log to set
    • setFailOnError

      void setFailOnError(boolean failOnError)
      Set to true to fail the build if an error occur while compiling the IDL.
      Parameters:
      failOnError - the failOnError to set