If I package a file with the contents below in a jar file (jruby-complete)
Dir.foreach File.dirname(__FILE__) do |file|
Running it I get the error:
Errno::ENOENT: No such file or directory - No such directory: file:/path/to/the.jar!/
initialize at org/jruby/RubyDir.java:149
foreach at org/jruby/RubyDir.java:527
(root) at classpath:jar-bootstrap.rb:1
It appears Dir.foreach does not like embedded jar paths.
Discovered in this JRubyFX comment
I remember this issue like it was a month ago :)
Ok here is what I did:
This worked fine. Patrick, is there a way you can retest this? I would be really surprised if this was incidentally fixed in the last month so I suspect there is another detail I need to properly reproduce it.
Ah nevermind. I did something stupid.
Uwe fixed this during the weekend in commit f0e3aa3.