You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ java -jar runnable.jar uri:classloader://bla.rb
JRubyFile.java:124:in `createNoUnicodeConversion': java.lang.IllegalArgumentException: Neither current working directory (uri:classloader://) nor pathname (uri:classloader://bla.rb) led to an absolute path
from JRubyFile.java:59:in `create'
from RubyInstanceConfig.java:417:in `getScriptSource'
from Main.java:246:in `internalRun'
from Main.java:217:in `run'
from JRubyMain.java:100:in `run'
from JRubyMain.java:39:in `main'
from JarMain.java:6:in `main'
or just
$ java -jar runnable.jar bla.rb
Error opening script file: uri:classloader:/bla.rb (No such file or directory)
even though the uri:classloader:/bla.rb is valid resource.
delegate script source argument to the new load service FileResource
factory and allow all uri like paths which the regular JRuby code
uses as well.
fixes#2948
Sponsored by Lookout Inc.
Conflicts:
core/src/main/java/org/jruby/RubyInstanceConfig.java
core/src/main/java/org/jruby/util/ClasspathResource.java
core/src/main/java/org/jruby/util/URLResource.java
core/src/test/java/org/jruby/util/URLResourceTest.java
the following works:
these do not work:
or with the uri:classloader:// pseudo protocol
or just
even though the
uri:classloader:/bla.rb
is valid resource.the runnable.jar is the same as from: https://github.com/jruby/jruby/tree/master/maven/jruby/src/it/runnable
just add a 'bla.rb' file to the runnable.jar from there.
The text was updated successfully, but these errors were encountered: