Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » different behaviors when mirroring a p2 repository
different behaviors when mirroring a p2 repository [message #969741] Sat, 03 November 2012 14:02 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I've just started learning how to mirror a p2 repository with p2.mirror
ant task...

if I use this file

<project name="Create Mirror" default="create-mirror" basedir=".">
<property name="target.dir" value="/tmp/mirror/sdk-4.2"/>
<target name="create-mirror">
<p2.mirror source="http://download.eclipse.org/eclipse/updates/4.2">
<!-- use format to avoid .blobstore !-->
<destination location="${target.dir}" format="./template" />
<iu id="org.eclipse.platform.sdk" />
</p2.mirror>
</target>
</project>

then it actually creates a mirror with all the eclipse sdk stuff...

however, if I use this source
"http://download.eclipse.org/releases/juno", instead of
"http://download.eclipse.org/eclipse/updates/4.2", it starts cloning all
the features and plugins (i.e., besides the eclipse sdk, also mylyn,
cdt, etc.)... why is it ignoring the iu directive? I also tried add
<slicingOptions includeOptional="false" /> but the behavior does not
change... am I missing something?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: different behaviors when mirroring a p2 repository [message #982825 is a reply to message #969741] Tue, 13 November 2012 12:58 Go to previous messageGo to next message
Eclipse UserFriend
/releases/juno includes all the projects that were part of the Juno release train.
/eclipse/updates/4.2 is just the platform.
Re: different behaviors when mirroring a p2 repository [message #984009 is a reply to message #982825] Wed, 14 November 2012 10:23 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/13/2012 01:58 PM, Brian de Alwis wrote:
> /releases/juno includes all the projects that were part of the Juno
> release train.
> /eclipse/updates/4.2 is just the platform.

Hi

I see, but since I specified

<iu id="org.eclipse.platform.sdk" />

why does it start cloning *all* the features and plugins (i.e., besides
the eclipse sdk, also mylyn, cdt, etc.)?

shouldn't it clone ONLY the IU I specified (and its deps)?

or am I missing something?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: different behaviors when mirroring a p2 repository [message #984219 is a reply to message #984009] Wed, 14 November 2012 14:05 Go to previous messageGo to next message
Eclipse UserFriend
Sorry Lorenzo -- I missed that key line. Perhaps I should avoid posting before having had my morning coffee!

If you run with p2.mirror's followStrict="true", you get the results you're expecting. I've forgotten the various meanings of the strict-requires, filtered-requires, etc. But I guess some of the EPP packages specify org.eclipse.platform.sdk as a requirement and are being pulled in.

Brian.
Re: different behaviors when mirroring a p2 repository [message #986930 is a reply to message #984219] Thu, 22 November 2012 11:55 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/14/2012 03:05 PM, Brian de Alwis wrote:
> Sorry Lorenzo -- I missed that key line. Perhaps I should avoid posting
> before having had my morning coffee!
>
> If you run with p2.mirror's followStrict="true", you get the results
> you're expecting. I've forgotten the various meanings of the
> strict-requires, filtered-requires, etc. But I guess some of the EPP
> packages specify org.eclipse.platform.sdk as a requirement and are being
> pulled in.

Thanks!

But apparently the problem is only with org.eclipse.platform.sdk

I blogged my experience here

http://www.lorenzobettini.it/2012/11/mirror-eclipse-repositories-with-p2-mirror-ant-task/

cheers
Lorenzo


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:How to validate an upgrade before installation
Next Topic:Headless P2-Update resets workbench
Goto Forum:
  


Current Time: Wed Apr 24 21:08:45 GMT 2024

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

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

Back to the top