org.codehaus.mojo.idlj
Class JacorbTranslator

java.lang.Object
  extended by org.codehaus.mojo.idlj.AbstractTranslator
      extended by org.codehaus.mojo.idlj.JacorbTranslator
All Implemented Interfaces:
CompilerTranslator

public class JacorbTranslator
extends AbstractTranslator
implements CompilerTranslator

This class implement the CompilerTranslator for the JacORB IDL compiler

Version:
$Id: JacorbTranslator.java 9344 2009-04-03 22:25:02Z aheritier $
Author:
Anders Hessellund Jensen

Constructor Summary
JacorbTranslator()
          Default constructor
 
Method Summary
 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, String streamName)
          This methos it's used to redirect an InputeStream to a OutputStream
 
Methods inherited from class org.codehaus.mojo.idlj.AbstractTranslator
getLog, isDebug, isFailOnError, 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
 

Constructor Detail

JacorbTranslator

public JacorbTranslator()
Default constructor

Method Detail

invokeCompiler

public void invokeCompiler(String sourceDirectory,
                           File[] includeDirs,
                           String targetDirectory,
                           String idlFile,
                           Source source)
                    throws org.apache.maven.plugin.MojoExecutionException
This method it's used to invoke the compiler

Specified by:
invokeCompiler in interface CompilerTranslator
Parameters:
sourceDirectory - the path to the sources
includeDirs - the File[] of directories where to find the includes
targetDirectory - the path to the destination of the compilation
idlFile - the path to the file to compile
source - //TODO ???
Throws:
org.apache.maven.plugin.MojoExecutionException - the exeception is thrown whenever the compilation fails or crashes
See Also:
CompilerTranslator#invokeCompiler(String, List, String, String, Source)

redirectStream

public static void redirectStream(InputStream in,
                                  OutputStream out,
                                  String streamName)
This methos it's used to redirect an InputeStream to a OutputStream

Parameters:
in - the InputStream to read from
out - the OutputStream to write into
streamName - the name of Stream


Copyright © 2005-2012 Codehaus. All Rights Reserved.