> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Robert Smith
> Sent: dinsdag 22 februari 2005 20:38
> To: [email protected]
> Subject: [Nant-users] <exec> string literals
> 
> When I execute the equivalent of the below <exec> lines from command
> line, InstallShield wants quotes around the second part of the
> parameter.
> 
> For instance -c "Release 1" is required. How do I force the string
> literals to do the same thing in the <exec> task?
> 
> Adding the double quotes around the parameter (<arg value="-c 
> ""Release 1""" />
> ) doesn't work either, in fact causes the following error: 
> 
> Error loading buildfile.
>   This is an unexpected token. The expected token is 'NAME'. Line 129,
> position 21.
> 
> What I have now...
> 
> <exec program="ISCmdBld" > 
>   <arg value="-p 
> ${WorkDirInstallShield}WEA_MAPAdminWebWeb_Install.ism" />
>   <arg value="-a MAPAdminWeb_Install" />
>   <arg value="-c Release 1" />
> </exec>
> 
> But causes this error...
> 
> [exec] -1113: The 'p
> C:\MAP\Applications\DevInt\Install_Shield\NWEA_MAPAdminWebWeb_
Install.ism'
> switch is not recognized.
> 
> Thanks in advance for any assistance.

The best solution is splitting up the first argument in two separate args:

        <arg value="-p" />
        <arg file="${WorkDirInstallShield}WEA_MAPAdminWebWeb_Install.ism" />

When you use the "file" attribute, NAnt will automatically resolve a
relative path to an absolute path and apply quoting if necessary.

Gert



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to