Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] [equinox-dev] Writing something into the config.ini file

Alessio, 

I have had a similar issue a while ago, but whit another application addRepository


I've fixed it, inside the p2.inf, specifying the whole path to the application. 
I mean: org.eclipse.equinox.p2.touchpoint.eclipse.addRepository

Remember also to list the p2.inf file inside the plug-in's build.properties file.

Ciao,

Emilio
-----Original Message-----
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of p2-dev-request@xxxxxxxxxxx
Sent: Wednesday, May 11, 2011 9:28 PM
To: p2-dev@xxxxxxxxxxx
Subject: p2-dev Digest, Vol 35, Issue 14

Send p2-dev mailing list submissions to
	p2-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://dev.eclipse.org/mailman/listinfo/p2-dev
or, via email, send a message with subject or body 'help' to
	p2-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
	p2-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of p2-dev digest..."


Today's Topics:

   1. Re: [equinox-dev] Writing something into the config.ini	file
      (Domenico Alessi)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 May 2011 15:27:39 -0400
From: Domenico Alessi <domenico.alessi@xxxxxxxxxxxx>
To: Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
Cc: P2 developer discussions <p2-dev@xxxxxxxxxxx>
Subject: Re: [p2-dev] [equinox-dev] Writing something into the
	config.ini	file
Message-ID:
	<0ED867EB33AB2B45AAB470D5A64CDBF60CAC0A6BB2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
	
Content-Type: text/plain; charset="us-ascii"

Hi Pascal,

Sure, np.  here it is.  the plug-in is actually empty, so I was really just testing p2.inf.

BR,
Dom

________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Pascal Rapicault
Sent: May-11-11 3:22 PM
To: Equinox development mailing list
Cc: P2 developer discussions
Subject: Re: [equinox-dev] Writing something into the config.ini file

If you want to make your example on the ML, I'm sure others would find it handy.

On 2011-05-11, at 3:21 PM, Domenico Alessi wrote:

Arg!  Nevermind, caching effect.  Worked like a charm.

Thanks.  Dom

________________________________
From: equinox-dev-bounces@xxxxxxxxxxx<mailto:equinox-dev-bounces@xxxxxxxxxxx> [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Domenico Alessi
Sent: May-11-11 3:12 PM
To: Equinox development mailing list
Cc: P2 developer discussions
Subject: Re: [equinox-dev] Writing something into the config.ini file

Thanks Pascal.

Ok, so before I put the plugin below into the dependencies, I saw the actions in the content.jar.  Now that I have put in the include I no longer see the actions in my content.jar file.  So nothing gets placed into my config.ini, but install passes.

Thanks,
Dom

________________________________
From: equinox-dev-bounces@xxxxxxxxxxx<mailto:equinox-dev-bounces@xxxxxxxxxxx> [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Pascal Rapicault
Sent: May-11-11 2:40 PM
To: Equinox development mailing list
Cc: P2 developer discussions
Subject: Re: [equinox-dev] Writing something into the config.ini file

Make sure that the org.eclipse.equinox.p2.touchpoint.eclipse is in available.

On 2011-05-11, at 2:33 PM, Domenico Alessi wrote:

Hi Pascal,

I get the following error at install time:


An error occurred while configuring the installed items

session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null --> [R]com.test.p2.feature.feature.group 1.0.0.201105111415, action=org.eclipse.equinox.internal.p2.engine.MissingAction).

No action found for: setProgramProperty.

No action found for: setProgramProperty.

My p2.inf looks like this:


instructions.configure=\

setProgramProperty(propName:testValue1,propValue:testValue2);\


Thanks in advance,
Dom

________________________________
From: equinox-dev-bounces@xxxxxxxxxxx<mailto:equinox-dev-bounces@xxxxxxxxxxx> [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Pascal Rapicault
Sent: May-11-11 1:36 PM
To: Equinox development mailing list; P2 developer discussions
Subject: Re: [equinox-dev] Writing something into the config.ini file

This can be done using a touchpoint action (Provisioning Actions and Touchpoints<http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/guide/p2_actions_touchpoints.html?resultof=%22touchpoint%22%20>)
In this particular case: setProgramProperty, for example setProgramProperty(propName:equinox.use.ds, propValue:true);

To get this added to your metadata you need to store that into a p2.inf file (Customizing metadata<http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/guide/p2_customizing_metadata.html>)

<http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/guide/p2_actions_touchpoints.html?resultof=%22touchpoint%22%20>
On 2011-05-11, at 1:30 PM, Domenico Alessi wrote:

Hi All,

I a have quick question.  I have a feature/plugin that I wish to install but I also want at installation time to put in a key/value pair into the config.ini.  I see that install Handlers are discouraged.  How can I accomplish this?

BR,
Dom

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx<mailto:equinox-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx<mailto:equinox-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx<mailto:equinox-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/equinox-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/p2-dev/attachments/20110511/fb6a2a7a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2Inf_example.zip
Type: application/x-zip-compressed
Size: 128695 bytes
Desc: p2Inf_example.zip
URL: <https://dev.eclipse.org/mailman/private/p2-dev/attachments/20110511/fb6a2a7a/attachment.bin>

------------------------------

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


End of p2-dev Digest, Vol 35, Issue 14
**************************************


Back to the top