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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 compilervoid
setDebug(boolean debug)
Enable/disable debug messages.void
setFailOnError(boolean failOnError)
Set to true to fail the build if an error occur while compiling the IDL.void
setLog(org.apache.maven.plugin.logging.Log log)
TheLog
that will used for the messages
-
-
-
Method Detail
-
invokeCompiler
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
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)
TheLog
that 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
-
-