Skip to content

Commit 21dafa8

Browse files
committed
version 1.0.8: heed value of VERIFY_JRUBY env var
1 parent 8a3bba6 commit 21dafa8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

argparser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
226226
javaOptions.push_back("-Dfile.encoding=UTF-8");
227227
}
228228
#endif
229+
if (getenv("VERIFY_JRUBY") != NULL) {
230+
noBootClassPath = true;
231+
}
229232

230233
addToArgList(args, argc, argv);
231234

spec/launcher_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@
179179
args.grep(/Xbootclasspath/).should be_empty
180180
end
181181

182+
it "should put JRuby on regular classpath when VERIFY_JRUBY is set" do
183+
with_environment "VERIFY_JRUBY" => "true" do
184+
args = jruby_launcher_args("-e true")
185+
args.grep(/Xbootclasspath/).should be_empty
186+
end
187+
end
188+
182189
# JRUBY-4709
183190
it "should include a bare : or ; at the end of the classpath, to include PWD in the path" do
184191
jruby_launcher_args("-Xnobootclasspath -e true").grep(/java\.class\.path/).first.should =~

0 commit comments

Comments
 (0)