Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] policy.xml Replacement?

Title: Re: [p2-dev] policy.xml Replacement?
It's possible I'm having a brain fart but isn't the update site URL still encoded in the features (in feature.xml), or is that ignored by P2?  I recall seeing an update id in the metadata, usually the same as the IU id.  I guess that's all you need, and your update site can be anywhere. 
 
What should I do about the URL in feature.xml? Leave it out completely, or point to a dummy location?
 
Thanks for the replies,
Mark.


From: Nick Boldt [mailto:nickboldt@xxxxxxxxx]
Sent: Sat 09/05/2009 3:52 AM
To: P2 developer discussions
Cc: Mark Melvin
Subject: Re: [p2-dev] policy.xml Replacement?

See also http://wiki.eclipse.org/Using_Policy_Files

Pascal Rapicault wrote:
> p2 can do without the policy.xml file because the metadata is location
> agnostic, whereas features always had a pointer back home.
> Consequently you simply control what is accessible by controlling the
> list of repositories available to the user.
> That said, you also have to be careful to the repositories referred to
> from within the repositories listed because some of them may include
> references to additional repos. This is especially true when the
> repository you are accessing results from the transformation of an old
> style update site where features listed URL of repos (this addition of
> reference repo is done for backward compatibility reasons).
>
> HTH
>
> PaScaL
> Inactive hide details for "Mark Melvin" ---05/08/2009 10:21:33 AM---Hi
> Everyone,"Mark Melvin" ---05/08/2009 10:21:33 AM---Hi Everyone,
>
>
> From:
> "Mark Melvin" <Mark.Melvin@xxxxxxxxxx>
>
> To:  
> <p2-dev@xxxxxxxxxxx>
>
> Date:
> 05/08/2009 10:21 AM
>
> Subject:     
> [p2-dev] policy.xml Replacement?
>
> ------------------------------------------------------------------------
>
>
>
> Hi Everyone,
>
> Is there a replacement or equivalent workflow for the old policy.xml
> file that was available in the old update manager?  This made it really
> easy to test update scenarios for installed, immutable features
> referencing an external URL by re-wiring all URLs to locally accessible
> resources.
>
> Thanks,
> Mark.
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Release Engineer :: Eclipse Modeling & Dash Athena


Back to the top