better support for jruby under linux (but all spec don't pass)

This commit is contained in:
Yann Lugrin 2010-10-21 18:20:25 +08:00 committed by Thibaud Guillaume-Gentil
parent ffe9f933b0
commit 08a9df7bab

View File

@ -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?