Interface CompilerTranslator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void invokeCompiler​(java.lang.String sourceDirectory, java.io.File[] includeDirs, java.lang.String targetDirectory, java.lang.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 Detail

      • invokeCompiler

        void invokeCompiler​(java.lang.String sourceDirectory,
                            java.io.File[] includeDirs,
                            java.lang.String targetDirectory,
                            java.lang.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