| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.ant.dotnet.ImportTypelib
public class ImportTypelib
Import a COM type library into the .NET framework.
This task is a wrapper to .NET's tlbimport; it imports a tlb file to a NET assembly by generating a binary assembly (.dll) that contains all the binding metadata. It uses date timestamps to minimise rebuilds.
Example
     <importtypelib
       srcfile="xerces.tlb"
       destfile="xerces.dll"
       namespace="Apache.Xerces"/>
 
| Field Summary | 
|---|
| 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 | |
|---|---|
| ImportTypelib() | |
| Method Summary | |
|---|---|
|  void | execute()Create a typelib command | 
|  void | setDestFile(java.io.File destFile)This method names the output file. | 
|  void | setExtraOptions(java.lang.String extraOptions)set any extra options that are not yet supported by this task. | 
|  void | setNamespace(java.lang.String namespace)This method sets what namespace the typelib is to be in. | 
|  void | setSrcFile(java.io.File srcFile)This method sets which is the source .tlb file. | 
|  void | setUnsafe(boolean unsafe)do you want unsafe code. | 
|  void | setUseSysArray(boolean useSysArray)set this to map a COM SafeArray to the System.Array class | 
| protected  void | validate()validation code | 
| 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 | 
| Constructor Detail | 
|---|
public ImportTypelib()
| Method Detail | 
|---|
public void setDestFile(java.io.File destFile)
destFile - public void setNamespace(java.lang.String namespace)
namespace - public void setSrcFile(java.io.File srcFile)
srcFile - public void setUnsafe(boolean unsafe)
unsafe - public void setUseSysArray(boolean useSysArray)
useSysArray - public void setExtraOptions(java.lang.String extraOptions)
extraOptions - 
protected void validate()
                 throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if validation failed
public void execute()
             throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if something goes wrong with the build| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||