startup scripts broken when working directory isn't JRuby's bin directory
-------------------------------------------------------------------------
Key: JRUBY-4344
URL: http://jira.codehaus.org/browse/JRUBY-4344
Project: JRuby
Issue Type: Bug
Components: Windows
Affects Versions: JRuby 1.4
Environment: Windows XP SP3
Reporter: Raven Ex
Priority: Minor
The startup batch files in JRuby 1.4.0 are broken. For example, if jirb.bat is
invoked from command line when the current directory isn't JRuby's bin
directory, it'll report an error stating 'jruby' cannot be found.
This is due to the way jirb.bat is currently written,
@"jruby" "%~dpn0" %*
The command above will look for 'jruby' on %PATH%, not from where jirb.bat is.
A quick fix would be:
@"%~dp0jruby" "%~dpn0" %*
Which works fine for me.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email