Skip to content

Instantly share code, notes, and snippets.

@al3x
Created August 27, 2008 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save al3x/7379 to your computer and use it in GitHub Desktop.
Save al3x/7379 to your computer and use it in GitHub Desktop.
An Ant build task for TextMate that works off your currently selected directory in the project drawer. I added it to the Scala bundle. Be sure to set Output to "Show as HTML".
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
require_cmd "${TM_ANT:=ant}" "Ant was not found, please ensure that it has been installed and your \$PATH is set correctly."
html_header "Ant Build"
cd "$TM_SELECTED_FILE";
result=`"$TM_ANT"`;
echo "<pre>$result</pre>";
html_footer
exit_show_html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment