File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,11 @@ void ArgParser::constructClassPath() {
477
477
classPath += cpAfter;
478
478
}
479
479
480
+ // JRUBY-4709: Include this by default to have PWD as part of classpath
481
+ if (!classPath.empty ()) {
482
+ classPath += PATH_SEP;
483
+ }
484
+
480
485
logMsg (" ClassPath: %s" , classPath.c_str ());
481
486
}
482
487
Original file line number Diff line number Diff line change 148
148
jruby_launcher ( "-Xjdkhome '' 2>&1" ) . should =~ /-Xjdkhome/
149
149
end
150
150
151
+ # JRUBY-4706
151
152
it "should put JRuby on regular classpath when -Xnobootclasspath is used" do
152
153
args = jruby_launcher_args ( "-e true" )
153
154
args . grep ( /Xbootclasspath/ ) . should_not be_empty
154
155
args = jruby_launcher_args ( "-Xnobootclasspath -e true" )
155
156
args . grep ( /Xbootclasspath/ ) . should be_empty
156
157
end
158
+
159
+ # JRUBY-4709
160
+ it "should include a bare : at the end of the classpath, to include PWD in the path" do
161
+ jruby_launcher_args ( "-Xnobootclasspath -e true" ) . grep ( /java\. class\. path/ ) . first . should =~ /:$/
162
+ end
157
163
end
You can’t perform that action at this time.
0 commit comments