You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Dieter Vrancken (JIRA)" <ji...@apache.org> on 2013/01/03 19:06:12 UTC

[jira] [Created] (BUILDR-659) Checkstyle addon can not handle local dependencies

Dieter Vrancken created BUILDR-659:
--------------------------------------

             Summary: Checkstyle addon can not handle local dependencies
                 Key: BUILDR-659
                 URL: https://issues.apache.org/jira/browse/BUILDR-659
             Project: Buildr
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.4.9
         Environment: JRuby 1.7.1
ArchLinux x86_64
            Reporter: Dieter Vrancken
            Priority: Minor


Running {{buildr --trace project:checkstyle:xml}} ends results in the trace below.

My buildfile contains the following snippet:
{code}
require 'buildr/checkstyle'

repositories.remote << "http://repo1.maven.org/maven2"

define "project" do
  compile.with FileList['lib/*/*.jar']
end
{code}

Removing the {{compile.with}} line fixes the issue.

Trace:
{code}
(in /space/projects/internal/training/buildr/project, development)
** Execute project
** Invoke project (first_time)
** Execute project:checkstyle:xml
** Invoke project 
** Invoke project:checkstyle:xml (first_time)
Checkstyle: Analyzing source code...
mkdir -p /space/projects/internal/training/buildr/project/reports/checkstyle
Buildr aborted!
NoMethodError : undefined method `invoke' for #<String:0x60992d7c>
org/jruby/RubyBasicObject.java:1659:in `__send__'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/util.rb:169:in `to_proc'
org/jruby/RubyArray.java:1612:in `each'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/addon/buildr/checkstyle.rb:37:in `checkstyle'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/addon/buildr/checkstyle.rb:170:in `ProjectExtension'
org/jruby/RubyProc.java:249:in `call'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1612:in `each'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:673:in `invoke_with_call_chain'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:659:in `invoke_with_call_chain'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:654:in `invoke'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:238:in `top_level'
org/jruby/RubyArray.java:1612:in `each'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:238:in `top_level'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:534:in `standard_exception_handling'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:229:in `top_level'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:130:in `run'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:534:in `standard_exception_handling'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/lib/buildr/core/application.rb:127:in `run'
/home/dieterv/.rbenv/versions/jruby-1.7.1/lib/ruby/gems/shared/gems/buildr-1.4.9-java/bin/buildr:19:in `(root)'
org/jruby/RubyKernel.java:1046:in `load'
/home/dieterv/.rbenv/versions/jruby-1.7.1/bin/buildr:23:in `(root)'
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira