File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 997997
998998prepend java_args " $JAVACMD "
999999
1000+ classpath_value=$CLASSPATH
10001001if $NO_BOOTCLASSPATH || $VERIFY_JRUBY ; then
10011002 if $use_modules ; then
10021003 # Use module path instead of classpath for the jruby libs
10031004 append java_args --module-path " $JRUBY_CP "
1004- if [ -n " $CLASSPATH " ]; then
1005- append java_args -classpath " $CLASSPATH "
1006- fi
10071005 else
1008- if [ -n " $CLASSPATH " ]; then
1009- append java_args -classpath " $JRUBY_CP$CP_DELIMITER$CLASSPATH "
1010- else
1011- append java_args -classpath " $JRUBY_CP "
1012- fi
1006+ classpath_value=" $JRUBY_CP$CP_DELIMITER$classpath_value "
1007+ # Trim extra delimiter we might have appended
1008+ classpath_value=" ${classpath_value% " $CP_DELIMITER " } "
10131009 fi
10141010else
10151011 append java_args -Xbootclasspath/a:" $JRUBY_CP "
1016- if [ -n " $CLASSPATH " ] ; then
1017- append java_args -classpath " $CLASSPATH "
1018- fi
1019- append java_args -Djruby.home= " $JRUBY_HOME "
1012+ fi
1013+
1014+ if [ -n " $classpath_value " ] ; then
1015+ append java_args -classpath " $classpath_value "
10201016fi
10211017
10221018append java_args -Djruby.home=" $JRUBY_HOME " \
You can’t perform that action at this time.
0 commit comments