JRuby finds C-Ruby 'rake' via PATH over its the script in jruby.home in the
complete jar
----------------------------------------------------------------------------------------
Key: JRUBY-5713
URL: http://jira.codehaus.org/browse/JRUBY-5713
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.6.1
Reporter: peter royal
Assignee: Thomas E Enebo
Priority: Critical
JRuby 1.6.1 broke running 'rake' from the copy embedded in the complete jar.
/usr/bin/java -classpath
/home/proyal/.m2/repository/org/jruby/jruby-complete/1.6.1/jruby-complete-1.6.1.jar
org.jruby.Main -S rake -T
{code}
FilterInputStream.java:116:in `read': java.lang.NullPointerException
from FilterInputStream.java:90:in `read'
from LoadServiceResourceInputStream.java:34:in `bufferEntireStream'
from LoadServiceResourceInputStream.java:18:in `<init>'
from LoadServiceResource.java:80:in `getInputStream'
from ExternalScript.java:50:in `load'
from LoadService.java:272:in `load'
from RubyKernel.java:1081:in `loadCommon'
from RubyKernel.java:1063:in `load'
from RubyKernel$s$0$1$load.gen:65535:in `call'
from DynamicMethod.java:209:in `call'
from DynamicMethod.java:205:in `call'
from CachingCallSite.java:282:in `cacheAndCall'
from CachingCallSite.java:139:in `call'
from /var/lib/gems/1.8/bin/rake:19:in `__file__'
from /var/lib/gems/1.8/bin/rake:-1:in `load'
from Ruby.java:671:in `runScript'
from Ruby.java:575:in `runNormally'
from Ruby.java:424:in `runFromMain'
from Main.java:278:in `doRunFromMain'
from Main.java:198:in `internalRun'
from Main.java:164:in `run'
from Main.java:148:in `run'
from Main.java:128:in `main'
{code}
I believe
https://github.com/jruby/jruby/commit/fbc02a4782489375cc7ceaafc9eec473f096cc37
broke it, as it is finding 'rake' on my PATH as part of C-Ruby.
If I empty my PATH, everything works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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