|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.idlj.AbstractTranslator
org.codehaus.mojo.idlj.IdljTranslator
public class IdljTranslator
This class implement the CompilerTranslator
for the Sun idlj IDL compiler
Constructor Summary | |
---|---|
IdljTranslator()
Default constructor |
Method Summary | |
---|---|
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 |
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 |
---|
public IdljTranslator()
Method Detail |
---|
public void invokeCompiler(String sourceDirectory, File[] includeDirs, String targetDirectory, String idlFile, Source source) throws org.apache.maven.plugin.MojoExecutionException
invokeCompiler
in interface CompilerTranslator
sourceDirectory
- 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 plugin
org.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 separator
public static String getCanonicalPath(File file) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static String toRelativeAndFixSeparator(File fromdir, File todir, boolean replaceSlashesWithDashes) throws org.apache.maven.plugin.MojoExecutionException
fromdir
- todir
- replaceSlashesWithDashes
-
org.apache.maven.plugin.MojoExecutionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |