if you want NAnt to pass the parameter to the program as is, use :
 
    <exec program="filename.exe">
        <arg value="filename.txt" />
    </exec>
 
if you want NAnt to convert the filename into a full path by considering the filename to be specified relative to the project base directory, use :
 
    <exec program="filename.exe">
        <arg file="filename.txt" />
    </exec>
 
Hope this helps,
 
Gert
----- Original Message -----
Sent: Wednesday, October 15, 2003 10:39 AM
Subject: [Nant-users] Command Line Argument

Hello folks

 

Normally at the command prompt I would pass a file to be used by the .exe like so:

 

filename.exe followed by filename.txt

 

But how can this be implemented in the .build file.  I.e.

 

<exec program="filename.exe filename.txt" />

 

But this does not work

 

Any help would be appreciated

 

Reply via email to