Skip to main content

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

Normally I think you would want this to be managed by the bundle/IU that required the OSGi hook. It would have to add the hook during some install operation and remove it during the uninstall operation. However the OSGi hook properties are comma separated list and would require a bit of parsing to modify. Modifying these properties external to specific provisioning operation seems like a bad idea to me.

But then again there is a need to set some environment. For instance for the process we unset known JVM system environmental properties that might exist do to system installed JVMs so they don't interfere with the JVM being used. We sometimes modify PATH, and others. But they are always related to specific requirements of the bundles being installed. I think all that is missing is more touchpoint work and ability to change the environment in the eclipse launcher. But since not everyone uses the eclipse launcher I am not sure this can be done.


Inactive hide details for "Andrew Eisenberg" ---12/05/2008 03:28:36 PM---Thanks for getting back to me."Andrew Eisenberg" ---12/05/2008 03:28:36 PM---Thanks for getting back to me.


From:

"Andrew Eisenberg" <andrew@xxxxxxxxxxxx>

To:

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

Date:

12/05/2008 03:28 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


Back to the top