Skip to main content



      Home
Home » Eclipse Projects » Equinox » partial mirroring Eclipse Update Site
partial mirroring Eclipse Update Site [message #131707] Mon, 25 May 2009 09:52 Go to next message
Eclipse UserFriend
Hello,

I posted the same question in the "eclipse.newcomer" newsgroup - but
didn't get an answer there - so sorry for this cross-posting.

I'm playing around with the Equinox p2 Repository Mirroring [
http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring ] to mirror the
Eclipse Update site for a intranet.

I didn't find a way to mirror only some IU (Installable Units/Plugins)
from the official Eclipse Update Site. In my case I'm trying to mirror
only the Subversive svn plugins. Is there a way to do that? I didn't find
any documentations already.

many thanks in advance
Re: partial mirroring Eclipse Update Site [message #131714 is a reply to message #131707] Mon, 25 May 2009 10:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

Simon Linden wrote:

> Hello,

> I posted the same question in the "eclipse.newcomer" newsgroup - but
> didn't get an answer there - so sorry for this cross-posting.

> I'm playing around with the Equinox p2 Repository Mirroring [
> http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring ] to mirror the
> Eclipse Update site for a intranet.

> I didn't find a way to mirror only some IU (Installable Units/Plugins)
> from the official Eclipse Update Site. In my case I'm trying to mirror
> only the Subversive svn plugins. Is there a way to do that? I didn't find
> any documentations already.

> many thanks in advance

Check out this wiki page:

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

There is a section there on partial mirroring.

Mark.
Re: partial mirroring Eclipse Update Site [message #131732 is a reply to message #131714] Tue, 26 May 2009 06:43 Go to previous messageGo to next message
Eclipse UserFriend
Hello Mark,

thanks for your reply and point me in the right direction. :-)

Mark Melvin wrote:
> Check out this wiki page:
> http://wiki.eclipse.org/Equinox/p2/Ant_Tasks
> There is a section there on partial mirroring.

