-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ant integration: rakeimport throws NilClass #1656
Comments
I'm having the same issue using JRuby 1.7.10 when trying to invoke rake tasks from a Rails project. |
I'm having the same issue. When I run fpm in jruby 1.7.18, I get the error shown below. I do not get the same error when running fpm on normal ruby 1.9 .
The offending line:
|
I think we have a few issues running together here. The original report (by @inger) was against 1.6.8, and eventually falls into ant/ant.rb where it tries this: file, line = caller.detect{|el| el !~ /^#{File.dirname(__FILE__)}/ && el !~ /\.java:/}.split(/:(\d+):?/) FILE when running from a complete JRuby jar would be something like This is likely a old bug in File.dirname's handling of URLs...that is fixed on current JRuby 1.7. The second report in here (by @imella) is about being unable to run rake tasks from a Rails project. Unless it's very unusual, that case would usually not be running from the complete jar, and so it is likely a different-but-similar issue. Even if it is the same issue, the File.dirname fixes I mentioned came after 1.7.10, so it needs a re-test. The third report (by @djhaskin987) is again similar, but does not appear to involve dirname or a complete JRuby jar. This is likely another different-but-similar issue. I'm going to close this, because I believe the original issue should be fixed. @inger: Please retest with JRuby 1.7.18 and reopen if it still exhibits the problem. @imella: Please retest with JRuby 1.7.18 and open a new bug if it still exhibits the problem. @djhaskin987: Please open a new bug. You're the lucky one that has a current reproduction :-) |
Minimal test file: /tmp/jrubyant/build.xml:
An 'ant build' there yields:
With Jruby 1.5.6, it just complains about the missing Rakefile (expected).
The next version I tried is 1.6.8 - there it already fails.
The text was updated successfully, but these errors were encountered: