Skip to content

Instantly share code, notes, and snippets.

@smison
Last active August 29, 2015 14:17
Show Gist options
  • Save smison/448905a502e5c936555a to your computer and use it in GitHub Desktop.
Save smison/448905a502e5c936555a to your computer and use it in GitHub Desktop.
*.javaの更新を監視してguardで自動ビルド/実行するGuardfile(http://qiita.com/smison/items/598899fa8e03646d1f4e)
require 'guard'
guard 'shell' do
watch(/(.*).java/){|m| `echo; javac #{m[0]}; java #{m[1]}; echo; echo;`}
end
@smison
Copy link
Author

smison commented Mar 21, 2015

事前に下記を実行のこと

$ sudo gem install guard
$ sudo gem install guard-shell

@smison
Copy link
Author

smison commented Mar 21, 2015

実行

$ guard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment