Torsten Curdt wrote:
>>Can someone enlighten me... the ActiveMonitor does not report any file
>>changes hear as he is supposed to... I just don't get the events :(
> 
> 
> Now what the active monitor does is to call the "testModifiedAfter" with
> the "System.currentTimeMillis()" as an argument. On a change the
> "testModifierAfter" is supposed to fire the "Resource.MODIFIED" event.
> 
> But AFAICS the current code does something else.... If you break it down
> you get:
> 
>    if ( file.lastModified() > System.currentTimeMillis() ) {
>       // fire event
>    }
> 
> Which is not much likely to happen... ;-)
> Shouldn't it be:
> 
>   if ( file.lastModified() > m_previousModified ) {
>     // fire event
>     m_previousModified = file.lastModified()
>   }
> 
> But then the "time" argument wouldn't make much sense...
> 
> Comments?


Sounds good to me...


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to