Issue Type: Improvement Improvement
Affects Versions: 1.2.2
Assignee: Unassigned
Created: 28/Jun/12 5:24 PM
Description:

currently extraArguments which has spaces in its individual argument work well for windows. However on Unix it fail due to this construct

CLASSPATH=$CLASSPATH_PREFIX:@CLASSPATH@
EXTRA_JVM_ARGUMENTS="@EXTRA_JVM_ARGUMENTS@"
...

exec "$JAVACMD" $JAVA_OPTS \
$EXTRA_JVM_ARGUMENTS \

The following expansion example break the script

EXTRA_JVM_ARGUMENTS="-DmyDir="$BASEDIR"" where $BASEDIR" has space

attempt to break escape EXTRA_JVM_ARGUMENTS="-DmyDir=\"$BASEDIR\"" inturn break

exec "$JAVACMD" $JAVA_OPTS \
$EXTRA_JVM_ARGUMENTS \

The solution is to inject directly into exec statment

exec "$JAVACMD" $JAVA_OPTS \
@EXTRA_JVM_ARGUMENTS@ \

Environment: unix/windows
Project: Mojo AppAssembler Plugin
Priority: Major Major
Reporter: Dan Tran
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
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to