Skip to content

Instantly share code, notes, and snippets.

@amarshall
Created February 16, 2012 02:57
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 amarshall/1841253 to your computer and use it in GitHub Desktop.
Save amarshall/1841253 to your computer and use it in GitHub Desktop.
require 'guard/guard'
module ::Guard
class Ant < ::Guard::Guard
def start
run_on_change nil
end
def run_on_change(paths)
system %q{bash -ic "ant compile"}
end
end
end
guard 'ant' do
watch /.*\.java/
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment