|Reading only the last modification timestamp of an updatesite [message #769337]
||Wed, 21 December 2011 20:47
|| Markus Oley
Registered: July 2009
Hi to all, |
I want to implement a feature, which
should read the entire updatesite only, if changed until the last loading.
I've done it like this:
IMetadataRepositoryManager manager = ....
IMetadataRepository repository = manager.loadRepository(new URI(updatesiteUrl), 0, new NullProgressMonitor());
String timestamp = repository.getProperty("p2.timestamp");
Long timestampLongSite = new Long(timestamp);
I've seen there is a property p2.timestamp, which I read. But therefore I have to read the entire site, which is often unnecessary to me. This action needs a lot of time, if I have many updatesites in scope.
Is it possible to get this property without reading the whole site and is this property always reset, if content of a site changes (even on composite-sites?) or is there another features, which can handle this?
Can you please give me a hint?
Powered by FUDForum
. Page generated in 0.01489 seconds