[MNG-3529] mvn -Da=" " throws an exception

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@928714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-03-29 11:02:03 +00:00
parent 953b339e1c
commit bbcd44e011
3 changed files with 13 additions and 13 deletions

View File

@ -154,11 +154,11 @@ if $cygwin; then
HOME=`cygpath --path --windows "$HOME"`
fi
exec "$JAVACMD" \
maven_exec_cmd="\"$JAVACMD\" \
$MAVEN_OPTS \
-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
"-Dmaven.home=${M2_HOME}" \
${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
-classpath \"${M2_HOME}\"/boot/plexus-classworlds-*.jar \
\"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf\" \
\"-Dmaven.home=${M2_HOME}\" \
${CLASSWORLDS_LAUNCHER}"
eval $maven_exec_cmd "$QUOTED_ARGS"

View File

@ -158,12 +158,12 @@ if $cygwin; then
HOME=`cygpath --path --windows "$HOME"`
fi
exec "$JAVACMD" \
maven_exec_cmd="\"$JAVACMD\" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
"-Dmaven.home=${M2_HOME}" \
${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
-classpath \"${M2_HOME}\"/boot/plexus-classworlds-*.jar \
\"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf\" \
\"-Dmaven.home=${M2_HOME}\" \
${CLASSWORLDS_LAUNCHER}"
eval $maven_exec_cmd "$QUOTED_ARGS"

View File

@ -935,7 +935,7 @@ public class MavenCli
{
name = property.substring( 0, i ).trim();
value = property.substring( i + 1 ).trim();
value = property.substring( i + 1 );
}
properties.setProperty( name, value );