buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbo...@apache.org
Subject svn commit: r690850 - /incubator/buildr/trunk/lib/buildr/core/application.rb
Date Mon, 01 Sep 2008 05:30:26 GMT
Author: vborja
Date: Sun Aug 31 22:30:26 2008
New Revision: 690850

URL: http://svn.apache.org/viewvc?rev=690850&view=rev
Log:
Setup notify when not running on macos

Modified:
    incubator/buildr/trunk/lib/buildr/core/application.rb

Modified: incubator/buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/application.rb?rev=690850&r1=690849&r2=690850&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/application.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/application.rb Sun Aug 31 22:30:26 2008
@@ -429,6 +429,10 @@
     Buildr.application.on_failure { |title, message, ex| notify['Failed', title, message]
}
   rescue Exception # No growl
   end
+elsif $stdout.isatty && verbose
+  notify = lambda { |type, title, message| $stdout.puts "[#{type}] #{title}: #{message}"
}
+  Buildr.application.on_completion { |title, message| notify['Completed', title, message]
}
+  Buildr.application.on_failure { |title, message, ex| notify['Failed', title, message] }
 end
 
 



Mime
View raw message