You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2010/04/03 07:22:54 UTC
svn commit: r930478 - in /buildr/trunk: lib/buildr/java/compiler.rb
spec/java/compiler_spec.rb
Author: toulmean
Date: Sat Apr 3 05:22:54 2010
New Revision: 930478
URL: http://svn.apache.org/viewvc?rev=930478&view=rev
Log:
fix for BUILDR-401
Modified:
buildr/trunk/lib/buildr/java/compiler.rb
buildr/trunk/spec/java/compiler_spec.rb
Modified: buildr/trunk/lib/buildr/java/compiler.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/compiler.rb?rev=930478&r1=930477&r2=930478&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/compiler.rb (original)
+++ buildr/trunk/lib/buildr/java/compiler.rb Sat Apr 3 05:22:54 2010
@@ -47,7 +47,7 @@ module Buildr
def initialize(project, options) #:nodoc:
super
options[:debug] = Buildr.options.debug if options[:debug].nil?
- options[:warnings] = verbose if options[:warnings].nil?
+ options[:warnings] ||= false
options[:deprecation] ||= false
options[:lint] ||= false
end
Modified: buildr/trunk/spec/java/compiler_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/compiler_spec.rb?rev=930478&r1=930477&r2=930478&view=diff
==============================================================================
--- buildr/trunk/spec/java/compiler_spec.rb (original)
+++ buildr/trunk/spec/java/compiler_spec.rb Sat Apr 3 05:22:54 2010
@@ -103,9 +103,9 @@ describe 'javac compiler options' do
compile_task.options.warnings.should be_false
end
- it 'should set wranings option to true when running with --verbose option' do
+ it 'should set wranings option to false when running with --verbose option' do
verbose true
- compile_task.options.warnings.should be_true
+ compile_task.options.warnings.should be_false
end
it 'should use -nowarn argument when warnings is false' do