Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 36330 invoked from network); 28 Jun 2010 16:14:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 16:14:40 -0000 Received: (qmail 50511 invoked by uid 500); 28 Jun 2010 16:14:40 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 50441 invoked by uid 500); 28 Jun 2010 16:14:39 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Delivered-To: moderator for users@buildr.apache.org Received: (qmail 22256 invoked by uid 99); 28 Jun 2010 15:57:42 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zsy@phs.org designates 206.169.131.31 as permitted sender) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: ScalaTest failing Date: Mon, 28 Jun 2010 09:57:12 -0600 Message-ID: <44DDF7D86EFC334283DAA1CC17832D8A07591A11@EVS2.phs.org> In-Reply-To: <44DDF7D86EFC334283DAA1CC17832D8A07591A0E@EVS2.phs.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ScalaTest failing Thread-Index: AcsUmt3KmR9TVYZUSS6cLhEDGOnwtwAEtE4wAIriroA= References: <44DDF7D86EFC334283DAA1CC17832D8A04CF617F@EVS2.phs.org> <44DDF7D86EFC334283DAA1CC17832D8A07591A0E@EVS2.phs.org> From: "Sy, Zak" To: X-OriginalArrivalTime: 28 Jun 2010 15:57:13.0011 (UTC) FILETIME=[92B38030:01CB16DA] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.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.(ZipFile.java:114) at java.util.zip.ZipFile.(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=09 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=20 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 [#, #, #, [\"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 [ [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\", [hello:compile]>, []>, []>, []>, []>, []>, []>, []>]" 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=09 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 =3D> :print_classpath) end alex From: Sy, Zak=20 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 =3D "1.0.0" # Group identifier for your projects GROUP =3D "hello" COPYRIGHT =3D "" 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 =3D VERSION_NUMBER=20 project.group =3D GROUP=20 manifest["Implementation-Vendor"] =3D 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 [/Users/zaksy/projects/scala/hello/target/classes, hello:test]> Exception while invoking prerequisites of task [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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D *-*-*- 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 in= tended only for the individual or entity named above. It is prohibited for anyone else to discl= ose, copy, distribute or use the contents of this message. All personal messages express views so= lely of the sender, which are not to be attributed to Presbyterian Healthcare Services or any of its affi= liated organizations, and may not be distributed without this disclaimer. If you received this message in err= or, please notify us immediately at postmaster@phs.org.=20 If you would like more information about Presbyterian Healthcare Services p= lease visit our web site http://www.phs.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D