Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to update the bundle pool meta data?
How to update the bundle pool meta data? [message #1565438] Thu, 15 January 2015 09:25 Go to next message
Daniel Brenner is currently offline Daniel BrennerFriend
Messages: 8
Registered: March 2012
Junior Member
Hi,

at first, thanks for this nice tool. I like it very much.

Now to my problem. I want to replace the current target file mechanism with this targlet thing. And it works well for the first time. But in our company we have a huge composite p2 repository with all of our bundles and the content is changing often, especially the snapshot builds. The problem is, that several specific snapshot builds aren't longer available. I thought this is not problematic, because I use version ranges for compatibility and I thought the next best compatible bundle will be loaded.
Now the targlet mechanism want always to load the old version from the first execution, but the bundle with a specific time stamp is no more longer available and it is OK. There is now a newer one (version is compatible).

So I don't know how I could teach the tool to update the local meta data and forget the old bundle version (time stamp).

Best regards,
Daniel
Re: How to update the bundle pool meta data? [message #1567458 is a reply to message #1565438] Fri, 16 January 2015 11:17 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Daniel,<br>
<br>
Comments below...<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
<div class="moz-cite-prefix">Am 15.01.2015 um 15:53 schrieb Daniel
Brenner:<br>
</div>
<blockquote cite="mid:m98k9v$ls$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
at first, thanks for this nice tool. I like it very much.
<br>
</blockquote>
Thank you ;-)<br>
<br>
<blockquote cite="mid:m98k9v$ls$1@xxxxxxxxe.org" type="cite">
Now to my problem. I want to replace the current target file
mechanism with this targlet thing. And it works well for the first
time. But in our company we have a huge composite p2 repository
with all of our bundles and the content is changing often,
especially the snapshot builds. The problem is, that several
specific snapshot builds aren't longer available. I thought this
is not problematic, because I use version ranges for compatibility
and I thought the next best compatible bundle will be loaded.
<br>
Now the targlet mechanism want always to load the old version from
the first execution, but the bundle with a specific time stamp is
no more longer available and it is OK. There is now a newer one
(version is compatible).
<br>
<br>
So I don't know how I could teach the tool to update the local
meta data and forget the old bundle version (time stamp).
<br>
</blockquote>
The TargletTask should behave just like you expect. If it doesn't I
see two possible reasons:<br>
<br>
1) Your version ranges are too narrow. It's unlikely, but how are
they specified?<br>
<br>
2) Oomph's offline mode is enabled. Make sure that the offline cache
is not used:<br>
<img src="https://www.eclipse.org/forums/index.php?t=getfile&amp;id=20465" alt=""><br>
<br>
A third reason could be that p2 itself has cached the repo contents
in memory. Does the problem persist after a restart of the IDE?<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
</body>
</html>
  • Attachment: ifgafcgi.png
    (Size: 29.43KB, Downloaded 94 times)


Re: How to update the bundle pool meta data? [message #1567491 is a reply to message #1567458] Fri, 16 January 2015 11:43 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
One more thought:

Are you sure that the timestamps of your composite repos are properly updated when new content is available?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: How to update the bundle pool meta data? [message #1572594 is a reply to message #1567491] Mon, 19 January 2015 08:13 Go to previous message
Daniel Brenner is currently offline Daniel BrennerFriend
Messages: 8
Registered: March 2012
Junior Member
Hi Eike,

thanks for your help.

I solved my problem with the following "work a round", whereas I don't know if it's a good solution.

I added the problematic P2 repository to the "P2 Director" in the hope that the meta data will be updated. And it works for my use case.

If I have the right understanding of Oomph, every bundle is stored in one central bundle pool and the P2 Director takes care of it. Seems to be so.

Maybe it's not the best solution...

Previous Topic:Create project setup task
Next Topic:PDE Target provisioning taking much longer than before
Goto Forum:
  


Current Time: Wed Dec 04 16:39:31 GMT 2024

Powered by FUDForum. Page generated in 0.05029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top