Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [p2-dev] Feature Touchpoint Advice

I have resolved half my problem.

 

FYI…  The default touchpoint type  for plug-in’s p2.inf (TOUCHPOINT_OSGI) is different than for a feature’s p2.inf (TOUCHPOINT_NONE).  Consequently, the feature’s touchpoint advice needs to be fully qualified.

 

For example:

[feature]P2.inf

====

instructions.configure=\

     org.eclipse.equinox.p2.osgi.setProgramProperty(propName:org.osgi.service.http.port, propValue:3080);

 

 

I’m still trying to figure out how (or even if it’s possible) to mark bundles as started within a feature’s p2.inf.  Any help with this would be greatly appreciated.

 

From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of O'Flynn, Dennis
Sent: Thursday, April 30, 2009 8:08 AM
To: P2 developer discussions
Subject: [p2-dev] Feature Touchpoint Advice

 

Could someone please verify the syntax of touchpoint advice provided by a feature’s p2.inf.  I have reviewed the wiki doc and scanned some source code, but I’m not confident that I’m defining my p2.inf correctly.

 

Use Case:  web feature

·         Provide a feature with a set of plug-ins

o   org. test.web.app

o   required equinox http & jetty bundles

·         Provide feature p2.inf

o   Define http port via org.osgi.service.http.port property

o   Start http service

 

The following is the p2.inf that I have included with my feature. 

P2.inf

====

instructions.configure=\

      setProgramProperty(propName:org.osgi.service.http.port, propValue:3080);\

      markStarted@org.eclipse.equinox.http(started:true);\

      markStarted@org.eclipse.equinox.http.registry(started:true)

 

However, it doesn’t work.   Is this a syntax problem or an issue with the p2.engine?  When I attempt to install this feature via P2 I get the following error:

 

!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-04-30 08:05:34.828

!MESSAGE No action found for: setProgramProperty.

!STACK 0

java.lang.IllegalArgumentException: No action found for: setProgramProperty.

        at org.eclipse.equinox.internal.provisional.p2.engine.MissingAction.execute(MissingAction.java:28)

        at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:118)

        at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:63)

        at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)

        at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:51)

Dennis O'Flynn
Technical Consultant
compuware
One Campus Martius
12W-1104
Detroit, Michigan 48226
313-227-7433 Work
313-227-9230 Fax

 


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.


Back to the top