Skip to content

Commit

Permalink
[Truffle] Fix excludes on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed May 7, 2015
1 parent 2b396cd commit 4fc6836
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 4fc6836

Please sign in to comment.