public class IdljTranslator extends AbstractTranslator implements CompilerTranslator
CompilerTranslator for the Sun idlj IDL compiler| 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) |
void |
invokeCompiler(String sourceDirectory,
File[] includeDirs,
String targetDirectory,
String idlFile,
Source source)
This method it's used to invoke the compiler
|
static String |
toRelativeAndFixSeparator(File fromdir,
File todir,
boolean replaceSlashesWithDashes)
Taken from maven-eclipse-plugin
|
getLog, isDebug, isFailOnError, 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 crashesCompilerTranslator#invokeCompiler(String, List, String, String, Source)public static String fixSeparator(String filename)
filename - file name to fix separatorpublic static String getCanonicalPath(File file) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic static String toRelativeAndFixSeparator(File fromdir, File todir, boolean replaceSlashesWithDashes) throws org.apache.maven.plugin.MojoExecutionException
fromdir - todir - replaceSlashesWithDashes - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2005-2012 Codehaus. All Rights Reserved.