For those of you who prefer editing and running your Gradle builds via TextMate, I have created a TextMate bundle to run your builds directly from your favourite editor. The bundle is available at https://github.com/breskeby/tmBundles.
To run a Gradle build script that you are editing in TextMate, you just have to execute the “Run Gradle build” command of the Gradle Bundle. The “Run Gradle build” command can be started in three different ways:
- If you have selected a text within your build file, the selected text is interpreted as the task to execute.
- If the build file defines a default task, the default task is executed.
- If no default task is configured and no text is selected, the “Run Gradle build” command prompts an input dialog to specifiy the tasks you want to execute.
The output is formatted as HTML and it uses javascript to render the output dynamically.

You may notice some limitations of this bundle. Actually, it works only for one defined default task. I have uploaded the mentioned bundle to github to share it with you and to profit from others’ bash/javascript know-how.
UPDATE: To show the Gradle bundle in action, I have created a short screencast, available at http://www.breskeby.com/gradlecasts/2011/02/08/33/



