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
  • Field Details

    • _parameters

      protected String _parameters
    • _orb

      protected String _orb
    • _idlCompilerDefinitions

      protected Hashtable _idlCompilerDefinitions
    • _filename

      protected String _filename
    • _destinationDirectory

      protected String _destinationDirectory
    • _packageName

      protected String _packageName
    • _buildList

      protected String _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

      public final void setDebug(String debug)
    • setVerbose

      public final void setVerbose(String verbose)
    • setDestdir

      public final void setDestdir(String destDir)
    • setBuildlist

      public void setBuildlist(String buildList)
    • setPackage

      public final void setPackage(String packageName)
    • setParameters

      public final void setParameters(String parameters)
    • setFilename

      public final void setFilename(String filename)
    • setOrb

      public final void setOrb(String orb)
    • childrenContainsSubParam

      protected boolean childrenContainsSubParam(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 String stripDirectory(String filename)
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Description 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 class org.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)