Issue Details (XML | Word | Printable)

Key: JRUBY-2693
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vladimir Sizikov
Reporter: Alex Panchenko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

PROGRAM_NAME is not available in the modules included via -r command line option

Created: 23/Jun/08 03:54 AM   Updated: 10/Sep/08 06:47 PM
Component/s: None
Affects Version/s: JRuby 1.1, JRuby 1.1.1, JRuby 1.1.2
Fix Version/s: JRuby 1.1.3

Time Tracking:
Not Specified


 Description  « Hide
It works with ruby and worked in jruby 1.0.x, but it does not work in jruby 1.1.x
Eclipse DLTK ruby debugger uses this variable and this issue prevent it from working with JRuby 1.1.x

Please see the example:

programName.rb
puts 'PROGRAM_NAME=' + $PROGRAM_NAME.to_s

And output in different versions:

C:\>ruby -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb

C:\>C:\jruby-1.0.3\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb

C:\>C:\jruby-1.1.2\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=
PROGRAM_NAME=programName.rb



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order

Vladimir Sizikov added a comment - 23/Jun/08 09:26 AM
Fixed in rev r7017 on trunk. Thanks for the report.