[RSS]
The information on this page pertains to NetBeans IDE 6.5.

Quickly

To run a Rake tasks:

  1. press Alt+Shift-R
  2. type your task (or just a part of it)
  3. press Enter

Even quicker then from the command line ;). If you want to run the same task again, just press the Rerun button (the double arrow one) in the associated Output Windows tab.

repeat_task.png

More details

NetBeans provides special Rake Runner dialog from which you may run or debug you Rake tasks. Might be invoked from Ruby or Ruby on Rails projects' context menu or just by pressing Alt+Shift-R. If you use the shortcut, NetBeans infers project to be used based on the selection in Projects view, currently edited file (its project owner), etc. If you are not satisfied with the inferred project, just select your project in the Projects view or just use Run/Debug Rake Task... project's context menu item.

Screenshot showing Rake Runner for Rails project with Rake task containing 'doc' string.

rake_runner.png

Attachments

rake_runner.png Info on rake_runner.png 14580 bytes
repeat_task.png Info on repeat_task.png 2103 bytes