com.arjuna.orbportability.common.ant
Class IDLCompiler
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.arjuna.orbportability.common.ant.IDLCompiler
- All Implemented Interfaces:
- java.lang.Cloneable
- public class IDLCompiler
- extends org.apache.tools.ant.Task
Ant task to compile IDL across multiple ORB's.
This task uses a definitions file (idl-compiler-definitions.xml) which defines how to call each of the supported IDL compilers.
For each compiler you specify a number of parameters and whether they are required for this IDL compiler. You then
call this ant task and pass it a comma separated list of parameters which it then maps to the IDL compiler specific parameters.
- Author:
- Richard A. Begg
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_parameters
protected java.lang.String _parameters
_orb
protected java.lang.String _orb
_idlCompilerDefinitions
protected java.util.Hashtable _idlCompilerDefinitions
_filename
protected java.lang.String _filename
_destinationDirectory
protected java.lang.String _destinationDirectory
_packageName
protected java.lang.String _packageName
_buildList
protected java.lang.String _buildList
_debugOn
protected boolean _debugOn
_verbose
protected boolean _verbose
_fileSet
protected org.apache.tools.ant.types.FileSet _fileSet
IDLCompiler
public IDLCompiler()
setDebug
public final void setDebug(java.lang.String debug)
setVerbose
public final void setVerbose(java.lang.String verbose)
setDestdir
public final void setDestdir(java.lang.String destDir)
setBuildlist
public void setBuildlist(java.lang.String buildList)
setPackage
public final void setPackage(java.lang.String packageName)
setParameters
public final void setParameters(java.lang.String parameters)
setFilename
public final void setFilename(java.lang.String filename)
setOrb
public final void setOrb(java.lang.String orb)
childrenContainsSubParam
protected boolean childrenContainsSubParam(org.w3c.dom.Node n)
parseIDLCompilerDefinitionsFile
protected void parseIDLCompilerDefinitionsFile()
throws org.apache.tools.ant.BuildException
- Parse the IDL compiler definitions file.
- Throws:
org.apache.tools.ant.BuildException
stripDirectory
protected java.lang.String stripDirectory(java.lang.String filename)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
processIDL
public boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler,
java.lang.String filename,
java.lang.String packageName,
java.lang.String destDir)
processIDL
public boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler,
java.lang.String filename,
java.lang.String packageName,
java.lang.String destDir,
java.lang.String mappings)