[
http://jira.codehaus.org/browse/MEXEC-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Milos Kleint closed MEXEC-72.
-----------------------------
Resolution: Fixed
http://fisheye.codehaus.org/changelog/mojo/?cs=11233
trying to guess now if we deal with a bat file or not. Examining working
directory and PATH env var to find out. If bat file, run "cmd /c <foo>" rather
than "<foo>".
I've tested on windows and the sample project provided works. I've deployed the
latest snapshot, please verify.
> exec:exec mojo does not correctly pass arguments with spaces
> ------------------------------------------------------------
>
> Key: MEXEC-72
> URL: http://jira.codehaus.org/browse/MEXEC-72
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Components: exec
> Affects Versions: 1.1.2
> Environment: Linux Ubuntu 32/64bit, Windows Vista
> Reporter: Matteo Collina
> Assignee: Milos Kleint
> Priority: Blocker
> Fix For: 1.1.2
>
> Attachments: spaces-issue.zip
>
>
> The change introduced by bug
> [MEXEC-25|http://jira.codehaus.org/browse/MEXEC-25] broke our build.
> We are calling an ant task with a parameter with spaces (-Dmessage=hello
> world) in a single <argument> tag which before this change went perfectly.
> With this change the argument got splitted in two ("-Dmessage=hello" and
> "world"). Moreover the quoting doesn't work at all, i.e. it doesn't even work
> <argument>"-Dmessage=hello world"</argument>.
> Even the second solution would require us to change all our project poms,
> which is quite annoying and disruptive.
> I'm attaching a zip file containing two maven projects calling an ant target
> with a parameter: old-version and new-version.
> In the old-version project the exec mojo used is the stable one (1.1.1) and
> the build (mvn compile) is successful, whereas in the new-version
> (1.2-SNAPSHOT) the same build fails.
> Obviously both these project requires ant to be in path.
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email