com.arjuna.orbportability.common.ant
Class IDLCompiler

java.lang.Object
  extended by Task
      extended by com.arjuna.orbportability.common.ant.IDLCompiler

public class IDLCompiler
extends 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
 class IDLCompiler.BuildListParser
           
 class IDLCompiler.IDLCompilerDetails
           
 class IDLCompiler.InputStreamFileWriter
           
 
Field Summary
protected  String _buildList
           
protected  boolean _debugOn
           
protected  String _destinationDirectory
           
protected  String _filename
           
protected  FileSet _fileSet
           
protected  Hashtable _idlCompilerDefinitions
           
protected  String _orb
           
protected  String _packageName
           
protected  String _parameters
           
protected  boolean _verbose
           
 
Constructor Summary
IDLCompiler()
           
 
Method Summary
protected  boolean childrenContainsSubParam(Node n)
           
 void execute()
           
protected  void parseIDLCompilerDefinitionsFile()
          Parse the IDL compiler definitions file.
 boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler, String filename, String packageName, String destDir)
           
 boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler, String filename, String packageName, String destDir, String mappings)
           
 void setBuildlist(String buildList)
           
 void setDebug(String debug)
           
 void setDestdir(String destDir)
           
 void setFilename(String filename)
           
 void setOrb(String orb)
           
 void setPackage(String packageName)
           
 void setParameters(String parameters)
           
 void setVerbose(String verbose)
           
protected  String stripDirectory(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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 FileSet _fileSet
Constructor Detail

IDLCompiler

public IDLCompiler()
Method Detail

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 BuildException
Parse the IDL compiler definitions file.

Throws:
BuildException

stripDirectory

protected String stripDirectory(String filename)

execute

public void execute()
             throws BuildException
Throws:
BuildException

processIDL

public boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler,
                          String filename,
                          String packageName,
                          String destDir)

processIDL

public boolean processIDL(IDLCompiler.IDLCompilerDetails idlCompiler,
                          String filename,
                          String packageName,
                          String destDir,
                          String mappings)


Copyright © 2011. All Rights Reserved.