Hello,
There are two options:
1. Poll repository every NN seconds to check whether there are
modifications. Use SVNRepository.getLatestRevision() and compare it with
the previous value. Revision changes every time there is modification
and getLatestRevision() is a cheap operation. This approach will work
with any repository you have read access to.
2. Add post-commit hook script into repository (on the server side).
Make this hook send message to clients (certain host or hosts listening
on certain ports). This approach excludes polling, but far less generic
as the first one.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
Tanvi wrote:
> Hello,
>
> Just now I ccome across SVNKit.
> I have a requirement like , when ever there are changes to SVNRepository
> Immediately I have to trigger a build.
>
> Is it possible with SVNkit to handle change events?
> Any suggestion plz?
---------------------------------------------------------------------
To unsubscribe, e-mail:
svnkit-users-unsubscribe@...
For additional commands, e-mail:
svnkit-users-help@...