[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] executing touchpoint instructions inside an application

You can create an IU representing what you want to see happening (MetadataFactory#createInstallableUnitDescription) and then install it using the IDirector API.

HTH

PaScaL

Inactive hide details for "Andrew Eisenberg" ---05/12/2008 04:29:00 PM---Thanks for getting back to me. Then is there a way to "Andrew Eisenberg" ---05/12/2008 04:29:00 PM---Thanks for getting back to me. Then is there a way to programmatically kick off an install operation


From:

"Andrew Eisenberg" <andrew@xxxxxxxxxxxx>

To:

"P2 developer discussions" <p2-dev@xxxxxxxxxxx>

Date:

05/12/2008 04:29 PM

Subject:

Re: [p2-dev] executing touchpoint instructions inside an application




Thanks for getting back to me.

Then is there a way to programmatically kick off an install operation
whose only job is to change the system configuration via appropriate
operations?

If not, is this something for consideration in the future?

On Fri, Dec 5, 2008 at 12:18 PM, John Arthorne <John_Arthorne@xxxxxxxxxx> wrote:
>
> No, there is no API to do this, and it's not something we'd want to allow
> people to do outside of the context of an install operation. Any change to
> the system configuration should be done via provisioning operations, so that
> they can be rolled back, etc.
>
> John
>
>
>
>
> "Andrew Eisenberg" <andrew@xxxxxxxxxxxx>
> Sent by: p2-dev-bounces@xxxxxxxxxxx
>
> 12/03/2008 11:56 AM
>
> Please respond to
> andrew@xxxxxxxxxxxx; Please respond to
> P2 developer discussions <p2-dev@xxxxxxxxxxx>
> To
> "P2 developer discussions" <p2-dev@xxxxxxxxxxx>
> cc
> Subject
> [p2-dev] executing touchpoint instructions inside an application
>
>
>
>
> I would like my application to have the capability to execute some
> touchpoint instructions (more specifically, to add or remove an OSGi
> hook adaptor through user preferences).  I already know how to do this
> on install and uninstall.
>
> Is there an API to do this from within the program?
>
> thanks,
> --andrew
> _______________________________________________
> 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


GIF image

GIF image