public class IdljTranslator extends AbstractTranslator implements CompilerTranslator
CompilerTranslator for the Sun idlj IDL compilerAbstractTranslator.ClassLoaderFacade| Constructor and Description |
|---|
IdljTranslator()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
fixSeparator(String filename)
Convert the provided filename from a Windows separator \\ to a unix/java separator /
|
static String |
getCanonicalPath(File file)
Return the unique path to the resource.
|
void |
invokeCompiler(String sourceDirectory,
File[] includeDirs,
String targetDirectory,
String idlFile,
Source source)
This method it's used to invoke the compiler
|
protected int |
runCompiler(Class<?> compilerClass,
String... arguments)
Runs the IDL compiler
|
static String |
toRelativeAndFixSeparator(File fromdir,
File todir,
boolean replaceSlashesWithDashes)
Taken from maven-eclipse-plugin
|
getClassLoaderFacade, getLog, invokeCompilerInProcess, isDebug, isFailOnError, isFork, setDebug, setFailOnError, setLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDebug, setFailOnError, setLogpublic 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 - the source tag available in the configuration tree of the maven pluginorg.apache.maven.plugin.MojoExecutionException - the exception is thrown whenever the compilation fails or crashesprotected 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 static String fixSeparator(String filename)
filename - file name to fix separatorpublic static String getCanonicalPath(File file) throws org.apache.maven.plugin.MojoExecutionException
file - a resource to locateorg.apache.maven.plugin.MojoExecutionException - if the infrastructure detects a problempublic static String toRelativeAndFixSeparator(File fromdir, File todir, boolean replaceSlashesWithDashes) throws org.apache.maven.plugin.MojoExecutionException
fromdir - not suretodir - what these arereplaceSlashesWithDashes - true if we need to replace slashes with dashes to accomodate the OSorg.apache.maven.plugin.MojoExecutionException - thrown if an error is detected by the mojo infrastructureCopyright © 2005–2024 MojoHaus. All rights reserved.