Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -117,9 +117,9 @@ public void init() {
// We don't want JRuby's stdlib paths, but we do want any extra paths set by -I and things like that

final List<String> excludedLibPaths = new ArrayList<>();
excludedLibPaths.add(new File(home, "lib/ruby/2.2/site_ruby").toString());
excludedLibPaths.add(new File(home, "lib/ruby/shared").toString());
excludedLibPaths.add(new File(home, "lib/ruby/stdlib").toString());
excludedLibPaths.add(new File(home, "lib/ruby/2.2/site_ruby").toString().replace('\\', '/'));
excludedLibPaths.add(new File(home, "lib/ruby/shared").toString().replace('\\', '/'));
excludedLibPaths.add(new File(home, "lib/ruby/stdlib").toString().replace('\\', '/'));

for (IRubyObject path : ((org.jruby.RubyArray) runtime.getLoadService().getLoadPath()).toJavaArray()) {
if (!excludedLibPaths.contains(path.toString())) {

0 comments on commit 4fc6836

Please sign in to comment.