Package org.codehaus.mojo.idlj
Class BuiltInTranslator
- java.lang.Object
-
- org.codehaus.mojo.idlj.AbstractTranslator
-
- org.codehaus.mojo.idlj.IdljTranslator
-
- org.codehaus.mojo.idlj.BuiltInTranslator
-
- All Implemented Interfaces:
CompilerTranslator
class BuiltInTranslator extends IdljTranslator
This class implement theCompilerTranslatorfor the Sun idlj IDL compiler- Version:
- $Id$
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.mojo.idlj.AbstractTranslator
AbstractTranslator.ClassLoaderFacade
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringAIX_IDLJ_COMPILER_NAMEprivate static java.lang.StringIDL_COMPILER_NOT_AVAILABLEprivate static java.lang.StringORACLE_IDLJ_COMPILER_NAMEprivate static java.lang.StringUSE_GLASSFISH_IDL
-
Constructor Summary
Constructors Constructor Description BuiltInTranslator()Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidaddToolsJarToPath()private static booleanbuiltInCompilerHidden(java.lang.Exception e)private static booleancompilerNotFound(java.lang.Exception e)private static java.lang.Class<?>getCompilerClass()private static java.lang.StringgetIDLCompilerClassName()private static java.lang.StringgetSecondTryMessage(java.lang.Exception e)(package private) voidinvokeCompiler(java.util.List<java.lang.String> args)private static booleanisAix()private static booleanisJigsawPresent()-
Methods inherited from class org.codehaus.mojo.idlj.IdljTranslator
invokeCompiler, invokeCompiler, runCompiler
-
Methods inherited from class org.codehaus.mojo.idlj.AbstractTranslator
getClassLoaderFacade, getLog, invokeCompilerInProcess, isDebug, isFailOnError, isFork, setClassLoaderFacade, setDebug, setFailOnError, setLog
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.mojo.idlj.CompilerTranslator
setDebug, setFailOnError, setLog
-
-
-
-
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
-
-
Method Detail
-
invokeCompiler
void invokeCompiler(java.util.List<java.lang.String> args) throws org.apache.maven.plugin.MojoExecutionException- Specified by:
invokeCompilerin classIdljTranslator- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getCompilerClass
private static java.lang.Class<?> getCompilerClass() throws org.apache.maven.plugin.MojoExecutionException- Returns:
- the
Classthat 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.MalformedURLExceptionjava.lang.ClassNotFoundException
-
getIDLCompilerClassName
private static java.lang.String getIDLCompilerClassName()
- Returns:
- the name of the class that implements the compiler
-
isAix
private static boolean isAix()
-
-