History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-349
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Damian Steer
Votes: 0
Watchers: 0
Operations

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

ENV isn't getting the environment, even on Java 5 (StringOnlyRubyHash issue?)

Created: 11/Dec/06 05:53 PM   Updated: 30/Apr/07 03:12 AM
Component/s: None
Affects Version/s: None
Fix Version/s: JRuby 0.9.8

Time Tracking:
Not Specified

File Attachments: 1. Text File env.patch (3 kb)

Environment: Java


 Description  « Hide
The following does not work:

jruby -e 'puts ENV["HOME"]'

{/code}

But on java 5 OSEnvironment#getSystemProperties does return the right values, so presumably (?)StringOnlyRubyHash isn't initalized correctly from this.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Damian Steer - 13/Dec/06 01:06 PM
Patch working for me on 1.4 and 5. Note that this add the following test to testEnv.rb:
test_ok(ENV['HOME'], "Reading external environment")

That should be ENV['HOME'] || ENV['Something from windows'] I assume.