CLASSPATH append problem in bin/jruby script under cygwin
---------------------------------------------------------
Key: JRUBY-3081
URL: http://jira.codehaus.org/browse/JRUBY-3081
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.4
Environment: cygwin
Reporter: Steve Riegel
Assignee: Thomas E Enebo
java -classpath arg ends up containing ":" character due to explicit
$CP_DELIMETER concat on exec line:
exec "$JAVA_CMD" $JAVA_OPTS "[EMAIL PROTECTED]" -Xbootclasspath/a:"$JRUBY_CP"
-classpath "$CP$CP_DELIMETER$CLASSPATH" ...
The ":" character partially damages the -classpath arg by causing the
immediately preceding jar (at end of $CP) to be skipped/ignored.
Worked around by handling $CLASSPATH append during $CP construction, being
careful to process completely in unix form before converting back to windows
form:
81a82,87
> if [ "$CLASSPATH" != "" ]; then
> CP="$CLASSPATH"
> if $cygwin; then
> CP=`cygpath -p -u "$CP"`
> fi
> fi
228c234
< exec "$JAVA_CMD" $JAVA_OPTS "[EMAIL PROTECTED]"
-Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP$CP_DELIMETER$CLASSPATH" \
---
> exec "$JAVA_CMD" $JAVA_OPTS "[EMAIL PROTECTED]"
> -Xbootclasspath/a:"$JRUBY_CP" -classpath "$CP" \
(Sorry, I'm not sure how to determine the exact version of the jruby script
file. I am using the jruby-1.1.4 release dated 28-Aug-2008 13:40.)
--
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