Class BuiltInTranslator

All Implemented Interfaces:
CompilerTranslator

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

  • Constructor Details

    • BuiltInTranslator

      BuiltInTranslator()
      Default constructor
  • Method Details

    • invokeCompiler

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

      private static 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 String getSecondTryMessage(Exception e)
    • builtInCompilerHidden

      private static boolean builtInCompilerHidden(Exception e)
    • compilerNotFound

      private static boolean compilerNotFound(Exception e)
    • isJigsawPresent

      private static boolean isJigsawPresent()
    • addToolsJarToPath

      private static void addToolsJarToPath() throws MalformedURLException, ClassNotFoundException
      Throws:
      MalformedURLException
      ClassNotFoundException
    • getIDLCompilerClassName

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

      private static boolean isAix()