[ http://jira.codehaus.org/browse/MNG-2048?page=all ]
John Casey updated MNG-2048:
----------------------------
Fix Version: (was: 2.0.3)
2.0.4
> Quote args in mvn script
> ------------------------
>
> Key: MNG-2048
> URL: http://jira.codehaus.org/browse/MNG-2048
> Project: Maven 2
> Type: Bug
> Components: Command Line
> Versions: 2.0.2
> Environment: Windows XP
> Cygwin
> Reporter: Dale Wyttenbach
> Priority: Minor
> Fix For: 2.0.4
>
>
> The mvn script as distributed does not handle quoted args such as:
> m2 -Dgreeting="huh bah" hello:sayhi
> You get the error:
> Invalid task 'bah': you must specify a valid lifecycle phase, or a goal in
> the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
> Here is a fix for the mvn script:
> *** mvn 2006/02/07 15:58:33 1.1
> --- mvn 2006/02/07 15:58:38
> ***************
> *** 134,138 ****
> -classpath "${M2_HOME}"/core/boot/classworlds-*.jar \
> "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
> "-Dmaven.home=${M2_HOME}" \
> ! ${CLASSWORLDS_LAUNCHER} $@
>
> --- 134,138 ----
> -classpath "${M2_HOME}"/core/boot/classworlds-*.jar \
> "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
> "-Dmaven.home=${M2_HOME}" \
> ! ${CLASSWORLDS_LAUNCHER} "$@"
--
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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]