I'm not using toWindowsCommand.
When I use simple string array to hold the command and parameters I still 
get this command:

[workspace] $ *'*"c:\Program Files (x86)\Microsoft Visual Studio 
10.0\Common7\IDE\MSTest.exe"*'* /resultsfile:result.rsx /noisolation 
*'*/testcontainer:"c:\temp\dir with space$\test1.dll"*'*


Notice the red single quote around the arguments that have space in them.

How can I get rid of them?

On Thursday, May 16, 2013 6:17:55 PM UTC+3, Jesse Glick wrote:
>
> On 05/16/2013 11:06 AM, Ido Ran wrote: 
> > Before we are going the way of patching the ArgumentListBuilder, is 
> there a way that I can manually do it? 
>
> The add(…) overloads are irrelevant, since the quoting is done later, by 
> toWindowsCommand. But I am not sure what your question is, since AFAIK if 
> ArgumentListBuilder 
> does not suit your needs you can simply not use it, and then ultimately 
> LocalProc calls new ProcessBuilder(String[]) which allows you to pass 
> whatever you like. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to