public class JacorbTranslator extends AbstractTranslator implements CompilerTranslator
CompilerTranslator for the JacORB IDL compilerAbstractTranslator.ClassLoaderFacade, AbstractTranslator.ClassLoaderFacadeImpl| Constructor and Description |
|---|
JacorbTranslator()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
private void |
invokeCompiler(java.lang.Class<?> compilerClass,
java.util.List<java.lang.String> args)
Invoke the specified compiler with a set of arguments
|
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
|
static void |
redirectStream(java.io.InputStream in,
java.io.OutputStream out)
This methos it's used to redirect an
InputeStream to a OutputStream |
protected int |
runCompiler(java.lang.Class<?> compilerClass,
java.lang.String... arguments)
Runs the IDL compiler
|
getClassLoaderFacade, getLog, invokeCompilerInProcess, isDebug, isFailOnError, isFork, setClassLoaderFacade, setDebug, setFailOnError, setLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDebug, setFailOnError, setLogprivate void invokeCompiler(java.lang.Class<?> compilerClass,
java.util.List<java.lang.String> args)
throws org.apache.maven.plugin.MojoExecutionException
compilerClass - the Class that implements the compilerargs - a List that contains the arguments to use for the compilerorg.apache.maven.plugin.MojoExecutionException - if the compilation fail or the compiler crashesprotected int runCompiler(java.lang.Class<?> compilerClass,
java.lang.String... arguments)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
AbstractTranslatorrunCompiler in class AbstractTranslatorcompilerClass - the class which implements the compilerarguments - the arguments to pass to the compilerjava.lang.NoSuchMethodException - if the method which should run the compiler does not existjava.lang.IllegalAccessException - if no constructor is availablejava.lang.reflect.InvocationTargetException - if an error occurs while invoking the compilerpublic 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
invokeCompiler in interface CompilerTranslatorsourceDirectory - the path to the sourcesincludeDirs - the File[] of directories where to find the includestargetDirectory - the path to the destination of the compilationidlFile - the path to the file to compilesource - //TODO ???org.apache.maven.plugin.MojoExecutionException - the exeception is thrown whenever the compilation fails or crashespublic static void redirectStream(java.io.InputStream in,
java.io.OutputStream out)
InputeStream to a OutputStreamin - the InputStream to read fromout - the OutputStream to write into