Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Quick change to add support for jruby on msys/mingw #37
I was about to create a pull request that made things work under Git Bash (MSysGit) that allowed you to specify JRUBY_HOME outside the script so you wouldn't have to worry about c:\whatever vs. /c/whatever rewriting issues. This looks like it might resolve the situation in a more general way. Do you think so?
I can't be sure, but I don't think that will solve the issue. MinGW is already looking in the correct location, it's just using the wrong executable. The problem is that MinGW sees the jruby shell script and tries to execute that first, which doesn't work from MinGW. On Windows, jruby.exe is what ought to be executed. The simplest solution is to simply delete the jruby shell script. My change accomplishes virtually the same thing, by quickly executing jruby.exe from the jruby shell script.