public class JacorbTranslator extends AbstractTranslator implements CompilerTranslator
CompilerTranslator for the JacORB IDL compilerAbstractTranslator.ClassLoaderFacade| Constructor and Description |
|---|
JacorbTranslator()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
invokeCompiler(String sourceDirectory,
File[] includeDirs,
String targetDirectory,
String idlFile,
Source source)
This method it's used to invoke the compiler
|
static void |
redirectStream(InputStream in,
OutputStream out)
This methos it's used to redirect an
InputeStream to a OutputStream |
protected int |
runCompiler(Class<?> compilerClass,
String... arguments)
Runs the IDL compiler
|
getClassLoaderFacade, getLog, invokeCompilerInProcess, isDebug, isFailOnError, isFork, setDebug, setFailOnError, setLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDebug, setFailOnError, setLogprotected int runCompiler(Class<?> compilerClass, String... arguments) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
AbstractTranslatorrunCompiler in class AbstractTranslatorcompilerClass - the class which implements the compilerarguments - the arguments to pass to the compilerNoSuchMethodException - if the method which should run the compiler does not existIllegalAccessException - if no constructor is availableInvocationTargetException - if an error occurs while invoking the compilerpublic void invokeCompiler(String sourceDirectory, File[] includeDirs, String targetDirectory, 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(InputStream in, OutputStream out)
InputeStream to a OutputStreamin - the InputStream to read fromout - the OutputStream to write intoCopyright © 2005–2025 MojoHaus. All rights reserved.