Class BuiltInTranslator

  • All Implemented Interfaces:
    CompilerTranslator

    class BuiltInTranslator
    extends IdljTranslator
    This class implement the CompilerTranslator for the Sun idlj IDL compiler
    Version:
    $Id$
    • Field Detail

      • AIX_IDLJ_COMPILER_NAME

        private static final java.lang.String AIX_IDLJ_COMPILER_NAME
        See Also:
        Constant Field Values
      • ORACLE_IDLJ_COMPILER_NAME

        private static final java.lang.String ORACLE_IDLJ_COMPILER_NAME
        See Also:
        Constant Field Values
      • USE_GLASSFISH_IDL

        private static final java.lang.String USE_GLASSFISH_IDL
        See Also:
        Constant Field Values
      • IDL_COMPILER_NOT_AVAILABLE

        private static final java.lang.String IDL_COMPILER_NOT_AVAILABLE
        See Also:
        Constant Field Values
    • Constructor Detail

      • BuiltInTranslator

        BuiltInTranslator()
        Default constructor
    • Method Detail

      • invokeCompiler

        void invokeCompiler​(java.util.List<java.lang.String> args)
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        invokeCompiler in class IdljTranslator
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getCompilerClass

        private static java.lang.Class<?> getCompilerClass()
                                                    throws org.apache.maven.plugin.MojoExecutionException
        Returns:
        the Class that implements the idlj compiler
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if the search for the class fails
      • getSecondTryMessage

        private static java.lang.String getSecondTryMessage​(java.lang.Exception e)
      • builtInCompilerHidden

        private static boolean builtInCompilerHidden​(java.lang.Exception e)
      • compilerNotFound

        private static boolean compilerNotFound​(java.lang.Exception e)
      • isJigsawPresent

        private static boolean isJigsawPresent()
      • addToolsJarToPath

        private static void addToolsJarToPath()
                                       throws java.net.MalformedURLException,
                                              java.lang.ClassNotFoundException
        Throws:
        java.net.MalformedURLException
        java.lang.ClassNotFoundException
      • getIDLCompilerClassName

        private static java.lang.String getIDLCompilerClassName()
        Returns:
        the name of the class that implements the compiler
      • isAix

        private static boolean isAix()