Thanks Steve, that solved the other issue perfectly.

Cheers again guys for your help.

enoesque


Steve Kapinos wrote:
> 
> Using arg LINE instead of value will avoid using the quotes
> 
>               <exec program="${installshield}">
>                       <arg line="-p Installer.ism"/>
>                       <arg line="-r Release"/>
>                       <arg line="-a productname"/>
>                       <arg line="-c COMP"/>
>                       <arg line="-b ${install.installshield}"/>
>               </exec> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of enoesque
> Sent: Thursday, July 10, 2008 7:09 AM
> To: nant-users@lists.sourceforge.net
> Subject: Re: [NAnt-users] How can I enclose a quote within a string?
> 
> 
> Thanks for your swift reply, William.
> 
> As it turns out, there are a number of arguments to mysqldump, and when
> I
> supply them as you mentioned, it ends up being
> mysqldump "arg1" "arg2" "arg3", 
> which mysqldump doesn't like.
> 
> However, you've solved a couple of issues I had elsewhere, so I'm now
> using
> "arg value" for each argument, and this correctly wraps quotes where I
> need
> them.
> 
> In the end for this problem, I used sqldump with commandline to
> temporarily
> store the file locally.  Then I move it using a "move todir" task, which
> again, correctly quotes the specified dirs.
> 
> Thanks very much for your help.
> 
> enoesque
> 
> 
> William_Martin wrote:
>> 
>> Try using <arg>  I believe these are always quoted.
>> 
>> <exec program="${mysqldump.exe}>
>>      <arg value="\\networkshare\top folder\file.txt" />
>> </exec>
>> HTH,
>> Bill
>> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> [EMAIL PROTECTED]
>> Sent: 10 July 2008 09:00
>> To: nant-users@lists.sourceforge.net
>> Subject: [NAnt-users] How can I enclose a quote within a string?
>> 
>> 
>> Hi,
>> 
>> I'm trying to perform a mysqldump to a network share.
>> 
>> An extract is shown here:
>> 
>> <exec program ="${mysqldump.exe}" commandline = "\\networkshare\top
>> folder\file.txt" />
>> 
>> However the space in "top folder" is causing problems - it causes the
> long
>> filename problem at the command prompt as well, so this doesn't work:
>> 
>> mysqldump [params] \\networkshare\top folder\file.txt
>> 
>> but this DOES:
>> 
>> mysqldump [params] "\\networkshare\top folder\file.txt"
>> 
>> My question is, how can I embed " characters in the exec command line?
>> 
>> Any help very much appreciated!
>> 
>> enoesque
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/How-can-I-enclose-a-quote-within-a-string--tp18361
> 61
>> 5p18361615.html
>> Sent from the NAnt - Users mailing list archive at Nabble.com.
>> 
>> 
>>
> ------------------------------------------------------------------------
> -
>> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> Studies have shown that voting for your favorite open source project,
>> along with a healthy diet, reduces your potential for chronic lameness
>> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>> _______________________________________________
>> NAnt-users mailing list
>> NAnt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nant-users
>> 
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email 
>> ______________________________________________________________________
>>  
>> 
>> 
>> IMPORTANT ANNOUNCEMENT You may be interested to know that Avon
> Insurance
>> is moving to brand new office premises with effect from 28th July
> 2008.
>> Our new address from the 28th July will be Avon Insurance plc, Avon
> House,
>> Ryon Hill Park, Stratford-upon-Avon, CV37 0UY
>> 
>> IMPORTANT 
>> The information contained in this e-mail and any attachments is
> intended
>> for the addressee only
>> and may contain legally privileged or confidential information. If you
> are
>> not the intended
>> recipient you must not use, disclose, copy, distribute, alter, or take
> any
>> action in reliance
>> on the information and Avon Insurance plc will not accept liability
> for
>> any loss or damage howsoever
>> arising, directly or indirectly in reliance on it and gives no
> warranty or
>> representation as to its
>> accuracy or reliability. If you are not the addressee, please notify
> us
>> immediately on 01789 202121*
>> and delete the material from your computer and destroy any copies.
>> 
>> Avon Insurance plc reserves the right to monitor and record incoming
> and
>> outgoing email messages for
>> the purposes of investigating or detecting unauthorised use of its
> system
>> and ensuring its effective operation.
>> Avon Insurance plc will not accept liability for any loss or damage as
> a
>> result of any virus being passed on.
>> 
>> Avon Insurance plc (No. 209606). 
>> Registered in England. Registered Office: Arden Street, Stratford upon
>> Avon, Warwickshire CV37 6WA.
>> Authorised and regulated by the Financial Services Authority.
>> A member of the NFU Mutual group of companies and the Association of
>> British Insurers.
>> 
>> *For security and training purposes, telephone calls may be recorded
> and
>> monitored.
>> 
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email 
>> ______________________________________________________________________
>> 
>>
> ------------------------------------------------------------------------
> -
>> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> Studies have shown that voting for your favorite open source project,
>> along with a healthy diet, reduces your potential for chronic lameness
>> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
>> _______________________________________________
>> NAnt-users mailing list
>> NAnt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nant-users
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/How-can-I-enclose-a-quote-within-a-string--tp18361
> 615p18380575.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------
> -
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-enclose-a-quote-within-a-string--tp18361615p18385501.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to