You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2011/06/22 12:11:12 UTC

[jira] [Closed] (BUILDR-442) Errors while running the specs with jruby 1.5

     [ https://issues.apache.org/jira/browse/BUILDR-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald closed BUILDR-442.
-------------------------------


> Errors while running the specs with jruby 1.5
> ---------------------------------------------
>
>                 Key: BUILDR-442
>                 URL: https://issues.apache.org/jira/browse/BUILDR-442
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4
>
>         Attachments: BUILDR-442.txt
>
>
> It looks like the before_define blocks are not passed correctly, and tasks are not created correctly. For example, the compile task doesn't become an instance of CompileTask. The from method is thus not defined on it. That gives a weird error message:
> 2)
> NoMethodError in 'javac compiler should identify from source directories using custom layout'
> undefined method `from' for <Rake::Task foo:compile => []>:Rake::Task
> ./spec/java/../spec_helpers.rb:144:in `execute'
> ./spec/java/../spec_helpers.rb:338:in `define'
> ./spec/java/../spec_helpers.rb:338:in `tap'
> ./spec/java/../spec_helpers.rb:338:in `define'
> ./spec/java/compiler_spec.rb:32:
> The very same code, without changes, passes on JRuby 1.4.
> I lean towards something fishy in the JRuby 1.5 codebase. Since they worked towards getting better integration with Rake, I wonder if they did some monkey-patching that causes us issues. I will discuss this with the JRuby maintainers over IRC (I was hinted to discuss with enebo).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira