You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by "Sy, Zak" <zs...@phs.org> on 2010/06/25 21:16:08 UTC

ScalaTest failing

I just installed builder 1.4.0 via the script provided for easy install for OS X and tried to build a very simple hello world scala project.  I let buildr create the buildfile based on my directory structure and it is very simple.  I only added the 'require buildr/scala' line per the instructions to build scala projects.  Here is the entire file:

# Generated by Buildr 1.4.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "hello"
COPYRIGHT = ""

require 'buildr/scala'

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"

desc "The Hello project"
define "hello" do
  project.version = VERSION_NUMBER 
  project.group = GROUP 
  manifest["Implementation-Vendor"] = COPYRIGHT
end

Anyway, the project and 1 scala test compile, but the project fails when trying to execute the ScalaTest tests and I'm not really sure why.  I'm new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?

Running tests in hello
mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
ScalaTest "hello.tests.HelloSuite"
** Invoke /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scalacheck-1.6.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.5.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar (not_needed)
Test framework error: org/apache/tools/ant/DefaultLogger
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in `import'
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in `initialize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in `new'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in `ant'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in `run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in `initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
mkdir -p /Users/zaksy/projects/scala/hello/target
The following tests failed:
hello.tests.HelloSuite
** Invoke hello:test:teardown (first_time)
** Execute hello:test:teardown
Exception while invoking prerequisites of task <Rake::Task hello:build => [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
Exception while invoking prerequisites of task <Rake::Task default => [build]>
Buildr aborted!
RuntimeError : Tests failed!
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in `run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in `initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
============================================
*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its affiliated organizations.
It contains information, which may be confidential or privileged, and is intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute
or use the contents of this message. All personal messages express views solely of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, please notify us immediately
at postmaster@phs.org. 

If you would like more information about Presbyterian Healthcare Services please visit our web site

http://www.phs.org

============================================


RE: ScalaTest failing

Posted by "Sy, Zak" <zs...@phs.org>.
Will do.

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Antoine Toulme (anto...@lunar-ocean.com)
Date:	Jun 25, 2010 1:28:54 pm
List:	org.apache.buildr.users

Looks like ScalaTest depends on Junit which depends on ant, which is not
added to the classpath for some reason ?

Can you file a bug here http://issues.apache.org/jira/browse/BUILDR ?

Thanks,

Antoine

From: Sy, Zak 
Sent: Friday, June 25, 2010 1:16 PM
To: users@buildr.apache.org
Subject: ScalaTest failing

I just installed builder 1.4.0 via the script provided for easy install
for OS X and tried to build a very simple hello world scala project.  I
let buildr create the buildfile based on my directory structure and it
is very simple.  I only added the 'require buildr/scala' line per the
instructions to build scala projects.  Here is the entire file:

# Generated by Buildr 1.4.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "hello"
COPYRIGHT = ""

require 'buildr/scala'

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"

desc "The Hello project"
define "hello" do
  project.version = VERSION_NUMBER 
  project.group = GROUP 
  manifest["Implementation-Vendor"] = COPYRIGHT
end

Anyway, the project and 1 scala test compile, but the project fails when
trying to execute the ScalaTest tests and I'm not really sure why.  I'm
new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?

Running tests in hello
mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
ScalaTest "hello.tests.HelloSuite"
** Invoke
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
(not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
(not_needed)
Test framework error: org/apache/tools/ant/DefaultLogger
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
`import'
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
`initialize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`new'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`ant'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
mkdir -p /Users/zaksy/projects/scala/hello/target
The following tests failed:
hello.tests.HelloSuite
** Invoke hello:test:teardown (first_time)
** Execute hello:test:teardown
Exception while invoking prerequisites of task <Rake::Task hello:build
=> [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
Exception while invoking prerequisites of task <Rake::Task default =>
[build]>
Buildr aborted!
RuntimeError : Tests failed!
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
============================================
*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its affiliated organizations.
It contains information, which may be confidential or privileged, and is intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute
or use the contents of this message. All personal messages express views solely of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, please notify us immediately
at postmaster@phs.org. 

If you would like more information about Presbyterian Healthcare Services please visit our web site

http://www.phs.org

============================================


RE: ScalaTest failing

Posted by "Sy, Zak" <zs...@phs.org>.
Good news.  I got everything working.  The problem was with the security
policy in place on my work network.  After your suggestion to delete the
existing jar so it would be downloaded again, I decided took a look at
the ant-1.8.0.pom as well and noticed that it contained my company's
standard "you can't access this website..." stuff instead of the
expected pom xml content.  

So, I deleted everything below my .m2/repository/ and changed the
repositories.remote in my buildfile from www.ibiblio.org/maven2/ to
repo1.maven.org/maven2/ and this time everything downloaded correctly
and my build succeeded.

Thanks for all the help.

Zak

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 28, 2010 9:57:49 am
List:	org.apache.buildr.users

Not good... out of curiosity, what's the size of the downloaded jar?
Could
you open an issue and attach it there?  I'm guessing there's a bug in
the
download code somewhere.

alex

From: Sy, Zak 
Sent: Monday, June 28, 2010 9:57 AM
To: 'users@buildr.apache.org'
Subject: RE: ScalaTest failing

I deleted the ant-1.8.0.jar and it was downloaded again when running
buildr, but I still got the same error.  So, I went and checked the jar
and got the following when running 'jar tvf ant-1.8.0.jar'

java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:114)
	at java.util.zip.ZipFile.<init>(ZipFile.java:75)
	at sun.tools.jar.Main.list(Main.java:979)
	at sun.tools.jar.Main.run(Main.java:224)
	at sun.tools.jar.Main.main(Main.java:1149)

Not sure what's causing this?  Maybe I should specify a different maven
repository in my buildfile?  I'm using http://www.ibiblio.org/maven2/
now.

Zak

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 25, 2010 4:55:20 pm
List:	org.apache.buildr.users

I can't see anything wrong in the output.  Everything appears normal.

You could check if your ant-1.8.0.jar is valid and contains
org/apache/tools/ant/DefaultLogger.class (or erase it so it gets
downloaded
again)

e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar

alex

From: Sy, Zak 
Sent: Friday, June 25, 2010 3:35 PM
To: users@buildr.apache.org
Subject: RE: ScalaTest failing

Here is the result after running with an updated buildfile.


~/projects/scala/hello $buildr
(in /Users/zaksy/projects/scala/hello, development)
"boot classpath
[#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
buildr/java/ant.rb:53>,
#<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/java/tests.rb:45>,
#<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/scala/compiler.rb:148>,
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
Building hello
Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
Compiling hello:test into
/Users/zaksy/projects/scala/hello/target/test/classes
"java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
\"org.apache.ant:ant-launcher:jar:1.8.0\",
\"org.apache.ant:ant-trax:jar:1.8.0\"],
[\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
[\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
/Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
dependencies instead.
"test classpath [<Rake::FileTask
/Users/zaksy/projects/scala/hello/target/test/classes =>
[hello:test:compile]>,
\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
/Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
<Buildr::Artifact
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
[]>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
Running tests in hello
ScalaTest "hello.tests.HelloSuite"
Test framework error: org/apache/tools/ant/DefaultLogger
The following tests failed:
hello.tests.HelloSuite
Buildr aborted!
RuntimeError : Tests failed!

(See full trace by running task with --trace)

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 25, 2010 1:55:16 pm
List:	org.apache.buildr.users

Weird.  I can't reproduce.

Ant dependencies should be automatically loaded on RJB's classpath
during
bootstrapping (lib/buildr/java/ant.rb:53).

Could you add the following lines in your Buildfile to help debug this?

# after require 'buildr/scala'
p "boot classpath #{Java.classpath.inspect}"

define "hello" do
  ...

  task(:print_classpath) do |t|
    p "java classpath #{Java.classpath.inspect}"
    p "test classpath #{test.classpath.inspect}"
  end
  task(:test => :print_classpath)
end

alex

From: Sy, Zak 
Sent: Friday, June 25, 2010 1:16 PM
To: users@buildr.apache.org
Subject: ScalaTest failing

I just installed builder 1.4.0 via the script provided for easy install
for OS X and tried to build a very simple hello world scala project.  I
let buildr create the buildfile based on my directory structure and it
is very simple.  I only added the 'require buildr/scala' line per the
instructions to build scala projects.  Here is the entire file:

# Generated by Buildr 1.4.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "hello"
COPYRIGHT = ""

require 'buildr/scala'

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"

desc "The Hello project"
define "hello" do
  project.version = VERSION_NUMBER 
  project.group = GROUP 
  manifest["Implementation-Vendor"] = COPYRIGHT
end

Anyway, the project and 1 scala test compile, but the project fails when
trying to execute the ScalaTest tests and I'm not really sure why.  I'm
new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?

Running tests in hello
mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
ScalaTest "hello.tests.HelloSuite"
** Invoke
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
(not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
(not_needed)
Test framework error: org/apache/tools/ant/DefaultLogger
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
`import'
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
`initialize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`new'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`ant'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
mkdir -p /Users/zaksy/projects/scala/hello/target
The following tests failed:
hello.tests.HelloSuite
** Invoke hello:test:teardown (first_time)
** Execute hello:test:teardown
Exception while invoking prerequisites of task <Rake::Task hello:build
=> [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
Exception while invoking prerequisites of task <Rake::Task default =>
[build]>
Buildr aborted!
RuntimeError : Tests failed!
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
============================================
*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its affiliated organizations.
It contains information, which may be confidential or privileged, and is intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute
or use the contents of this message. All personal messages express views solely of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, please notify us immediately
at postmaster@phs.org. 

If you would like more information about Presbyterian Healthcare Services please visit our web site

http://www.phs.org

============================================


Re: ScalaTest failing

Posted by Alex Boisvert <al...@gmail.com>.
I'd also be curious to know if the corruption only happens with this jar or
other ones as well.   If only this jar, it could be due to some HTTP
caching/proxy issue or a corrupted jar on a mirror.   (I tried
re-downloading it on my system and it worked OK).

alex


On Mon, Jun 28, 2010 at 9:58 AM, Alex Boisvert <al...@gmail.com>wrote:

> Not good... out of curiosity, what's the size of the downloaded jar?
> Could you open an issue and attach it there?  I'm guessing there's a bug in
> the download code somewhere.
>
> alex
>
>
>
> On Mon, Jun 28, 2010 at 8:57 AM, Sy, Zak <zs...@phs.org> wrote:
>
>> I deleted the ant-1.8.0.jar and it was downloaded again when running
>> buildr, but I still got the same error.  So, I went and checked the jar
>> and got the following when running 'jar tvf ant-1.8.0.jar'
>>
>> java.util.zip.ZipException: error in opening zip file
>>        at java.util.zip.ZipFile.open(Native Method)
>>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>>        at java.util.zip.ZipFile.<init>(ZipFile.java:75)
>>        at sun.tools.jar.Main.list(Main.java:979)
>>        at sun.tools.jar.Main.run(Main.java:224)
>>        at sun.tools.jar.Main.main(Main.java:1149)
>>
>> Not sure what's causing this?  Maybe I should specify a different maven
>> repository in my buildfile?  I'm using http://www.ibiblio.org/maven2/
>> now.
>>
>> Zak
>>
>> -----Original Message-----
>> Subject:        Re: ScalaTest failing
>> From:   Alex Boisvert (alex...@gmail.com)
>> Date:   Jun 25, 2010 4:55:20 pm
>> List:   org.apache.buildr.users
>>
>> I can't see anything wrong in the output.  Everything appears normal.
>>
>> You could check if your ant-1.8.0.jar is valid and contains
>> org/apache/tools/ant/DefaultLogger.class (or erase it so it gets
>> downloaded
>> again)
>>
>> e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar
>>
>> alex
>>
>> From: Sy, Zak
>> Sent: Friday, June 25, 2010 3:35 PM
>> To: users@buildr.apache.org
>> Subject: RE: ScalaTest failing
>>
>> Here is the result after running with an updated buildfile.
>>
>>
>> ~/projects/scala/hello $buildr
>> (in /Users/zaksy/projects/scala/hello, development)
>> "boot classpath
>> [#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
>> buildr/java/ant.rb:53>,
>> #<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
>> uildr/java/tests.rb:45>,
>> #<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
>> uildr/scala/compiler.rb:148>,
>> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
>> Building hello
>> Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
>> Compiling hello:test into
>> /Users/zaksy/projects/scala/hello/target/test/classes
>> "java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
>> \"org.apache.ant:ant-launcher:jar:1.8.0\",
>> \"org.apache.ant:ant-trax:jar:1.8.0\"],
>> [\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
>> [\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
>> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
>> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
>> /Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
>> dependencies instead.
>> "test classpath [<Rake::FileTask
>> /Users/zaksy/projects/scala/hello/target/test/classes =>
>> [hello:test:compile]>,
>> \"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
>> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
>> /Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
>> <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
>> 1.jar => []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
>> check-1.6.jar => []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
>> []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
>> 5.1.jar => []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
>> -1.1.jar => []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
>> ibrary-1.1.jar => []>, <Buildr::Artifact
>> /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
>> Running tests in hello
>> ScalaTest "hello.tests.HelloSuite"
>> Test framework error: org/apache/tools/ant/DefaultLogger
>> The following tests failed:
>> hello.tests.HelloSuite
>> Buildr aborted!
>> RuntimeError : Tests failed!
>>
>> (See full trace by running task with --trace)
>>
>> -----Original Message-----
>> Subject:        Re: ScalaTest failing
>> From:   Alex Boisvert (alex...@gmail.com)
>> Date:   Jun 25, 2010 1:55:16 pm
>> List:   org.apache.buildr.users
>>
>> Weird.  I can't reproduce.
>>
>> Ant dependencies should be automatically loaded on RJB's classpath
>> during
>> bootstrapping (lib/buildr/java/ant.rb:53).
>>
>> Could you add the following lines in your Buildfile to help debug this?
>>
>> # after require 'buildr/scala'
>> p "boot classpath #{Java.classpath.inspect}"
>>
>> define "hello" do
>>  ...
>>
>>  task(:print_classpath) do |t|
>>    p "java classpath #{Java.classpath.inspect}"
>>    p "test classpath #{test.classpath.inspect}"
>>  end
>>  task(:test => :print_classpath)
>> end
>>
>> alex
>>
>> From: Sy, Zak
>> Sent: Friday, June 25, 2010 1:16 PM
>> To: users@buildr.apache.org
>> Subject: ScalaTest failing
>>
>> I just installed builder 1.4.0 via the script provided for easy install
>> for OS X and tried to build a very simple hello world scala project.  I
>> let buildr create the buildfile based on my directory structure and it
>> is very simple.  I only added the 'require buildr/scala' line per the
>> instructions to build scala projects.  Here is the entire file:
>>
>> # Generated by Buildr 1.4.0, change to your liking
>> # Version number for this release
>> VERSION_NUMBER = "1.0.0"
>> # Group identifier for your projects
>> GROUP = "hello"
>> COPYRIGHT = ""
>>
>> require 'buildr/scala'
>>
>> # Specify Maven 2.0 remote repositories here, like this:
>> repositories.remote << "http://www.ibiblio.org/maven2/"
>>
>> desc "The Hello project"
>> define "hello" do
>>  project.version = VERSION_NUMBER
>>  project.group = GROUP
>>  manifest["Implementation-Vendor"] = COPYRIGHT
>> end
>>
>> Anyway, the project and 1 scala test compile, but the project fails when
>> trying to execute the ScalaTest tests and I'm not really sure why.  I'm
>> new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
>>
>> Running tests in hello
>> mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
>> ScalaTest "hello.tests.HelloSuite"
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
>> 1.jar (not_needed)
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
>> check-1.6.jar (not_needed)
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
>> (not_needed)
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
>> 5.1.jar (not_needed)
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
>> -1.1.jar (not_needed)
>> ** Invoke
>> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
>> ibrary-1.1.jar (not_needed)
>> ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
>> (not_needed)
>> Test framework error: org/apache/tools/ant/DefaultLogger
>> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
>> `import'
>> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
>> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
>> `initialize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
>> `new'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
>> `ant'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
>> n `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
>> n `each'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
>> n `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
>> `run_tests'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
>> `initialize'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
>> `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 636:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 629:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 617:in `invoke'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
>> in `local_task'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `[]'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `local_projects'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `each'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `local_projects'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
>> in `local_task'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 636:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 629:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 617:in `invoke'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `each'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 502:in `standard_exception_handling'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 223:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 138:in `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 502:in `standard_exception_handling'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 135:in `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
>> /usr/bin/buildr:19:in `load'
>> /usr/bin/buildr:19
>> mkdir -p /Users/zaksy/projects/scala/hello/target
>> The following tests failed:
>> hello.tests.HelloSuite
>> ** Invoke hello:test:teardown (first_time)
>> ** Execute hello:test:teardown
>> Exception while invoking prerequisites of task <Rake::Task hello:build
>> => [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
>> Exception while invoking prerequisites of task <Rake::Task default =>
>> [build]>
>> Buildr aborted!
>> RuntimeError : Tests failed!
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
>> `run_tests'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
>> `initialize'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
>> `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 636:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 629:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 617:in `invoke'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
>> in `local_task'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `[]'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `local_projects'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `each'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
>> in `local_projects'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
>> in `local_task'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 636:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
>> `invoke_prerequisites'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 629:in `invoke_with_call_chain'
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
>> monitor.rb:242:in `synchronize'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 622:in `invoke_with_call_chain'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 617:in `invoke'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `each'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 232:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 502:in `standard_exception_handling'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 223:in `top_level'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 138:in `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 502:in `standard_exception_handling'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
>> 135:in `run'
>> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
>> /usr/bin/buildr:19:in `load'
>> /usr/bin/buildr:19
>> ============================================
>> *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
>>
>> This message originates from Presbyterian Healthcare Services or one of
>> its affiliated organizations.
>> It contains information, which may be confidential or privileged, and is
>> intended only for the
>> individual or entity named above. It is prohibited for anyone else to
>> disclose, copy, distribute
>> or use the contents of this message. All personal messages express views
>> solely of the sender, which are
>> not to be attributed to Presbyterian Healthcare Services or any of its
>> affiliated organizations, and may not
>> be distributed without this disclaimer. If you received this message in
>> error, please notify us immediately
>> at postmaster@phs.org.
>>
>> If you would like more information about Presbyterian Healthcare Services
>> please visit our web site
>>
>> http://www.phs.org
>>
>> ============================================
>>
>>
>

Re: ScalaTest failing

Posted by Antoine Toulme <an...@lunar-ocean.com>.
We might move to 1.8.1 in our next minor release if that helps.

On Mon, Jun 28, 2010 at 09:58, Alex Boisvert <al...@gmail.com>wrote:

> Not good... out of curiosity, what's the size of the downloaded jar?
> Could
> you open an issue and attach it there?  I'm guessing there's a bug in the
> download code somewhere.
>
> alex
>
>
> On Mon, Jun 28, 2010 at 8:57 AM, Sy, Zak <zs...@phs.org> wrote:
>
> > I deleted the ant-1.8.0.jar and it was downloaded again when running
> > buildr, but I still got the same error.  So, I went and checked the jar
> > and got the following when running 'jar tvf ant-1.8.0.jar'
> >
> > java.util.zip.ZipException: error in opening zip file
> >        at java.util.zip.ZipFile.open(Native Method)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> >        at java.util.zip.ZipFile.<init>(ZipFile.java:75)
> >        at sun.tools.jar.Main.list(Main.java:979)
> >        at sun.tools.jar.Main.run(Main.java:224)
> >        at sun.tools.jar.Main.main(Main.java:1149)
> >
> > Not sure what's causing this?  Maybe I should specify a different maven
> > repository in my buildfile?  I'm using http://www.ibiblio.org/maven2/
> > now.
> >
> > Zak
> >
> > -----Original Message-----
> > Subject:        Re: ScalaTest failing
> > From:   Alex Boisvert (alex...@gmail.com)
> > Date:   Jun 25, 2010 4:55:20 pm
> > List:   org.apache.buildr.users
> >
> > I can't see anything wrong in the output.  Everything appears normal.
> >
> > You could check if your ant-1.8.0.jar is valid and contains
> > org/apache/tools/ant/DefaultLogger.class (or erase it so it gets
> > downloaded
> > again)
> >
> > e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar
> >
> > alex
> >
> > From: Sy, Zak
> > Sent: Friday, June 25, 2010 3:35 PM
> > To: users@buildr.apache.org
> > Subject: RE: ScalaTest failing
> >
> > Here is the result after running with an updated buildfile.
> >
> >
> > ~/projects/scala/hello $buildr
> > (in /Users/zaksy/projects/scala/hello, development)
> > "boot classpath
> > [#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
> > buildr/java/ant.rb:53>,
> > #<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> > uildr/java/tests.rb:45>,
> > #<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> > uildr/scala/compiler.rb:148>,
> > [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> > Building hello
> > Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
> > Compiling hello:test into
> > /Users/zaksy/projects/scala/hello/target/test/classes
> > "java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
> > \"org.apache.ant:ant-launcher:jar:1.8.0\",
> > \"org.apache.ant:ant-trax:jar:1.8.0\"],
> > [\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
> > [\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> > \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
> > [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> > /Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
> > dependencies instead.
> > "test classpath [<Rake::FileTask
> > /Users/zaksy/projects/scala/hello/target/test/classes =>
> > [hello:test:compile]>,
> > \"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> > \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
> > /Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
> > <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> > 1.jar => []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> > check-1.6.jar => []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
> > []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> > 5.1.jar => []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> > -1.1.jar => []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> > ibrary-1.1.jar => []>, <Buildr::Artifact
> > /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
> > Running tests in hello
> > ScalaTest "hello.tests.HelloSuite"
> > Test framework error: org/apache/tools/ant/DefaultLogger
> > The following tests failed:
> > hello.tests.HelloSuite
> > Buildr aborted!
> > RuntimeError : Tests failed!
> >
> > (See full trace by running task with --trace)
> >
> > -----Original Message-----
> > Subject:        Re: ScalaTest failing
> > From:   Alex Boisvert (alex...@gmail.com)
> > Date:   Jun 25, 2010 1:55:16 pm
> > List:   org.apache.buildr.users
> >
> > Weird.  I can't reproduce.
> >
> > Ant dependencies should be automatically loaded on RJB's classpath
> > during
> > bootstrapping (lib/buildr/java/ant.rb:53).
> >
> > Could you add the following lines in your Buildfile to help debug this?
> >
> > # after require 'buildr/scala'
> > p "boot classpath #{Java.classpath.inspect}"
> >
> > define "hello" do
> >  ...
> >
> >  task(:print_classpath) do |t|
> >    p "java classpath #{Java.classpath.inspect}"
> >    p "test classpath #{test.classpath.inspect}"
> >  end
> >  task(:test => :print_classpath)
> > end
> >
> > alex
> >
> > From: Sy, Zak
> > Sent: Friday, June 25, 2010 1:16 PM
> > To: users@buildr.apache.org
> > Subject: ScalaTest failing
> >
> > I just installed builder 1.4.0 via the script provided for easy install
> > for OS X and tried to build a very simple hello world scala project.  I
> > let buildr create the buildfile based on my directory structure and it
> > is very simple.  I only added the 'require buildr/scala' line per the
> > instructions to build scala projects.  Here is the entire file:
> >
> > # Generated by Buildr 1.4.0, change to your liking
> > # Version number for this release
> > VERSION_NUMBER = "1.0.0"
> > # Group identifier for your projects
> > GROUP = "hello"
> > COPYRIGHT = ""
> >
> > require 'buildr/scala'
> >
> > # Specify Maven 2.0 remote repositories here, like this:
> > repositories.remote << "http://www.ibiblio.org/maven2/"
> >
> > desc "The Hello project"
> > define "hello" do
> >  project.version = VERSION_NUMBER
> >  project.group = GROUP
> >  manifest["Implementation-Vendor"] = COPYRIGHT
> > end
> >
> > Anyway, the project and 1 scala test compile, but the project fails when
> > trying to execute the ScalaTest tests and I'm not really sure why.  I'm
> > new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
> >
> > Running tests in hello
> > mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
> > ScalaTest "hello.tests.HelloSuite"
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> > 1.jar (not_needed)
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> > check-1.6.jar (not_needed)
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
> > (not_needed)
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> > 5.1.jar (not_needed)
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> > -1.1.jar (not_needed)
> > ** Invoke
> > /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> > ibrary-1.1.jar (not_needed)
> > ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
> > (not_needed)
> > Test framework error: org/apache/tools/ant/DefaultLogger
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
> > `import'
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> > `new'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> > `ant'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
> > n `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> > n `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> > n `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
> > `run_tests'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> > `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 636:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 629:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 617:in `invoke'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> > in `local_task'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `[]'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `local_projects'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `local_projects'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> > in `local_task'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 636:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 629:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 617:in `invoke'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 502:in `standard_exception_handling'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 223:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 138:in `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 502:in `standard_exception_handling'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 135:in `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> > mkdir -p /Users/zaksy/projects/scala/hello/target
> > The following tests failed:
> > hello.tests.HelloSuite
> > ** Invoke hello:test:teardown (first_time)
> > ** Execute hello:test:teardown
> > Exception while invoking prerequisites of task <Rake::Task hello:build
> > => [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
> > Exception while invoking prerequisites of task <Rake::Task default =>
> > [build]>
> > Buildr aborted!
> > RuntimeError : Tests failed!
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
> > `run_tests'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> > `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 636:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 629:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 617:in `invoke'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> > in `local_task'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `[]'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `local_projects'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> > in `local_projects'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> > in `local_task'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 636:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 629:in `invoke_with_call_chain'
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> > monitor.rb:242:in `synchronize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 622:in `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 617:in `invoke'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 232:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 502:in `standard_exception_handling'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 223:in `top_level'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 138:in `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 502:in `standard_exception_handling'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> > 135:in `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> > ============================================
> > *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
> >
> > This message originates from Presbyterian Healthcare Services or one of
> its
> > affiliated organizations.
> > It contains information, which may be confidential or privileged, and is
> > intended only for the
> > individual or entity named above. It is prohibited for anyone else to
> > disclose, copy, distribute
> > or use the contents of this message. All personal messages express views
> > solely of the sender, which are
> > not to be attributed to Presbyterian Healthcare Services or any of its
> > affiliated organizations, and may not
> > be distributed without this disclaimer. If you received this message in
> > error, please notify us immediately
> > at postmaster@phs.org.
> >
> > If you would like more information about Presbyterian Healthcare Services
> > please visit our web site
> >
> > http://www.phs.org
> >
> > ============================================
> >
> >
>

Re: ScalaTest failing

Posted by Alex Boisvert <al...@gmail.com>.
Not good... out of curiosity, what's the size of the downloaded jar?   Could
you open an issue and attach it there?  I'm guessing there's a bug in the
download code somewhere.

alex


On Mon, Jun 28, 2010 at 8:57 AM, Sy, Zak <zs...@phs.org> wrote:

> I deleted the ant-1.8.0.jar and it was downloaded again when running
> buildr, but I still got the same error.  So, I went and checked the jar
> and got the following when running 'jar tvf ant-1.8.0.jar'
>
> java.util.zip.ZipException: error in opening zip file
>        at java.util.zip.ZipFile.open(Native Method)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
>        at java.util.zip.ZipFile.<init>(ZipFile.java:75)
>        at sun.tools.jar.Main.list(Main.java:979)
>        at sun.tools.jar.Main.run(Main.java:224)
>        at sun.tools.jar.Main.main(Main.java:1149)
>
> Not sure what's causing this?  Maybe I should specify a different maven
> repository in my buildfile?  I'm using http://www.ibiblio.org/maven2/
> now.
>
> Zak
>
> -----Original Message-----
> Subject:        Re: ScalaTest failing
> From:   Alex Boisvert (alex...@gmail.com)
> Date:   Jun 25, 2010 4:55:20 pm
> List:   org.apache.buildr.users
>
> I can't see anything wrong in the output.  Everything appears normal.
>
> You could check if your ant-1.8.0.jar is valid and contains
> org/apache/tools/ant/DefaultLogger.class (or erase it so it gets
> downloaded
> again)
>
> e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar
>
> alex
>
> From: Sy, Zak
> Sent: Friday, June 25, 2010 3:35 PM
> To: users@buildr.apache.org
> Subject: RE: ScalaTest failing
>
> Here is the result after running with an updated buildfile.
>
>
> ~/projects/scala/hello $buildr
> (in /Users/zaksy/projects/scala/hello, development)
> "boot classpath
> [#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
> buildr/java/ant.rb:53>,
> #<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> uildr/java/tests.rb:45>,
> #<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> uildr/scala/compiler.rb:148>,
> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> Building hello
> Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
> Compiling hello:test into
> /Users/zaksy/projects/scala/hello/target/test/classes
> "java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
> \"org.apache.ant:ant-launcher:jar:1.8.0\",
> \"org.apache.ant:ant-trax:jar:1.8.0\"],
> [\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
> [\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> /Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
> dependencies instead.
> "test classpath [<Rake::FileTask
> /Users/zaksy/projects/scala/hello/target/test/classes =>
> [hello:test:compile]>,
> \"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
> /Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
> <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> 1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> check-1.6.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
> []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> 5.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> -1.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> ibrary-1.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
> Running tests in hello
> ScalaTest "hello.tests.HelloSuite"
> Test framework error: org/apache/tools/ant/DefaultLogger
> The following tests failed:
> hello.tests.HelloSuite
> Buildr aborted!
> RuntimeError : Tests failed!
>
> (See full trace by running task with --trace)
>
> -----Original Message-----
> Subject:        Re: ScalaTest failing
> From:   Alex Boisvert (alex...@gmail.com)
> Date:   Jun 25, 2010 1:55:16 pm
> List:   org.apache.buildr.users
>
> Weird.  I can't reproduce.
>
> Ant dependencies should be automatically loaded on RJB's classpath
> during
> bootstrapping (lib/buildr/java/ant.rb:53).
>
> Could you add the following lines in your Buildfile to help debug this?
>
> # after require 'buildr/scala'
> p "boot classpath #{Java.classpath.inspect}"
>
> define "hello" do
>  ...
>
>  task(:print_classpath) do |t|
>    p "java classpath #{Java.classpath.inspect}"
>    p "test classpath #{test.classpath.inspect}"
>  end
>  task(:test => :print_classpath)
> end
>
> alex
>
> From: Sy, Zak
> Sent: Friday, June 25, 2010 1:16 PM
> To: users@buildr.apache.org
> Subject: ScalaTest failing
>
> I just installed builder 1.4.0 via the script provided for easy install
> for OS X and tried to build a very simple hello world scala project.  I
> let buildr create the buildfile based on my directory structure and it
> is very simple.  I only added the 'require buildr/scala' line per the
> instructions to build scala projects.  Here is the entire file:
>
> # Generated by Buildr 1.4.0, change to your liking
> # Version number for this release
> VERSION_NUMBER = "1.0.0"
> # Group identifier for your projects
> GROUP = "hello"
> COPYRIGHT = ""
>
> require 'buildr/scala'
>
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2/"
>
> desc "The Hello project"
> define "hello" do
>  project.version = VERSION_NUMBER
>  project.group = GROUP
>  manifest["Implementation-Vendor"] = COPYRIGHT
> end
>
> Anyway, the project and 1 scala test compile, but the project fails when
> trying to execute the ScalaTest tests and I'm not really sure why.  I'm
> new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
>
> Running tests in hello
> mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
> ScalaTest "hello.tests.HelloSuite"
> ** Invoke
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> 1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> check-1.6.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> 5.1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> -1.1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> ibrary-1.1.jar (not_needed)
> ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
> (not_needed)
> Test framework error: org/apache/tools/ant/DefaultLogger
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
> `import'
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `new'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `ant'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
> n `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> n `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> n `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 223:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 138:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 135:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> mkdir -p /Users/zaksy/projects/scala/hello/target
> The following tests failed:
> hello.tests.HelloSuite
> ** Invoke hello:test:teardown (first_time)
> ** Execute hello:test:teardown
> Exception while invoking prerequisites of task <Rake::Task hello:build
> => [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
> Exception while invoking prerequisites of task <Rake::Task default =>
> [build]>
> Buildr aborted!
> RuntimeError : Tests failed!
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 223:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 138:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 135:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> ============================================
> *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
>
> This message originates from Presbyterian Healthcare Services or one of its
> affiliated organizations.
> It contains information, which may be confidential or privileged, and is
> intended only for the
> individual or entity named above. It is prohibited for anyone else to
> disclose, copy, distribute
> or use the contents of this message. All personal messages express views
> solely of the sender, which are
> not to be attributed to Presbyterian Healthcare Services or any of its
> affiliated organizations, and may not
> be distributed without this disclaimer. If you received this message in
> error, please notify us immediately
> at postmaster@phs.org.
>
> If you would like more information about Presbyterian Healthcare Services
> please visit our web site
>
> http://www.phs.org
>
> ============================================
>
>

RE: ScalaTest failing

Posted by "Sy, Zak" <zs...@phs.org>.
I deleted the ant-1.8.0.jar and it was downloaded again when running
buildr, but I still got the same error.  So, I went and checked the jar
and got the following when running 'jar tvf ant-1.8.0.jar'

java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:114)
	at java.util.zip.ZipFile.<init>(ZipFile.java:75)
	at sun.tools.jar.Main.list(Main.java:979)
	at sun.tools.jar.Main.run(Main.java:224)
	at sun.tools.jar.Main.main(Main.java:1149)

Not sure what's causing this?  Maybe I should specify a different maven
repository in my buildfile?  I'm using http://www.ibiblio.org/maven2/
now.

Zak

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 25, 2010 4:55:20 pm
List:	org.apache.buildr.users

I can't see anything wrong in the output.  Everything appears normal.

You could check if your ant-1.8.0.jar is valid and contains
org/apache/tools/ant/DefaultLogger.class (or erase it so it gets
downloaded
again)

e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar

alex

From: Sy, Zak 
Sent: Friday, June 25, 2010 3:35 PM
To: users@buildr.apache.org
Subject: RE: ScalaTest failing

Here is the result after running with an updated buildfile.


~/projects/scala/hello $buildr
(in /Users/zaksy/projects/scala/hello, development)
"boot classpath
[#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
buildr/java/ant.rb:53>,
#<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/java/tests.rb:45>,
#<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/scala/compiler.rb:148>,
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
Building hello
Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
Compiling hello:test into
/Users/zaksy/projects/scala/hello/target/test/classes
"java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
\"org.apache.ant:ant-launcher:jar:1.8.0\",
\"org.apache.ant:ant-trax:jar:1.8.0\"],
[\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
[\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
/Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
dependencies instead.
"test classpath [<Rake::FileTask
/Users/zaksy/projects/scala/hello/target/test/classes =>
[hello:test:compile]>,
\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
/Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
<Buildr::Artifact
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
[]>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
Running tests in hello
ScalaTest "hello.tests.HelloSuite"
Test framework error: org/apache/tools/ant/DefaultLogger
The following tests failed:
hello.tests.HelloSuite
Buildr aborted!
RuntimeError : Tests failed!

(See full trace by running task with --trace)

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 25, 2010 1:55:16 pm
List:	org.apache.buildr.users

Weird.  I can't reproduce.

Ant dependencies should be automatically loaded on RJB's classpath
during
bootstrapping (lib/buildr/java/ant.rb:53).

Could you add the following lines in your Buildfile to help debug this?

# after require 'buildr/scala'
p "boot classpath #{Java.classpath.inspect}"

define "hello" do
  ...

  task(:print_classpath) do |t|
    p "java classpath #{Java.classpath.inspect}"
    p "test classpath #{test.classpath.inspect}"
  end
  task(:test => :print_classpath)
end

alex

From: Sy, Zak 
Sent: Friday, June 25, 2010 1:16 PM
To: users@buildr.apache.org
Subject: ScalaTest failing

I just installed builder 1.4.0 via the script provided for easy install
for OS X and tried to build a very simple hello world scala project.  I
let buildr create the buildfile based on my directory structure and it
is very simple.  I only added the 'require buildr/scala' line per the
instructions to build scala projects.  Here is the entire file:

# Generated by Buildr 1.4.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "hello"
COPYRIGHT = ""

require 'buildr/scala'

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"

desc "The Hello project"
define "hello" do
  project.version = VERSION_NUMBER 
  project.group = GROUP 
  manifest["Implementation-Vendor"] = COPYRIGHT
end

Anyway, the project and 1 scala test compile, but the project fails when
trying to execute the ScalaTest tests and I'm not really sure why.  I'm
new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?

Running tests in hello
mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
ScalaTest "hello.tests.HelloSuite"
** Invoke
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
(not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
(not_needed)
Test framework error: org/apache/tools/ant/DefaultLogger
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
`import'
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
`initialize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`new'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`ant'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
mkdir -p /Users/zaksy/projects/scala/hello/target
The following tests failed:
hello.tests.HelloSuite
** Invoke hello:test:teardown (first_time)
** Execute hello:test:teardown
Exception while invoking prerequisites of task <Rake::Task hello:build
=> [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
Exception while invoking prerequisites of task <Rake::Task default =>
[build]>
Buildr aborted!
RuntimeError : Tests failed!
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
============================================
*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its affiliated organizations.
It contains information, which may be confidential or privileged, and is intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute
or use the contents of this message. All personal messages express views solely of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, please notify us immediately
at postmaster@phs.org. 

If you would like more information about Presbyterian Healthcare Services please visit our web site

http://www.phs.org

============================================


Re: ScalaTest failing

Posted by Alex Boisvert <al...@gmail.com>.
I can't see anything wrong in the output.  Everything appears normal.

You could check if your ant-1.8.0.jar is valid and contains
org/apache/tools/ant/DefaultLogger.class (or erase it so it gets downloaded
again)

e.g. $HOME/.m2/repository/org/apache/ant/ant/1.8.0/ant-1.8.0.jar

alex

On Fri, Jun 25, 2010 at 2:35 PM, Sy, Zak <zs...@phs.org> wrote:

> Here is the result after running with an updated buildfile.
>
>
> ~/projects/scala/hello $buildr
> (in /Users/zaksy/projects/scala/hello, development)
> "boot classpath
> [#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
> buildr/java/ant.rb:53>,
> #<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> uildr/java/tests.rb:45>,
> #<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
> uildr/scala/compiler.rb:148>,
> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> Building hello
> Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
> Compiling hello:test into
> /Users/zaksy/projects/scala/hello/target/test/classes
> "java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
> \"org.apache.ant:ant-launcher:jar:1.8.0\",
> \"org.apache.ant:ant-trax:jar:1.8.0\"],
> [\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
> [\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
> [\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
> /Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
> dependencies instead.
> "test classpath [<Rake::FileTask
> /Users/zaksy/projects/scala/hello/target/test/classes =>
> [hello:test:compile]>,
> \"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
> \"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
> /Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
> <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> 1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> check-1.6.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
> []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> 5.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> -1.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> ibrary-1.1.jar => []>, <Buildr::Artifact
> /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
> Running tests in hello
> ScalaTest "hello.tests.HelloSuite"
> Test framework error: org/apache/tools/ant/DefaultLogger
> The following tests failed:
> hello.tests.HelloSuite
> Buildr aborted!
> RuntimeError : Tests failed!
>
> (See full trace by running task with --trace)
>
> -----Original Message-----
> Subject:        Re: ScalaTest failing
> From:   Alex Boisvert (alex...@gmail.com)
> Date:   Jun 25, 2010 1:55:16 pm
> List:   org.apache.buildr.users
>
> Weird.  I can't reproduce.
>
> Ant dependencies should be automatically loaded on RJB's classpath
> during
> bootstrapping (lib/buildr/java/ant.rb:53).
>
> Could you add the following lines in your Buildfile to help debug this?
>
> # after require 'buildr/scala'
> p "boot classpath #{Java.classpath.inspect}"
>
> define "hello" do
>  ...
>
>  task(:print_classpath) do |t|
>    p "java classpath #{Java.classpath.inspect}"
>    p "test classpath #{test.classpath.inspect}"
>  end
>  task(:test => :print_classpath)
> end
>
> alex
>
> From: Sy, Zak
> Sent: Friday, June 25, 2010 1:16 PM
> To: users@buildr.apache.org
> Subject: ScalaTest failing
>
> I just installed builder 1.4.0 via the script provided for easy install
> for OS X and tried to build a very simple hello world scala project.  I
> let buildr create the buildfile based on my directory structure and it
> is very simple.  I only added the 'require buildr/scala' line per the
> instructions to build scala projects.  Here is the entire file:
>
> # Generated by Buildr 1.4.0, change to your liking
> # Version number for this release
> VERSION_NUMBER = "1.0.0"
> # Group identifier for your projects
> GROUP = "hello"
> COPYRIGHT = ""
>
> require 'buildr/scala'
>
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2/"
>
> desc "The Hello project"
> define "hello" do
>  project.version = VERSION_NUMBER
>  project.group = GROUP
>  manifest["Implementation-Vendor"] = COPYRIGHT
> end
>
> Anyway, the project and 1 scala test compile, but the project fails when
> trying to execute the ScalaTest tests and I'm not really sure why.  I'm
> new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
>
> Running tests in hello
> mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
> ScalaTest "hello.tests.HelloSuite"
> ** Invoke
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
> 1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
> check-1.6.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
> 5.1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
> -1.1.jar (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
> ibrary-1.1.jar (not_needed)
> ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
> (not_needed)
> Test framework error: org/apache/tools/ant/DefaultLogger
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
> `import'
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `new'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `ant'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
> n `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> n `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
> n `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 223:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 138:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 135:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> mkdir -p /Users/zaksy/projects/scala/hello/target
> The following tests failed:
> hello.tests.HelloSuite
> ** Invoke hello:test:teardown (first_time)
> ** Execute hello:test:teardown
> Exception while invoking prerequisites of task <Rake::Task hello:build
> => [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
> Exception while invoking prerequisites of task <Rake::Task default =>
> [build]>
> Buildr aborted!
> RuntimeError : Tests failed!
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
> in `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
> in `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 636:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 629:in `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
> monitor.rb:242:in `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 622:in `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 617:in `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 232:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 223:in `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 138:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 502:in `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
> 135:in `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> ============================================
> *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
>
> This message originates from Presbyterian Healthcare Services or one of its
> affiliated organizations.
> It contains information, which may be confidential or privileged, and is
> intended only for the
> individual or entity named above. It is prohibited for anyone else to
> disclose, copy, distribute
> or use the contents of this message. All personal messages express views
> solely of the sender, which are
> not to be attributed to Presbyterian Healthcare Services or any of its
> affiliated organizations, and may not
> be distributed without this disclaimer. If you received this message in
> error, please notify us immediately
> at postmaster@phs.org.
>
> If you would like more information about Presbyterian Healthcare Services
> please visit our web site
>
> http://www.phs.org
>
> ============================================
>
>

RE: ScalaTest failing

Posted by "Sy, Zak" <zs...@phs.org>.
Here is the result after running with an updated buildfile.


~/projects/scala/hello $buildr
(in /Users/zaksy/projects/scala/hello, development)
"boot classpath
[#<Proc:0x00000001016015d8@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/
buildr/java/ant.rb:53>,
#<Proc:0x00000001016184e0@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/java/tests.rb:45>,
#<Proc:0x0000000101056e08@/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/b
uildr/scala/compiler.rb:148>,
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
Building hello
Compiling hello into /Users/zaksy/projects/scala/hello/target/classes
Compiling hello:test into
/Users/zaksy/projects/scala/hello/target/test/classes
"java.classpath [[\"org.apache.ant:ant:jar:1.8.0\",
\"org.apache.ant:ant-launcher:jar:1.8.0\",
\"org.apache.ant:ant-trax:jar:1.8.0\"],
[\"/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java\"],
[\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\"],
[\"org.scala-tools:vscaladoc:jar:1.2-SNAPSHOT\"]]"
/Users/zaksy/projects/scala/hello/buildfile:24: Deprecated: Use
dependencies instead.
"test classpath [<Rake::FileTask
/Users/zaksy/projects/scala/hello/target/test/classes =>
[hello:test:compile]>,
\"/usr/local/scala-2.7.7.final/lib/scala-library.jar\",
\"/usr/local/scala-2.7.7.final/lib/scala-compiler.jar\", <Rake::FileTask
/Users/zaksy/projects/scala/hello/target/classes => [hello:compile]>,
<Buildr::Artifact
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar =>
[]>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar => []>, <Buildr::Artifact
/Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar => []>]"
Running tests in hello
ScalaTest "hello.tests.HelloSuite"
Test framework error: org/apache/tools/ant/DefaultLogger
The following tests failed:
hello.tests.HelloSuite
Buildr aborted!
RuntimeError : Tests failed!

(See full trace by running task with --trace)

-----Original Message-----
Subject:	Re: ScalaTest failing	
From:	Alex Boisvert (alex...@gmail.com)
Date:	Jun 25, 2010 1:55:16 pm
List:	org.apache.buildr.users

Weird.  I can't reproduce.

Ant dependencies should be automatically loaded on RJB's classpath
during
bootstrapping (lib/buildr/java/ant.rb:53).

Could you add the following lines in your Buildfile to help debug this?

# after require 'buildr/scala'
p "boot classpath #{Java.classpath.inspect}"

define "hello" do
  ...

  task(:print_classpath) do |t|
    p "java classpath #{Java.classpath.inspect}"
    p "test classpath #{test.classpath.inspect}"
  end
  task(:test => :print_classpath)
end

alex

From: Sy, Zak 
Sent: Friday, June 25, 2010 1:16 PM
To: users@buildr.apache.org
Subject: ScalaTest failing

I just installed builder 1.4.0 via the script provided for easy install
for OS X and tried to build a very simple hello world scala project.  I
let buildr create the buildfile based on my directory structure and it
is very simple.  I only added the 'require buildr/scala' line per the
instructions to build scala projects.  Here is the entire file:

# Generated by Buildr 1.4.0, change to your liking
# Version number for this release
VERSION_NUMBER = "1.0.0"
# Group identifier for your projects
GROUP = "hello"
COPYRIGHT = ""

require 'buildr/scala'

# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"

desc "The Hello project"
define "hello" do
  project.version = VERSION_NUMBER 
  project.group = GROUP 
  manifest["Implementation-Vendor"] = COPYRIGHT
end

Anyway, the project and 1 scala test compile, but the project fails when
trying to execute the ScalaTest tests and I'm not really sure why.  I'm
new to Ruby, Rake, buildr, etc. so maybe the trace is obvious?

Running tests in hello
mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
ScalaTest "hello.tests.HelloSuite"
** Invoke
/Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.
1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scala
check-1.6.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
(not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.
5.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core
-1.1.jar (not_needed)
** Invoke
/Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-l
ibrary-1.1.jar (not_needed)
** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
(not_needed)
Test framework error: org/apache/tools/ant/DefaultLogger
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
`import'
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
/Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
`initialize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`new'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
`ant'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:i
n `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
mkdir -p /Users/zaksy/projects/scala/hello/target
The following tests failed:
hello.tests.HelloSuite
** Invoke hello:test:teardown (first_time)
** Execute hello:test:teardown
Exception while invoking prerequisites of task <Rake::Task hello:build
=> [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
Exception while invoking prerequisites of task <Rake::Task default =>
[build]>
Buildr aborted!
RuntimeError : Tests failed!
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
`run_tests'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
`execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:
in `local_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `[]'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:
in `local_projects'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:
in `local_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
636:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
629:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
622:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
617:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `each'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
232:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
223:in `top_level'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
138:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
502:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:
135:in `run'
/Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
/usr/bin/buildr:19:in `load'
/usr/bin/buildr:19
============================================
*-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*

This message originates from Presbyterian Healthcare Services or one of its affiliated organizations.
It contains information, which may be confidential or privileged, and is intended only for the
individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute
or use the contents of this message. All personal messages express views solely of the sender, which are
not to be attributed to Presbyterian Healthcare Services or any of its affiliated organizations, and may not
be distributed without this disclaimer. If you received this message in error, please notify us immediately
at postmaster@phs.org. 

If you would like more information about Presbyterian Healthcare Services please visit our web site

http://www.phs.org

============================================


Re: ScalaTest failing

Posted by Alex Boisvert <al...@gmail.com>.
Weird.  I can't reproduce.

Ant dependencies should be automatically loaded on RJB's classpath during
bootstrapping (lib/buildr/java/ant.rb:53).

Could you add the following lines in your Buildfile to help debug this?

# after require 'buildr/scala'
p "boot classpath #{Java.classpath.inspect}"

define "hello" do
  ...

  task(:print_classpath) do |t|
    p "java classpath #{Java.classpath.inspect}"
    p "test classpath #{test.classpath.inspect}"
  end
  task(:test => :print_classpath)
end


alex


On Fri, Jun 25, 2010 at 1:29 PM, Antoine Toulme <an...@lunar-ocean.com>wrote:

> Looks like ScalaTest depends on Junit which depends on ant, which is not
> added to the classpath for some reason ?
>
> Can you file a bug here http://issues.apache.org/jira/browse/BUILDR ?
>
> Thanks,
>
> Antoine
>
> On Fri, Jun 25, 2010 at 12:16, Sy, Zak <zs...@phs.org> wrote:
>
> > I just installed builder 1.4.0 via the script provided for easy install
> for
> > OS X and tried to build a very simple hello world scala project.  I let
> > buildr create the buildfile based on my directory structure and it is
> very
> > simple.  I only added the 'require buildr/scala' line per the
> instructions
> > to build scala projects.  Here is the entire file:
> >
> > # Generated by Buildr 1.4.0, change to your liking
> > # Version number for this release
> > VERSION_NUMBER = "1.0.0"
> > # Group identifier for your projects
> > GROUP = "hello"
> > COPYRIGHT = ""
> >
> > require 'buildr/scala'
> >
> > # Specify Maven 2.0 remote repositories here, like this:
> > repositories.remote << "http://www.ibiblio.org/maven2/"
> >
> > desc "The Hello project"
> > define "hello" do
> >  project.version = VERSION_NUMBER
> >  project.group = GROUP
> >  manifest["Implementation-Vendor"] = COPYRIGHT
> > end
> >
> > Anyway, the project and 1 scala test compile, but the project fails when
> > trying to execute the ScalaTest tests and I'm not really sure why.  I'm
> new
> > to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
> >
> > Running tests in hello
> > mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
> > ScalaTest "hello.tests.HelloSuite"
> > ** Invoke
> >
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.1.jar
> > (not_needed)
> > ** Invoke
> >
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scalacheck-1.6.jar
> > (not_needed)
> > ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
> > (not_needed)
> > ** Invoke
> >
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.5.1.jar
> > (not_needed)
> > ** Invoke
> >
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
> > (not_needed)
> > ** Invoke
> >
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar
> > (not_needed)
> > ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
> > (not_needed)
> > Test framework error: org/apache/tools/ant/DefaultLogger
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in
> `import'
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
> > /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `new'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in
> `ant'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:in
> > `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in
> > `each'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in
> > `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
> > `run_tests'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> > `execute'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> > `invoke'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in
> > `local_task'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `[]'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `local_projects'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `each'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `local_projects'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in
> > `local_task'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> > `invoke'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `each'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> > `standard_exception_handling'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in
> > `run'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> > `standard_exception_handling'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in
> > `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> > mkdir -p /Users/zaksy/projects/scala/hello/target
> > The following tests failed:
> > hello.tests.HelloSuite
> > ** Invoke hello:test:teardown (first_time)
> > ** Execute hello:test:teardown
> > Exception while invoking prerequisites of task <Rake::Task hello:build =>
> > [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
> > Exception while invoking prerequisites of task <Rake::Task default =>
> > [build]>
> > Buildr aborted!
> > RuntimeError : Tests failed!
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
> > `run_tests'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> > `initialize'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> > `execute'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> > `invoke'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in
> > `local_task'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `[]'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `local_projects'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `each'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> > `local_projects'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in
> > `local_task'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> > `invoke_prerequisites'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> > `invoke_prerequisites'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> > `invoke_with_call_chain'
> >
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> > `synchronize'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> > `invoke_with_call_chain'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> > `invoke'
> > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `each'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> > `standard_exception_handling'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in
> > `top_level'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in
> > `run'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> > `standard_exception_handling'
> >
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in
> > `run'
> > /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> > /usr/bin/buildr:19:in `load'
> > /usr/bin/buildr:19
> > ============================================
> > *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
> >
> > This message originates from Presbyterian Healthcare Services or one of
> its
> > affiliated organizations.
> > It contains information, which may be confidential or privileged, and is
> > intended only for the
> > individual or entity named above. It is prohibited for anyone else to
> > disclose, copy, distribute
> > or use the contents of this message. All personal messages express views
> > solely of the sender, which are
> > not to be attributed to Presbyterian Healthcare Services or any of its
> > affiliated organizations, and may not
> > be distributed without this disclaimer. If you received this message in
> > error, please notify us immediately
> > at postmaster@phs.org.
> >
> > If you would like more information about Presbyterian Healthcare Services
> > please visit our web site
> >
> > http://www.phs.org
> >
> > ============================================
> >
> >
>

Re: ScalaTest failing

Posted by Antoine Toulme <an...@lunar-ocean.com>.
Looks like ScalaTest depends on Junit which depends on ant, which is not
added to the classpath for some reason ?

Can you file a bug here http://issues.apache.org/jira/browse/BUILDR ?

Thanks,

Antoine

On Fri, Jun 25, 2010 at 12:16, Sy, Zak <zs...@phs.org> wrote:

> I just installed builder 1.4.0 via the script provided for easy install for
> OS X and tried to build a very simple hello world scala project.  I let
> buildr create the buildfile based on my directory structure and it is very
> simple.  I only added the 'require buildr/scala' line per the instructions
> to build scala projects.  Here is the entire file:
>
> # Generated by Buildr 1.4.0, change to your liking
> # Version number for this release
> VERSION_NUMBER = "1.0.0"
> # Group identifier for your projects
> GROUP = "hello"
> COPYRIGHT = ""
>
> require 'buildr/scala'
>
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2/"
>
> desc "The Hello project"
> define "hello" do
>  project.version = VERSION_NUMBER
>  project.group = GROUP
>  manifest["Implementation-Vendor"] = COPYRIGHT
> end
>
> Anyway, the project and 1 scala test compile, but the project fails when
> trying to execute the ScalaTest tests and I'm not really sure why.  I'm new
> to Ruby, Rake, buildr, etc. so maybe the trace is obvious?
>
> Running tests in hello
> mkdir -p /Users/zaksy/projects/scala/hello/reports/scalatest
> ScalaTest "hello.tests.HelloSuite"
> ** Invoke
> /Users/zaksy/.m2/repository/org/scalatest/scalatest/1.0.1/scalatest-1.0.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/scala-tools/testing/scalacheck/1.6/scalacheck-1.6.jar
> (not_needed)
> ** Invoke /Users/zaksy/.m2/repository/org/jmock/jmock/2.5.1/jmock-2.5.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/jmock/jmock-junit4/2.5.1/jmock-junit4-2.5.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
> (not_needed)
> ** Invoke
> /Users/zaksy/.m2/repository/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar
> (not_needed)
> ** Invoke /Users/zaksy/.m2/repository/junit/junit/4.7/junit-4.7.jar
> (not_needed)
> Test framework error: org/apache/tools/ant/DefaultLogger
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16:in `import'
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/rjb_modules.rb:16
> /Library/Ruby/Gems/1.8/gems/Antwrap-0.7.0/lib/ant_project.rb:85:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in `new'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/java/ant.rb:74:in `ant'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:110:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in
> `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/scala/tests.rb:104:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:480:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in
> `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in
> `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> mkdir -p /Users/zaksy/projects/scala/hello/target
> The following tests failed:
> hello.tests.HelloSuite
> ** Invoke hello:test:teardown (first_time)
> ** Execute hello:test:teardown
> Exception while invoking prerequisites of task <Rake::Task hello:build =>
> [/Users/zaksy/projects/scala/hello/target/classes, hello:test]>
> Exception while invoking prerequisites of task <Rake::Task default =>
> [build]>
> Buildr aborted!
> RuntimeError : Tests failed!
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:490:in
> `run_tests'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:211:in
> `initialize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/test.rb:239:in
> `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> `invoke'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:325:in
> `local_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `[]'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:350:in
> `local_projects'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/project.rb:323:in
> `local_task'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:636:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
> `invoke_prerequisites'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:629:in
> `invoke_with_call_chain'
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:622:in
> `invoke_with_call_chain'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:617:in
> `invoke'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `each'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:232:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:223:in
> `top_level'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:138:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:502:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/lib/buildr/core/application.rb:135:in
> `run'
> /Library/Ruby/Gems/1.8/gems/buildr-1.4.0/bin/buildr:19
> /usr/bin/buildr:19:in `load'
> /usr/bin/buildr:19
> ============================================
> *-*-*- PRESBYTERIAN_HEALTHCARE_SERVICES_DISCLAIMER -*-*-*
>
> This message originates from Presbyterian Healthcare Services or one of its
> affiliated organizations.
> It contains information, which may be confidential or privileged, and is
> intended only for the
> individual or entity named above. It is prohibited for anyone else to
> disclose, copy, distribute
> or use the contents of this message. All personal messages express views
> solely of the sender, which are
> not to be attributed to Presbyterian Healthcare Services or any of its
> affiliated organizations, and may not
> be distributed without this disclaimer. If you received this message in
> error, please notify us immediately
> at postmaster@phs.org.
>
> If you would like more information about Presbyterian Healthcare Services
> please visit our web site
>
> http://www.phs.org
>
> ============================================
>
>