Return-Path: Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: (qmail 49055 invoked from network); 1 Mar 2010 09:10:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 09:10:33 -0000 Received: (qmail 53594 invoked by uid 500); 28 Feb 2010 04:43:54 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 53563 invoked by uid 500); 28 Feb 2010 04:43:54 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 53556 invoked by uid 99); 28 Feb 2010 04:43:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 04:43:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 04:43:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2D974238889B; Sun, 28 Feb 2010 04:43:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r917128 - in /buildr/trunk: CHANGELOG lib/buildr/java/commands.rb spec/java/commands_spec.rb Date: Sun, 28 Feb 2010 04:43:31 -0000 To: commits@buildr.apache.org From: boisvert@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100228044331.2D974238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: boisvert Date: Sun Feb 28 04:43:30 2010 New Revision: 917128 URL: http://svn.apache.org/viewvc?rev=917128&view=rev Log: BUILDR-336 Java::Commands.java Prints Command Without --trace (Antoine Toulme) Added: buildr/trunk/spec/java/commands_spec.rb Modified: buildr/trunk/CHANGELOG buildr/trunk/lib/buildr/java/commands.rb Modified: buildr/trunk/CHANGELOG URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=917128&r1=917127&r2=917128&view=diff ============================================================================== --- buildr/trunk/CHANGELOG (original) +++ buildr/trunk/CHANGELOG Sun Feb 28 04:43:30 2010 @@ -28,12 +28,13 @@ * Change: Load buildr.rb from $HOME/.buildr instead of $HOME ($HOME/buildr.rb is still loaded with deprecation warning) * Fixed: BUILDR-223 Release Task: customizable commit message (Alexis Midon) +* Fixed: BUILDR-327 Specifying :plugin eclipse nature explicitly fails * Fixed: BUILDR-330 Install task should re-install artifact even if they already exist (Alexis Midon) * Fixed: BUILDR-334 Eclipse .classpath files use absolute paths for library entries (Stefan Wasilewski) -* Fixed: BUILDR-327 Specifying :plugin eclipse nature explicitly fails -* Fixed: buildr test=all didn't run all tests as expected +* Fixed: BUILDR-336 Java::Commands.java Prints Command Without --trace + (Antoine Toulme) * Fixed: BUILDR-344 Buildr::TestFramework::TestResult::YamlFormatter uses deprecated form of example_pending (Rhett Sutphin) * Fixed: BUILDR-345 Improve project documentation (Peter Schröder) @@ -62,6 +63,7 @@ task_dependency if artifact exists * Fixed: BUILDR-384 Buildr fails with rubygems 1.3.6 * Fixed: BUILDR-386 Display JRuby version in buildr -V (Antoine Toulme) +* Fixed: buildr test=all didn't run all tests as expected * Fixed: Fail-fast if package.with() or include() called with nil values * Fixed: Failures not reported correctly for ScalaTest (Alex Eagle) * Fixed: Test dependencies should include test compile dependencies Modified: buildr/trunk/lib/buildr/java/commands.rb URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/commands.rb?rev=917128&r1=917127&r2=917128&view=diff ============================================================================== --- buildr/trunk/lib/buildr/java/commands.rb (original) +++ buildr/trunk/lib/buildr/java/commands.rb Sun Feb 28 04:43:30 2010 @@ -57,7 +57,7 @@ cmd_args += (options[:java_args] || (ENV['JAVA_OPTS'] || ENV['JAVA_OPTIONS']).to_s.split).flatten cmd_args += args.flatten.compact unless Buildr.application.options.dryrun - info "Running #{name}" if name + info "Running #{name}" if name && options[:verbose] block = lambda { |ok, res| fail "Failed to execute #{name}, see errors above" unless ok } unless block cmd_args = cmd_args.map(&:inspect).join(' ') if Util.win_os? sh(*cmd_args) do |ok, ps| Added: buildr/trunk/spec/java/commands_spec.rb URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/commands_spec.rb?rev=917128&view=auto ============================================================================== --- buildr/trunk/spec/java/commands_spec.rb (added) +++ buildr/trunk/spec/java/commands_spec.rb Sun Feb 28 04:43:30 2010 @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with this +# work for additional information regarding copyright ownership. The ASF +# licenses this file to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. + +require File.join(File.dirname(__FILE__), '../spec_helpers') + + +describe Java::Commands do + + it "should not be verbose by default" do + write "build.xml", <<-BUILD + + + simple example build file + + + +BUILD + lambda { Java::Commands.java("org.apache.tools.ant.Main", :classpath => Buildr::Ant.dependencies) }.should_not show_info(/java/) + lambda { Java::Commands.java("org.apache.tools.ant.Main", :classpath => Buildr::Ant.dependencies, :verbose => true) }.should show_info(/java/) + end + +end \ No newline at end of file