Package org.codehaus.mojo.idlj
Interface CompilerTranslator
- All Known Implementing Classes:
AbstractTranslator,BuiltInTranslator,GlassfishTranslator,IdljTranslator,JacorbTranslator
public interface CompilerTranslator
This is the interface to implement in order to add a new compiler backend to this plugin
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionvoidinvokeCompiler(String sourceDirectory, File[] includeDirs, String targetDirectory, String idlFile, Source source) This method it's used to invoke the compilervoidsetDebug(boolean debug) Enable/disable debug messages.voidsetFailOnError(boolean failOnError) Set to true to fail the build if an error occur while compiling the IDL.voidsetLog(org.apache.maven.plugin.logging.Log log) TheLogthat will used for the messages
-
Method Details
-
invokeCompiler
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- Parameters:
sourceDirectory- the path to the sourcesincludeDirs- theFile[]of directories where to find the includestargetDirectory- the path to the destination of the compilationidlFile- the path to the file to compilesource- the source set on which to run the compiler- Throws:
org.apache.maven.plugin.MojoExecutionException- the exeception is thrown whenever the compilation fails or crashes
-
setDebug
void setDebug(boolean debug) Enable/disable debug messages.- Parameters:
debug- the debug to set
-
setLog
void setLog(org.apache.maven.plugin.logging.Log log) TheLogthat will used for the messages- Parameters:
log- the log to set
-
setFailOnError
void setFailOnError(boolean failOnError) Set to true to fail the build if an error occur while compiling the IDL.- Parameters:
failOnError- the failOnError to set
-