Repository: buildr
Updated Branches:
  refs/heads/master 5ee78600f -> 7b12cddad


Simplify expression


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/7b12cdda
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/7b12cdda
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/7b12cdda

Branch: refs/heads/master
Commit: 7b12cddad4d960af524d57f20b4eeea22a88daf6
Parents: 5ee7860
Author: Peter Donald <[email protected]>
Authored: Sat Jun 6 10:57:51 2015 +1000
Committer: Peter Donald <[email protected]>
Committed: Sat Jun 6 10:57:51 2015 +1000

----------------------------------------------------------------------
 lib/buildr/java/tests.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/7b12cdda/lib/buildr/java/tests.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/java/tests.rb b/lib/buildr/java/tests.rb
index bb83fb6..3df7951 100644
--- a/lib/buildr/java/tests.rb
+++ b/lib/buildr/java/tests.rb
@@ -245,7 +245,7 @@ module Buildr #:nodoc:
         taskdef.invoke
         ant.taskdef :name=>'junit', 
:classname=>'org.apache.tools.ant.taskdefs.optional.junit.JUnitTask', 
:classpath=>taskdef.to_s
 
-        ant.junit forking.merge(:clonevm=>options[:clonevm] || false, 
:dir=>task.send(:project).path_to) do
+        ant.junit forking.merge(:clonevm=> !!options[:clonevm], 
:dir=>task.send(:project).path_to) do
           ant.classpath :path=>dependencies.join(File::PATH_SEPARATOR)
           (options[:properties] || []).each { |key, value| ant.sysproperty 
:key=>key, :value=>value }
           (options[:environment] || []).each { |key, value| ant.env :key=>key, 
:value=>value }

Reply via email to