org.jacorb.idl
Class JacIDL

java.lang.Object
  extended byMatchingTask
      extended byorg.jacorb.idl.JacIDL

public class JacIDL
extends MatchingTask

This is the idl compile task for using the idl compiler from the ANT build tool.

Version:
$Id: JacIDL.java,v 1.25 2005/10/03 20:56:43 andre.spiegel Exp $
Author:
Wei-ju Wu
See Also:
Serialized Form

Nested Class Summary
 class JacIDL.I2JPackageTagHandler
          Inner class that will read the i2jpackage tags.
 
Constructor Summary
JacIDL()
           
 
Method Summary
 void addDefine(org.apache.tools.ant.types.Environment.Variable def)
           
 void addUndefine(org.apache.tools.ant.types.Environment.Variable def)
           
 JacIDL.I2JPackageTagHandler createI2jpackage()
          Will be called whenever an nested PCDATA element is encountered.
 void execute()
          The execute() method of the task.
 java.io.File[] getFileList()
           
protected  void resetFileLists()
          Clear the list of files to be compiled and copied..
protected  void scanFiles(java.lang.String[] files)
          Scans the directory looking for source files to be compiled.
 void setAll(boolean flag)
          Set the flag to generate all files.
 void setAmi_callback(boolean flag)
          Sets the flag to generate AMI callbacks.
 void setDebuglevel(int level)
          Set the debug level.
 void setDestdir(java.io.File dir)
          Set the destination directory.
 void setForceOverwrite(boolean flag)
          Sets the flag to overwrite existing files.
 void setGenerateDIIStubs(boolean flag)
           
 void setGenerateir(boolean flag)
          Set the flag to generate the interface repository files.
 void setIncludepath(Path path)
          Set the include path for the idl compiler.
 void setNofinal(boolean flag)
          Setter for 'nofinal' property that indicates whether generated code should have a final class definition.
 void setNoskel(boolean flag)
          Set the flag to leave out skeleton generation.
 void setNostub(boolean flag)
          Set the flag to leave out stub generation.
 void setOmgprefix(boolean flag)
          Set the flag to use the omg package prefix
 void setParseonly(boolean flag)
          Set the flag to parse the idl only.
 void setSloppyforward(boolean flag)
          Set the flag to use sloppy forwards.
 void setSloppynames(boolean flag)
          Set the flag to use sloppy names.
 void setSrcdir(java.io.File dir)
          Set the source directory.
 void setUncheckedNarrow(boolean flag)
          Sets the flag to generated unchecked narrow() calls in stubs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacIDL

public JacIDL()
Method Detail

setDestdir

public void setDestdir(java.io.File dir)
Set the destination directory.

Parameters:
dir - the destination directory

setSrcdir

public void setSrcdir(java.io.File dir)
Set the source directory.

Parameters:
dir - the source directory

setIncludepath

public void setIncludepath(Path path)
Set the include path for the idl compiler.

Parameters:
path - the include path

setDebuglevel

public void setDebuglevel(int level)
Set the debug level.

Parameters:
level - the debug level

setGenerateir

public void setGenerateir(boolean flag)
Set the flag to generate the interface repository files.

Parameters:
flag - the flag

setOmgprefix

public void setOmgprefix(boolean flag)
Set the flag to use the omg package prefix

Parameters:
flag - the flag

setAll

public void setAll(boolean flag)
Set the flag to generate all files.

Parameters:
flag - the flag

setParseonly

public void setParseonly(boolean flag)
Set the flag to parse the idl only.

Parameters:
flag - the flag

setNoskel

public void setNoskel(boolean flag)
Set the flag to leave out skeleton generation.

Parameters:
flag - the flag

setNostub

public void setNostub(boolean flag)
Set the flag to leave out stub generation.

Parameters:
flag - the flag

setSloppyforward

public void setSloppyforward(boolean flag)
Set the flag to use sloppy forwards.

Parameters:
flag - the flag

setSloppynames

public void setSloppynames(boolean flag)
Set the flag to use sloppy names.

Parameters:
flag - the flag

setNofinal

public void setNofinal(boolean flag)
Setter for 'nofinal' property that indicates whether generated code should have a final class definition.


setAmi_callback

public void setAmi_callback(boolean flag)
Sets the flag to generate AMI callbacks.


setForceOverwrite

public void setForceOverwrite(boolean flag)
Sets the flag to overwrite existing files.


setUncheckedNarrow

public void setUncheckedNarrow(boolean flag)
Sets the flag to generated unchecked narrow() calls in stubs


setGenerateDIIStubs

public void setGenerateDIIStubs(boolean flag)

addDefine

public void addDefine(org.apache.tools.ant.types.Environment.Variable def)

addUndefine

public void addUndefine(org.apache.tools.ant.types.Environment.Variable def)

createI2jpackage

public JacIDL.I2JPackageTagHandler createI2jpackage()
Will be called whenever an nested PCDATA element is encountered.


execute

public void execute()
             throws BuildException
The execute() method of the task.

Throws:
BuildException

resetFileLists

protected void resetFileLists()
Clear the list of files to be compiled and copied..


scanFiles

protected void scanFiles(java.lang.String[] files)
                  throws BuildException
Scans the directory looking for source files to be compiled. The results are returned in the class variable compileList

Throws:
BuildException

getFileList

public java.io.File[] getFileList()