Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Reading only the last modification timestamp of an updatesite
Reading only the last modification timestamp of an updatesite [message #769337] Wed, 21 December 2011 15:47 Go to previous message
Markus Oley is currently offline Markus Oley
Messages: 227
Registered: July 2009
Location: Germany
Senior Member
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?

Best regards
Markus

Best regards
 
Read Message
Read Message
Read Message
Previous Topic:Is os.version>=10.7 legal in osgi platform filter? (repost)
Next Topic:pde build leaves temp folders when using p2.gathering
Goto Forum:
  


Current Time: Sat May 18 20:16:39 EDT 2013

Powered by FUDForum. Page generated in 0.03799 seconds