You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stéphane Landelle (JIRA)" <ji...@apache.org> on 2013/04/04 12:53:16 UTC
[jira] [Created] (EXEC-73) WinNTCommandLauncher shouldn't
handleQuoting when rebuilding the command
Stéphane Landelle created EXEC-73:
-------------------------------------
Summary: WinNTCommandLauncher shouldn't handleQuoting when rebuilding the command
Key: EXEC-73
URL: https://issues.apache.org/jira/browse/EXEC-73
Project: Commons Exec
Issue Type: Bug
Affects Versions: 1.1
Reporter: Stéphane Landelle
One can use CommandLine.addArgument(argument, false) to disable quote handling (in my use case, the argument is already properly quoted addArgument(argument, true) just messes it up).
The problem is that WinNTCommandLauncher recreates the command if the working dir is not null, and in this case forces quoting.
IMHO, WinNTCommandLauncher should simply assume that the CommandLine has been properly built upstream, and should not try to quote/requote the arguments, and use addArguments(arguments, false)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira