Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] List of update sites

OK, great, now I need to get reference to IProvisioningAgent :) How can I do that?

2011/3/25 DJ Houghton <DJ_Houghton@xxxxxxxxxx>

Jacek is correct. You can do a service look-up via the agent.

IProvisioningAgent#getService(IMetadataRepositoryManager.class.getName());


Inactive hide details for Jacek Pospychała ---03/25/2011 10:16:55 AM---sorry, I didn't noticed you want to "get", and not set Jacek Pospychała ---03/25/2011 10:16:55 AM---sorry, I didn't noticed you want to "get", and not set repository... :-) Anyway, a bit of goolging p


From:

Jacek Pospychała <jacek.pospychala@xxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

03/25/2011 10:16 AM

Subject:

Re: [p2-dev] List of update sites

Sent by:

p2-dev-bounces@xxxxxxxxxxx




sorry, I didn't noticed you want to "get", and not set repository... :-)
Anyway, a bit of goolging pointed to IRepositoryManager interface, that should do what you want. Although I'm not quite sure how to obtain reference to it.


2011/3/25 Jacek Pospychała <jacek.pospychala@xxxxxxxxx>
    one option is via use of p2.inf files, e.g.:

    instructions.configure=\

      addRepository(type:0,enabled:false,location:http${#58}//download.eclipse.org/releases/helios);\

      addRepository(type:1,enabled:false,location:http${#58}//download.eclipse.org/releases/helios);

    you can put p2.inf file in a feature, or a plugin (META-INF folder).

    There's some limitations though - e.g. you can't set update site name.

    And there's some bugs, which may make your update site not added, e.g. in Windows 7 


    On Fri, Mar 25, 2011 at 2:42 PM, Andrey Razumovsky <razumovsky.andrey@xxxxxxxxx> wrote:
    Hi,

    Is there a way to get list of configured update sites (those seen in
    "Avaliable Software" dropdown in "Install" dialog) programmatically?

    Thanks,
    Andrey
    _______________________________________________
    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



_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev




--
Andrey

GIF image

GIF image


Back to the top