Skip to content

Commit

Permalink
Fixed: BUILDR-291 Local tasks do not support arguments (Ittay Dror).
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@790695 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Assaf Arkin committed Jul 2, 2009
1 parent 6f00a2c commit 269ed82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Change: Updated to Rake 0.8.7, RSpec 1.2.6 and JRuby-openssl 0.5.1.
* Fixed: BUILDR-23 Support for setting file mode when packaging (Ittay Dror).
* Fixed: BUILDR-290 Dependencies cannot be downloaded over SSL.
* Fixed: BUILDR-291 Local tasks do not support arguments (Ittay Dror).

1.3.4 (2009-04-21)
* Added: BUILDR-93 Add specs for ScalaCheck integration
Expand Down
7 changes: 4 additions & 3 deletions lib/buildr/core/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,12 @@ def clear
#
# The optional block is called with the project name when the task executes
# and returns a message that, for example "Building project #{name}".
def local_task(args, &block)
task args do |task|
def local_task(*args, &block)
task *args do |task, args|
args = task.arg_names.map {|n| args[n]}
local_projects do |project|
info block.call(project.name) if block
task("#{project.name}:#{task.name}").invoke
task("#{project.name}:#{task.name}").invoke *args
end
end
end
Expand Down

0 comments on commit 269ed82

Please sign in to comment.