diff --git a/lib/guard/listeners/linux.rb b/lib/guard/listeners/linux.rb index 371d9a3..a01c5f5 100644 --- a/lib/guard/listeners/linux.rb +++ b/lib/guard/listeners/linux.rb @@ -45,7 +45,7 @@ module Guard def watch_change while !@stop - if IO.select([inotify.to_io], [], [], latency) + if Config::CONFIG['build'] =~ /java/ || IO.select([inotify.to_io], [], [], latency) inotify.process unless files.empty?