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, setLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDebug, setFailOnError, setLog
protected int runCompiler(Class<?> compilerClass, String... arguments) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
AbstractTranslator
runCompiler
in class AbstractTranslator
compilerClass
- 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 CompilerTranslator
sourceDirectory
- 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 OutputStream
in
- the InputStream
to read fromout
- the OutputStream
to write intoCopyright © 2005–2015 Codehaus. All rights reserved.