Hi all,
i came across this problem when using rake-hooks for our buildenv written in ruby/rake.
If the task you want to hook with after or before has task arguments, the task arguments of the original task are ignored.
i found a solution some time ago, but forgot to share the solution with you, but now here you go:
http://codeviewer.org/view/code:4d9b
I can also create a pull request if you wish
Best regards,
Christian Lohwasser