Plugin generates faulty command line when originalFile and destFile parameters are used
---------------------------------------------------------------------------------------
Key: MPATCH-11
URL: http://jira.codehaus.org/browse/MPATCH-11
Project: Maven 2.x Patch Plugin
Issue Type: Bug
Affects Versions: 1.1
Reporter: Benjamin Bentmann
Seems like I got an update of the patch tool which does stricter cmd line parsing. As a result,
today I observed the plugin IT "path with spaces" failing. The relevant part of the build.log:
{noformat}
[INFO] [patch:apply {execution: apply-patch-1}]
[DEBUG] Looking for patch: second.patch in: target\it\path with spaces\src\main\patches\second.patch
[INFO] Applying patch: second.patch
[INFO] cmd.exe /X /C "patch
"M:\maven\plugins\maven-patch-plugin\target\it\path with spaces\target\test.txt"
-o "M:\maven\plugins\maven-patch-plugin\target\it\path with spaces\target\test2.txt"
"M:\maven\plugins\maven-patch-plugin\target\it\path with spaces\src\main\patches\second.patch"
-p0 -l -i
"M:\maven\plugins\maven-patch-plugin\target\it\path with spaces\src\main\patches\second.patch""
[DEBUG] patch: extra operand `M:\maven\plugins\maven-patch-plugin\target\it\path with spaces\target\test2.txt'
[DEBUG] patch: Try `patch --help' for more information.
[INFO] patch command returned: 2
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|