From e00fdbe1f68ccddd13fa8d44b12e3588c8d73cfc Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Mon, 14 Jan 2013 16:49:39 -0500 Subject: [PATCH] Default task name is now override-able. --- lib/rake/application.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 747a8e74a..0daeb9b9c 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -637,7 +637,13 @@ def collect_tasks @top_level_tasks << arg unless arg =~ /^-/ end end - @top_level_tasks.push("default") if @top_level_tasks.size == 0 + @top_level_tasks.push(default_task_name) if @top_level_tasks.empty? + end + + # Default task name ("default"). + # (May be overridden by subclasses) + def default_task_name + "default" end # Add a file to the list of files to be imported.