I'm not sure if there are other Windows application that treat parameters like /param:"value with space" but I do know MSTest needs it. Before we are going the way of patching the ArgumentListBuilder, is there a way that I can manually do it? When I try to use a StringBuilder and pass the whole command as one string Jenkins still add single quote around my whole command which fail to run that way.
I think a method such addKeyValuePair that accept the parameter name and value can do the trick. Ido On Thursday, May 16, 2013 5:59:18 PM UTC+3, Jesse Glick wrote: > > On 05/16/2013 07:56 AM, Ido Ran wrote: > > ArgumentListBuilder […either puts] quotes around the whole parameter > which result in "/testcontainer:file with space.dll" which is not good for > MSTest > > Sounds like MSTest has a nonstandard way of interpreting quotes. Clearly > this is Windows-specific since on Unix handling of quotes is done entirely > on the caller side, > e.g. the shell; in the case of programmatic execution from > ProcessBuilder.<init>(String[]) quoting would be redundant. Windows however > forces each application to > interpret quotes in its own command line, e.g. by reading argv as produced > by MSVCRT. > > Are there are other Windows applications which accept /option:"some value" > but reject "/option:some value"? If this is in fact commonplace, then I > guess > ArgumentListBuilder should be patched to move the opening quote past > anything that appears to be an option name. The standard parser ought to > accept either form from what > I can tell. > -- 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.