Yes, this looks like what I want to do. But I still have problems to get
the thinks to work. May i miss the point of the page... :-(
(sorry my english isn't quite good).

I think I have to put the sample code from the wiki-page in a ant-file
(build.xml) and fire up the build.xml in a Eclipse Workspace. I'm using
Eclipse:

<snipp>
*** Date: ....
*** Platform Details:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=I20090515-1143
eclipse.commands=-os
win32
-ws
win32
-arch
x86
...
</snipp>

This is my build.xml:

<project default="do-it" name="Repository Mirror ">
<target name="do-it">
<p2.mirror>
<repository location="file:/${user.home}" name="A new repository" />
<source>
<repository
location="http://download.eclipse.org/releases/galileo/" />
</source>
<slicingoptions platformfilter="win32,win32,x86"/>
</p2.mirror>
</target>
</project>

And this is the error I get:

Buildfile: E:\EclipseWS\TestWorkSpace\p2AntTask\build.xml
do-it:
BUILD FAILED
E:\EclipseWS\TestWorkSpace\p2AntTask\build.xml:7: Problem: failed to
create task or type p2.mirror
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
Total time: 79 milliseconds

Are there any "<taskdef></taskdef>" missing?! I didn't find more
information about that. Ist there any properly running samples code
available?

further help is greatly appreciated - many thanks in advance.
Re: partial mirroring Eclipse Update Site [message #131738 is a reply to message #131732] Tue, 26 May 2009 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

Simon Linden wrote:

> Hello Mark,

> thanks for your reply and point me in the right direction. :-)

> Mark Melvin wrote:
>> Check out this wiki page:
>> http://wiki.eclipse.org/Equinox/p2/Ant_Tasks
>> There is a section there on partial mirroring.

> Yes, this looks like what I want to do. But I still have problems to get
> the thinks to work. May i miss the point of the page... :-(
> (sorry my english isn't quite good).

> I think I have to put the sample code from the wiki-page in a ant-file
> (build.xml) and fire up the build.xml in a Eclipse Workspace. I'm using
> Eclipse:

> <snipp>
> *** Date: ....
> *** Platform Details:
> *** System properties:
> awt.toolkit=sun.awt.windows.WToolkit
> eclipse.application=org.eclipse.ui.ide.workbench
> eclipse.buildId=I20090515-1143
> eclipse.commands=-os
> win32
> -ws
> win32
> -arch
> x86
> ...
> </snipp>

> This is my build.xml:

> <project default="do-it" name="Repository Mirror ">
> <target name="do-it">
> <p2.mirror>
> <repository location="file:/${user.home}" name="A new repository" />
> <source>
> <repository
> location="http://download.eclipse.org/releases/galileo/" />
> </source>
> <slicingoptions platformfilter="win32,win32,x86"/>
> </p2.mirror>
> </target>
> </project>

> And this is the error I get:

> Buildfile: E:EclipseWSTestWorkSpacep2AntTaskbuild.xml
> do-it:
> BUILD FAILED
> E:EclipseWSTestWorkSpacep2AntTaskbuild.xml:7: Problem: failed to
> create task or type p2.mirror
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
> Total time: 79 milliseconds

> Are there any "<taskdef></taskdef>" missing?! I didn't find more
> information about that. Ist there any properly running samples code
> available?

> further help is greatly appreciated - many thanks in advance.

If you are running this from an Eclipse workspace, edit the Ant build
launch properties and make sure you run it in the same JRE as the
workspace. This will give you access to the P2 tasks.

Mark.
Re: partial mirroring Eclipse Update Site [message #131750 is a reply to message #131738] Tue, 26 May 2009 10:59 Go to previous messageGo to next message
Eclipse UserFriend
Hello Mark,

thanks again for reply.

Mark Melvin wrote:
> If you are running this from an Eclipse workspace,

are there other ways to run the ant script?

> edit the Ant build launch properties and make sure you run it in
> the same JRE as the workspace.
> This will give you access to the P2 tasks.

Now the previous error is solved - thanks!
Sad but true now i get this error and don't know what this means:

Buildfile: ....build.xml
do-it:
[p2.mirror] Problems resolving provisioning plan.
[p2.mirror] The IU org.eclipse.equinox.executable_root.gtk.linux.x86_64
3.3.200.v20090507-7M-Fm-FI3UouOdgtbIvrva can't be installed in this
environment because its filter does not match.
[p2.mirror] The IU org.eclipse.equinox.executable_root.gtk.linux.x86_64
3.3.200.v20090507-7M-Fm-FI3UouOdgtbIvrva can't be installed in this
environment because its filter does not match.

BUILD FAILED
...... build.xml:6:
org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception:
Problems resolving provisioning plan.
Total time: 4 seconds

This is my build.xml:
<project default="do-it" name="Repository Mirror ">
<target name="do-it">
<p2.mirror>
<repository location="file:/${user.home}" name="A new repository" />
<source>
<repository
location="http://download.eclipse.org/releases/galileo/"/>
<repository
location="http://download.eclipse.org/eclipse/updates/3.5" />
</source>
<slicingoptions platformfilter="win32,win32,x86"/>
</p2.mirror>
</target>
</project>

Why does p2.mirror try to access a IU "...linux.x86_64..."? I need and
want the IU for win32/x86 only. Did I made a mistake in the p2 ant task
"<slicingoptions platformfilter="win32,win32,x86"/>" ?

Thanks a lot for your help!
Re: partial mirroring Eclipse Update Site [message #131758 is a reply to message #131750] Tue, 26 May 2009 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_melvin.amis.com

Simon Linden wrote:

> Hello Mark,

> thanks again for reply.

> Mark Melvin wrote:
>> If you are running this from an Eclipse workspace,

> are there other ways to run the ant script?

Yes. You need to use Eclipse's headless Ant builder if you want to do it
from the command line. The easiest way is to do this:

c:\path\to\eclipsec.exe -nosplash --launcher.suppressErrors -application
org.eclipse.ant.core.antRunner -buildfile build.xml

You can also call Java from Ant directly, but that gets more complicated
as you need to find the equinox jar (which eclipsec.exe does for you).

>> edit the Ant build launch properties and make sure you run it in
>> the same JRE as the workspace.
>> This will give you access to the P2 tasks.

> Now the previous error is solved - thanks!
> Sad but true now i get this error and don't know what this means:

> Buildfile: ....build.xml
> do-it:
> [p2.mirror] Problems resolving provisioning plan.
> [p2.mirror] The IU org.eclipse.equinox.executable_root.gtk.linux.x86_64
> 3.3.200.v20090507-7M-Fm-FI3UouOdgtbIvrva can't be installed in this
> environment because its filter does not match.
> [p2.mirror] The IU org.eclipse.equinox.executable_root.gtk.linux.x86_64
> 3.3.200.v20090507-7M-Fm-FI3UouOdgtbIvrva can't be installed in this
> environment because its filter does not match.

> BUILD FAILED
> ...... build.xml:6:
> org.eclipse.equinox.internal.provisional.p2.core.ProvisionEx ception:
> Problems resolving provisioning plan.
> Total time: 4 seconds

> This is my build.xml:
> <project default="do-it" name="Repository Mirror ">
> <target name="do-it">
> <p2.mirror>
> <repository location="file:/${user.home}" name="A new repository" />
> <source>
> <repository
> location="http://download.eclipse.org/releases/galileo/"/>
> <repository
> location="http://download.eclipse.org/eclipse/updates/3.5" />
> </source>
> <slicingoptions platformfilter="win32,win32,x86"/>
> </p2.mirror>
> </target>
> </project>

> Why does p2.mirror try to access a IU "...linux.x86_64..."? I need and
> want the IU for win32/x86 only. Did I made a mistake in the p2 ant task
> "<slicingoptions platformfilter="win32,win32,x86"/>" ?

> Thanks a lot for your help!

I don't know why this would fail if you specified slicing options.
Perhaps you need to set followOnlyFilteredRequirements="true" as well?
These options aren't documented so you'd have to get one of the P2
developers to help you out from here. Sorry. :(

Mark.
Re: partial mirroring Eclipse Update Site [message #131764 is a reply to message #131758] Tue, 26 May 2009 15:36 Go to previous messageGo to next message
Eclipse UserFriend
Hello Mark,

Mark Melvin wrote:
> ...
> These options aren't documented so you'd have to get one of the P2
> developers to help you out from here. Sorry. :(

Tomorrow I will give it a new try. Thanks a lot you for your help! :-)
Are there any p2 developers reading this newsgroup or is there a separate
newsgroup for p2 developers? May I should open a bug?

best regards
Re:[partial solved] partial mirroring Eclipse Update Site [message #132349 is a reply to message #131707] Thu, 04 June 2009 07:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

now I found a way to partial mirror a Eclipse Update Site. In this
blog [
http://relengofthenerds.blogspot.com/2009/03/slicing-and-dic ing-p2-way.html
] is a small ant-script doing the job.
In this ant-script are some different ant tasks as described in the wiki
page
[ http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring ]. Maybe the
wiki page should be updated?

In the moment I want to mirror the install units IU for the Eclipse
Classic package. How can I find the necessary IU for that? And how can I
find IU for as an example the WTP Web Tool Platform or any other
plugin/feature?

Thanks for your help!
Re: partial mirroring Eclipse Update Site [message #132403 is a reply to message #131707] Fri, 05 June 2009 12:05 Go to previous message
Eclipse UserFriend
Hello,

now I have a new situation while mirroring a Eclipse Update Site.
I have installed the Eclipse 3.5RC2 Classic package - removed the official
Eclipse Update Sites
http://download.eclipse.org/eclipse/updates/3.5
http://download.eclipse.org/releases/galileo
from the Eclipse preferences and added my intranet update site.

Then I mirrored the official Eclipse Update Site with the p2.mirror ant
task as mentioned in my last post and got the new plugins/features for
Eclipse 3.5RC3 - I think.

After that I checked for updates in the Eclipse RC2 and get a notice, that
a update is available from my intranet update site and I did the update.
Now - the official Eclipse Update Sites I've removed are back again and
active - why?

Is there nobody out there with the same issue? It seemed I'm the only one
with this problems or is there another newsgroup for that kind of
problems/questions?

Many thanks for your help!
Previous Topic:Application Launcher Build System
Next Topic:Does P2 Director support updates of IUs?
Goto Forum:
  


Current Time: Sat Jun 07 05:03:20 EDT 2025

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

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

Back to the top