Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Basic packages like jface or swt in eclipse p2 repositories - ?
Basic packages like jface or swt in eclipse p2 repositories - ? [message #791425] Sun, 05 February 2012 20:16 Go to next message
Alexander Tumin is currently offline Alexander TuminFriend
Messages: 3
Registered: October 2011
Junior Member
[sorry for non-highlighted links - angry forum engine prevents me from making them :/]

Hello, i am trying to automate downloading eclipse packages jars from eclipse repositories like download.eclipse.org/releases/indigo without needing to run eclipse IDE at all, but stuck here with no documentation and idea how to proceed.

With little effort and plenty of time i was able to wrap all eclipse <-> repo http traffic into my little transparent squid porxy; here is dialog when installing egit extention: paste.pocoo.org/show/546345/

It was helpful for get basic pattern of URL constructing; it is ${repoUrl}/${repoChildName}/aggregate/plugins/${packageName}_${packageVersion}.jar.pack.gz; but for some reason not all packages are available for such downloading (bot almost all, yes).

I am speaking about such basic packages like jface or swt, URLs constructed for them in that manner simply not working - server returns 404 on them.

It is also not possible to delete them and look at the dialog of eclipse downloading them because they are required for eclipse very functioning.

Any hints how to fetch such packages and fetch them for correct architecture (in case of SWT)?

Thank you.
Re: Basic packages like jface or swt in eclipse p2 repositories - ? [message #791497 is a reply to message #791425] Sun, 05 February 2012 22:58 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
P2 has several headless ant tasks. Check out the following page:

http://wiki.eclipse.org/Equinox/p2/Ant_Tasks

There are some shell script wrappers at

http://github.com/briandealwis/p2-scripts
Re: Basic packages like jface or swt in eclipse p2 repositories - ? [message #791572 is a reply to message #791425] Mon, 06 February 2012 01:47 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
We use the b3 aggregator to perform tasks like that.
You create a model of what you want from where using an editor, and then
run that from the command line.

The model of p2 that is included is also very useful for writing
utilities that manipulate p2 data, or operates on repositories.

It may be total overkill depending on what you want to do.

Regards
- henrik

On 2012-05-02 21:16, Alexander Tumin wrote:
> [sorry for non-highlighted links - angry forum engine prevents me from
> making them :/]
>
> Hello, i am trying to automate downloading eclipse packages jars from
> eclipse repositories like download.eclipse.org/releases/indigo without
> needing to run eclipse IDE at all, but stuck here with no documentation
> and idea how to proceed.
>
> With little effort and plenty of time i was able to wrap all eclipse <->
> repo http traffic into my little transparent squid porxy; here is dialog
> when installing egit extention: paste.pocoo.org/show/546345/
>
> It was helpful for get basic pattern of URL constructing; it is
> ${repoUrl}/${repoChildName}/aggregate/plugins/${packageName}_${packageVersion}.jar.pack.gz;
> but for some reason not all packages are available for such downloading
> (bot almost all, yes).
>
> I am speaking about such basic packages like jface or swt, URLs
> constructed for them in that manner simply not working - server returns
> 404 on them.
>
> It is also not possible to delete them and look at the dialog of eclipse
> downloading them because they are required for eclipse very functioning.
>
> Any hints how to fetch such packages and fetch them for correct
> architecture (in case of SWT)?
>
> Thank you.
Re: Basic packages like jface or swt in eclipse p2 repositories - ? [message #791919 is a reply to message #791497] Mon, 06 February 2012 12:22 Go to previous message
Alexander Tumin is currently offline Alexander TuminFriend
Messages: 3
Registered: October 2011
Junior Member
Thank you a lot! This p2-scripts set is exactly what i was missing for understanding basics of p2 repos structure. Though there is still a lot of dark places for me, but ultimately i see now the way of illuminating them.
Previous Topic:OSGI Service Problem after update a feature
Next Topic:FTP Update Site Authentication
Goto Forum:
  


Current Time: Mon Dec 09 10:30:28 GMT 2024

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

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

Back to the top