Class IDLCompiler
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.arjuna.orbportability.common.ant.IDLCompiler
- All Implemented Interfaces:
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
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected String
protected String
protected org.apache.tools.ant.types.FileSet
protected Hashtable
protected String
protected String
protected String
protected boolean
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
execute()
Called by the project to let the task do its work.protected void
Parse the IDL compiler definitions file.boolean
processIDL
(IDLCompiler.IDLCompilerDetails idlCompiler, String filename, String packageName, String destDir, String mappings) void
setBuildlist
(String buildList) final void
final void
setDestdir
(String destDir) final void
setFilename
(String filename) final void
final void
setPackage
(String packageName) final void
setParameters
(String parameters) final void
setVerbose
(String verbose) protected String
stripDirectory
(String filename) 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
-
Field Details
-
_parameters
-
_orb
-
_idlCompilerDefinitions
-
_filename
-
_destinationDirectory
-
_packageName
-
_buildList
-
_debugOn
protected boolean _debugOn -
_verbose
protected boolean _verbose -
_fileSet
protected org.apache.tools.ant.types.FileSet _fileSet
-
-
Constructor Details
-
IDLCompiler
public IDLCompiler()
-
-
Method Details
-
setDebug
-
setVerbose
-
setDestdir
-
setBuildlist
-
setPackage
-
setParameters
-
setFilename
-
setOrb
-
childrenContainsSubParam
-
parseIDLCompilerDefinitionsFile
protected void parseIDLCompilerDefinitionsFile() throws org.apache.tools.ant.BuildExceptionParse the IDL compiler definitions file.- Throws:
org.apache.tools.ant.BuildException
-
stripDirectory
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionDescription copied from class:org.apache.tools.ant.Task
Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- if something goes wrong with the build.
-
processIDL
public boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler, String filename, String packageName, String destDir, String mappings)
-