Thank you. Here it is.

On Sat, Oct 9, 2010 at 3:47 PM, Antoine Toulme <[email protected]> wrote:
> Please run with --trace=all, and send the stacktrace.
>
> On Sat, Oct 9, 2010 at 09:14, Ara Vartanian <[email protected]>wrote:
>
>> I'm having trouble packaging a minimal package(:war) project using
>> Scala 2.8 and buildr 1.4.2 and JRuby 1.5.3. When I run a 'buildr
>> package', an exception is thrown:
>>
>> (in C:/Users/Ara/scala/foo3, development)
>> Building foo3
>> Packaging foo3
>> Buildr aborted!
>> NoMethodError : undefined method `invoke' for #<String:0x65ebba10>
>>
>> A simple run of 'buildr' builds with no problem.
>>
>> (in C:/Users/Ara/scala/foo3, development)
>> Building foo3
>> Completed in 0.137s
>>
>> The wrinkle seems to be that I have a single file foo.scala in the
>> src/main/scala folder. If I delete that file, the 'buildr package'
>> command returns without exception, building a simple, "empty" war. The
>> contents of 'foo.scala' are simply:
>>
>> object Foo {}
>>
>> So I'm inferring that invoking the Scala compiler is tripping up the
>> war packaging, but I can't figure much out beyond that. I've attached
>> a zip of the project, which is a whopping 2kb.
>>
>> The contents of my buildfile are:
>>
>> VERSION_NUMBER = "1.0.0"
>> GROUP = "foo3"
>> COPYRIGHT = ""
>> require 'buildr/scala'
>>
>> desc "The Foo3 project"
>> define "foo3" do
>>  project.version = VERSION_NUMBER
>>  project.group = GROUP
>>  manifest["Implementation-Vendor"] = COPYRIGHT
>>  resources
>>  compile.with
>>  test.with
>>  package(:war)
>> end
>>
>> Let me thank anyone in advance for any help they would have on this.
>>
>> -- Ara Vartanian
>>
>
(in C:/Users/Ara/scala/foo3, development)
** Invoke foo3 (first_time)
** Execute foo3
Defining task foo3:shell:bsh
Defining task foo3:shell:jirb
Defining task foo3:shell:clj
Defining task foo3:shell:scala
Defining task shell based on shell:scala
** Invoke foo3 
** Invoke package (first_time)
** Invoke build (first_time)
** Execute build
Building foo3
** Invoke foo3:build (first_time)
** Invoke C:/Users/Ara/scala/foo3/target/classes (first_time, not_needed)
** Invoke foo3:compile (first_time, not_needed)
** Invoke foo3:resources (first_time)
** Execute foo3:resources
** Invoke C:/Users/Ara/scala/foo3/target/resources (first_time, not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar
 (first_time, not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-compiler/2.8.0/scala-compiler-2.8.0.jar
 (first_time, not_needed)
** Invoke C:/Users/Ara/scala/foo3/src/main/scala (first_time, not_needed)
Testing needed. Latest prerequisite change: Sat Oct 09 12:02:26 -0400 2010 
(C:/Users/Ara/scala/foo3/buildfile). Last successful test run: <EARLY TIME>.
** Invoke foo3:test (first_time)
** Invoke C:/Users/Ara/scala/foo3/buildfile (first_time, not_needed)
** Invoke foo3:test:compile (first_time, not_needed)
** Invoke foo3:compile (not_needed)
** Invoke foo3:test:resources (first_time)
** Execute foo3:test:resources
** Invoke C:/Users/Ara/scala/foo3/target/test/resources (first_time, not_needed)
** Invoke C:/Users/Ara/scala/foo3/target/classes (not_needed)
** Invoke C:/Users/Ara/scala/foo3/target/resources (not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar
 (not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-compiler/2.8.0/scala-compiler-2.8.0.jar
 (not_needed)
** Invoke C:/Users/Ara/scala/foo3/target/test/resources (not_needed)
** Invoke C:/Users/Ara/scala/foo3/target/classes (not_needed)
** Invoke C:/Users/Ara/scala/foo3/target/resources (not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-library/2.8.0/scala-library-2.8.0.jar
 (not_needed)
** Invoke 
C:/Users/Ara/.m2/repository/org/scala-lang/scala-compiler/2.8.0/scala-compiler-2.8.0.jar
 (not_needed)
Testing needed. Latest prerequisite change: Sat Oct 09 15:59:33 -0400 2010 
(C:/Users/Ara/scala/foo3/target/classes). Last successful test run: <EARLY 
TIME>.
** Invoke foo3:test:setup (first_time)
** Execute foo3:test:setup
** Execute foo3:test
** Invoke foo3:test:teardown (first_time)
** Execute foo3:test:teardown
** Execute foo3:build
** Execute package
Packaging foo3
** Invoke foo3:package (first_time)
** Invoke foo3:build 
** Invoke C:/Users/Ara/scala/foo3/target/foo3-1.0.0.war (first_time)
** Invoke foo3:build 
** Invoke C:/Users/Ara/scala/foo3/src/main/webapp (first_time, not_needed)
** Execute C:/Users/Ara/scala/foo3/target/foo3-1.0.0.war
Exception while invoking prerequisites of task <Rake::Task foo3:package => 
[foo3:build, C:/Users/Ara/scala/foo3/target/foo3-1.0.0.war]>
Buildr aborted!
NoMethodError : undefined method `invoke' for #<String:0x5dc1eceb>
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/java/packaging.rb:260:in
 `initialize'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/java/packaging.rb:260:in
 `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/java/packaging.rb:260:in
 `initialize'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `call'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `execute'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:659:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:645:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in 
`invoke_prerequisites'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in 
`invoke_prerequisites'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:652:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:645:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:640:in
 `invoke'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:325:in
 `local_task'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:350:in
 `[]'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:350:in
 `local_projects'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:350:in
 `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:350:in
 `local_projects'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:323:in
 `local_task'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:659:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:645:in
 `invoke_with_call_chain'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:640:in
 `invoke'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in 
`invoke_task'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
 `top_level'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
 `each'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:232:in
 `top_level'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:518:in
 `standard_exception_handling'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:223:in
 `top_level'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:138:in
 `run'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:518:in
 `standard_exception_handling'
c:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:135:in
 `run'
C:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/bin/buildr:19
C:/jruby-1.5.3/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/bin/buildr:19:in `load'
c:\jruby-1.5.3\bin\buildr:19

Reply via email to