org.apache.tools.ant.taskdefs.optional.dotnet
Class 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"/>
- Ant 1.6
void | execute()- Create a typelib command
|
void | setDestFile(File destFile)- This method names the output file.
|
void | setExtraOptions(String extraOptions)- set any extra options that are not yet supported by this task.
|
void | setNamespace(String namespace)- This method sets what namespace the typelib is to be in.
|
void | setSrcFile(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
|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
setDestFile
public void setDestFile(File destFile)
This method names the output file.
This is an operation which is required to have been performed.
destFile -
setExtraOptions
public void setExtraOptions(String extraOptions)
set any extra options that are not yet supported by this task.
extraOptions -
setNamespace
public void setNamespace(String namespace)
This method sets what namespace the typelib is to be in.
This is an operation which is required to have been performed.
namespace -
setSrcFile
public void setSrcFile(File srcFile)
This method sets which is the source .tlb file.
This is an operation which is required to have been performed.
srcFile -
setUnsafe
public void setUnsafe(boolean unsafe)
do you want unsafe code.
unsafe -
setUseSysArray
public void setUseSysArray(boolean useSysArray)
set this to map a COM SafeArray to the System.Array class
useSysArray -
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.