JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-2432

Rubygems under JRuby detects the ruby executable name incorrectly on Windows

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1
    • Fix Version/s: JRuby 1.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Latest JRuby 1.1.1
    • Number of attachments :
      0

      Description

      This is a placeholder for rubygems issue, when ruby executable name detected incorrectly on Windows for JRuby: jruby.bat.exe

      See lib/ruby/site_ruby/1.8/rubygems.rb, self.ruby:

        @ruby = File.join(ConfigMap[:bindir],
                              ConfigMap[:ruby_install_name])
        @ruby << ConfigMap[:EXEEXT]
      

      The first line gets "jruby.bat" and the second line appends ".exe".

      This leads to content of rake.bat as follows:

      @"jruby.bat.exe" "D:/work/jruby-dev/jruby/bin/rake" %1 %2 %3 %4 %5 %6 %7 %8 %9
      

      And this doesn't work.

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        Fixed in r6809 by disabling the EXEEXT appending. I have filed this bug with RubyGems to hopefully get a more permanent fix:

        http://rubyforge.org/tracker/index.php?func=detail&aid=20380&group_id=126&atid=575

        Show
        Charles Oliver Nutter added a comment - Fixed in r6809 by disabling the EXEEXT appending. I have filed this bug with RubyGems to hopefully get a more permanent fix: http://rubyforge.org/tracker/index.php?func=detail&aid=20380&group_id=126&atid=575

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Vladimir Sizikov
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: