File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ readonly cygwin
138138
139139use_exec=true
140140java_opts_from_files=" "
141+ jdb=false
141142
142143NO_BOOTCLASSPATH=false
143144VERIFY_JRUBY=false
153154
154155java_args=" "
155156ruby_args=" "
157+ jdb_args=" "
156158
157159# Force OpenJDK-based JVMs to use /dev/urandom for random number generation
158160# See https://github.com/jruby/jruby/issues/4685 among others.
562564 --headless) append java_args -Djava.awt.headless=true ;;
563565 # Run under JDB
564566 --jdb)
567+ jdb=true
565568 if [ -z " $JAVA_HOME " ]; then
566569 JAVACMD=' jdb'
567570 else
572575 fi
573576 fi
574577 JDB_SOURCEPATH=" ${JRUBY_HOME} /core/src/main/java:${JRUBY_HOME} /lib/ruby/stdlib:."
575- append java_args -sourcepath " $JDB_SOURCEPATH "
578+ append jdb_args -sourcepath " $JDB_SOURCEPATH "
576579 append ruby_args -X+C
577580 ;;
578581 --client|--server|--noclient)
@@ -692,6 +695,10 @@ prepend java_args $JAVA_OPTS "$JFFI_OPTS"
692695# Include all options from files at the beginning of the Java command line
693696preextend java_args java_opts_from_files
694697
698+ if $jdb ; then
699+ preextend java_args jdb_args
700+ fi
701+
695702prepend java_args " $JAVACMD "
696703
697704if $NO_BOOTCLASSPATH || $VERIFY_JRUBY ; then
You can’t perform that action at this time.
0 commit comments