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 |
|
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
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
| |
Re: different behaviors when mirroring a p2 repository [message #984009 is a reply to message #982825] |
Wed, 14 November 2012 10:23 |
|
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
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Re: different behaviors when mirroring a p2 repository [message #984219 is a reply to message #984009] |
Wed, 14 November 2012 14:05 |
Eclipse User |
|
|
|
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.
|
|
| |
Goto Forum:
Current Time: Sun Dec 08 02:43:54 GMT 2024
Powered by FUDForum. Page generated in 0.03132 seconds
|