buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sy, Zak" <...@phs.org>
Subject RE: ScalaTest failing
Date Fri, 25 Jun 2010 21:18:04 GMT
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

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


Mime
View raw message