org.apache.tools.ant.taskdefs.optional.dotnet
public class ImportTypelib extends Task
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"/>
Since: Ant 1.6
UNKNOWN: category="dotnet"
Method Summary | |
---|---|
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 |
Throws: BuildException if something goes wrong with the build
Parameters: destFile the output file.
Parameters: extraOptions the options to use.
Parameters: namespace the namespace to use.
Parameters: srcFile the source file.
Parameters: unsafe a boolean
value.
Parameters: useSysArray a boolean
value.
Throws: BuildException if validation failed