Nick
use property for substituting an individual entity such as. <property name="idl.src" value="directory"/>
<midl  tlb="${idl.src}\TempAtl.tlb"...
-OR-

use fileset instead of property for specifying all the files for a fileset take a look at
http://nant.sourceforge.net/help/types/fileset.html
HTH,
Martin
----- Original Message -----
Sent: Tuesday, June 15, 2004 8:33 PM
Subject: [Nant-users] Having a problem with the midl task

I’m having a problem getting the midl task to work. Within my build file, I have something that looks like:

 

 

<property name="idl.src" value="file.IDL" />

<property name="idl.out" value="file.tlb" />

 

<midl env="win32" filename="${idl.src}" tlb="${idl.out}">

      <options>

            <option name="/mktyplib203"/>

      </options>

</midl>

 

 

When it’s run, I get an error like:

 

midl : command line warning MIDL1009 : unknown argument ignored "file.IDL"

midl : command line error MIDL1001 : cannot open input file option

 

BUILD FAILED

 

Am I using this in the right way?

 

Regards,

Nick.

Reply via email to