Issue Type: Improvement Improvement
Assignee: Thomas E Enebo
Created: 31/Jan/13 5:28 PM
Description:

given the following file, named "test.rb" which is in a directory which also contains the file "test.png"

require 'java'
p java.awt.Toolkit::default_toolkit.get_image('test.png').height

if I run this from the directory where test.rb is, it outputs the correct height (86) in this case.

$ java -jar jruby-complete-1.7.0.jar test.rb
86

I would also expect that if I use ruby's "-C" directive, it would be able to find the file, but it is not.

$ cd ..
$ java -jar ruby/jruby-complete-1.7.0.jar -C ruby test.rb
-1

Possibly this is expected, but it was surprising.

It appears that it may be possible to "really" change the current working dir, which might be desired here: http://stackoverflow.com/a/8204584/32453

Let me know if you can't reproduce the problem, I can provide a zip of the requisite files.

Environment: jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) Client VM 1.6.0_35-b10 [Windows 7-x86]
Project: JRuby
Priority: Major Major
Reporter: Roger Pack
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to