Author: assaf
Date: Wed Sep 17 12:32:08 2008
New Revision: 696410
URL: http://svn.apache.org/viewvc?rev=696410&view=rev
Log:
Made to work with Rake 0.8.2.
Modified:
incubator/buildr/trunk/_buildr
Modified: incubator/buildr/trunk/_buildr
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/_buildr?rev=696410&r1=696409&r2=696410&view=diff
==============================================================================
--- incubator/buildr/trunk/_buildr (original)
+++ incubator/buildr/trunk/_buildr Wed Sep 17 12:32:08 2008
@@ -14,7 +14,23 @@
# License for the specific language governing permissions and limitations under
# the License.
+start = Time.now
+require 'rubygems'
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib'),
File.join(File.dirname(__FILE__), 'addon')
+gem 'rake', '0.8.1' # Required since Buildr won't run with 0.8.2 for now.
+require 'buildr'
+Buildr.application.run
+if verbose
+ elapsed = Time.now - start
+ real = []
+ real << ("%ih" % (elapsed / 3600)) if elapsed >= 3600
+ real << ("%im" % ((elapsed / 60) % 60)) if elapsed >= 60
+ real << ("%.3fs" % (elapsed % 60))
+ puts $terminal.color("Completed in #{real.join}", :green)
+end
+
+=begin
# Run buildr from source, specifically for testing stuff without doing a rake
install.
# The _BUILDR_RB environment variable can be used to set the path to the
ruby/jruby executable.
# For example to use jruby:
@@ -30,3 +46,4 @@
] + ARGV
exec *cmd
+=end
\ No newline at end of file