Home » Archived » Buckminster » Support for custom config.ini
Support for custom config.ini [message #550378] |
Fri, 30 July 2010 07:38 |
Christian Kesselheim Messages: 59 Registered: June 2010 |
Member |
|
|
Hello everyone,
I've got a small problem with a custom config.ini that I wanna use for
one of my products. In Eclipse, the corresponding product descriptor has
"Use an existing config.ini file" set to the following file:
osgi.console=true
osgi.noShutdown=true
eclipse.ignoreApp=true
org.osgi.service.http.port=8080
org.eclipse.equinox.http.jetty.http.port=8080
When I export this product via the Eclipse product export wizard, the
resulting config.ini will look like this:
osgi.console=true
eclipse.p2.profile=profile
osgi.framework=file\:plugins/org.eclipse.osgi_3.6.0.v2010051 7.jar
org.osgi.service.http.port=8080
osgi.bundles=reference\:file\: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.e clipse.equinox.simpleconfigurator/bundles.info
osgi.noShutdown=true
eclipse.product=lu.kreios.mtg.server.product
osgi.framework.extensions=reference\:file\:org.eclipse.persi stence.jpa.equinox.weaving_2.1.0.v20100614-r7608.jar
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=lu.kreios.mtg.server.application
org.eclipse.equinox.http.jetty.http.port=8080
eclipse.ignoreApp=true
On the other hand, using Buckminster and a custom ANT action to trigger
the product materialization will create a config.ini like this:
eclipse.p2.profile=MyTravelGuideServerProfile
osgi.framework=file\:plugins/org.eclipse.osgi_3.6.0.v2010051 7.jar
osgi.bundles=reference\:file\: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.e clipse.equinox.simpleconfigurator/bundles.info
eclipse.product=lu.kreios.mtg.server.product
osgi.framework.extensions=reference\:file\:org.eclipse.persi stence.jpa.equinox.weaving_2.1.0.v20100614-r7608.jar
eclipse.p2.data.area=@config.dir/../p2
osgi.bundles.defaultStartLevel=4
eclipse.application=lu.kreios.mtg.server.application
As it turns out, Buckminster seems to have simply ignore my custom
config.ini entries when generating the underlying P2 meta-data.
The corresponding snippet from content.xml WITHOUT Buckminster:
<unit
id=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
version="1.0.0" singleton="false">
<provides size="2">
<provided namespace="org.eclipse.equinox.p2.iu"
name=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
version="1.0.0"/>
<provided namespace="toolinglu.kreios.mtg.server.product"
name="lu.kreios.mtg.server.product.config" version="1.0.0"/>
</provides>
<filter> (&(osgi.arch=x86_64)(osgi.os=macosx)(osgi.ws=cocoa))
</filter>
<touchpoint id="org.eclipse.equinox.p2.osgi" version="1.0.0"/>
<touchpointData size="1">
<instructions size="2">
<instruction key="unconfigure">
setProgramProperty(propName:eclipse.ignoreApp,propValue:);se tProgramProperty(propName:org.eclipse.equinox.http.jetty.htt p.port,propValue:);setProgramProperty(propName:osgi.noShutdo wn,propValue:);setProgramProperty(propName:eclipse.applicati on,propValue:);setProgramProperty(propName:osgi.console,prop Value:);setProgramProperty(propName:eclipse.product,propValu e:);setProgramProperty(propName:org.osgi.service.http.port,p ropValue:);
</instruction>
<instruction key="configure">
setProgramProperty(propName:eclipse.ignoreApp,propValue:true );setProgramProperty(propName:org.eclipse.equinox.http.jetty .http.port,propValue:8080);setProgramProperty(propName:osgi. noShutdown,propValue:true);setProgramProperty(propName:eclip se.application,propValue:lu.kreios.mtg.server.application);s etProgramProperty(propName:osgi.console,propValue:true);setP rogramProperty(propName:eclipse.product,propValue:lu.kreios. mtg.server.product);setProgramProperty(propName:org.osgi.ser vice.http.port,propValue:8080);
</instruction>
</instructions>
</touchpointData>
</unit>
The corresponding snippet WITH Buckminster (note the lack of the
additional setProgramProperty(..) declarations):
<unit
id=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
version="1.0.0" singleton="false">
<provides size="2">
<provided namespace="org.eclipse.equinox.p2.iu"
name=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
version="1.0.0"/>
<provided namespace="toolinglu.kreios.mtg.server.product"
name="lu.kreios.mtg.server.product.config" version="1.0.0"/>
</provides>
<filter> (&(osgi.arch=x86_64)(osgi.os=macosx)(osgi.ws=cocoa))
</filter>
<touchpoint id="org.eclipse.equinox.p2.osgi" version="1.0.0"/>
<touchpointData size="1">
<instructions size="2">
<instruction key="unconfigure">
setProgramProperty(propName:eclipse.application,propValue:); setProgramProperty(propName:eclipse.product,propValue:);
</instruction>
<instruction key="configure">
setProgramProperty(propName:eclipse.application,propValue:lu .kreios.mtg.server.application);setProgramProperty(propName: eclipse.product,propValue:lu.kreios.mtg.server.product);
</instruction>
</instructions>
</touchpointData>
</unit>
Any idea why this is? How can I best deal with this issue? Add a custom
p2.inf file to the surrounding bundle?
Thanks in advance,
Chris
|
|
|
Re: Support for custom config.ini [message #550387 is a reply to message #550378] |
Fri, 30 July 2010 08:27 |
|
Hi Christian,
Can you please enter a bugzilla for this? Buckminster should not ignore
your custom config.ini.
Thanks,
- thomas
On 07/30/2010 09:38 AM, Christian Kesselheim wrote:
> Hello everyone,
>
> I've got a small problem with a custom config.ini that I wanna use for
> one of my products. In Eclipse, the corresponding product descriptor has
> "Use an existing config.ini file" set to the following file:
>
> osgi.console=true
> osgi.noShutdown=true
> eclipse.ignoreApp=true
> org.osgi.service.http.port=8080
> org.eclipse.equinox.http.jetty.http.port=8080
>
> When I export this product via the Eclipse product export wizard, the
> resulting config.ini will look like this:
>
> osgi.console=true
> eclipse.p2.profile=profile
> osgi.framework=file\:plugins/org.eclipse.osgi_3.6.0.v2010051 7.jar
> org.osgi.service.http.port=8080
> osgi.bundles=reference\:file\: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @1\:start
>
> org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.e clipse.equinox.simpleconfigurator/bundles.info
>
> osgi.noShutdown=true
> eclipse.product=lu.kreios.mtg.server.product
> osgi.framework.extensions=reference\:file\:org.eclipse.persi stence.jpa.equinox.weaving_2.1.0.v20100614-r7608.jar
>
> osgi.bundles.defaultStartLevel=4
> eclipse.p2.data.area=@config.dir/../p2
> eclipse.application=lu.kreios.mtg.server.application
> org.eclipse.equinox.http.jetty.http.port=8080
> eclipse.ignoreApp=true
>
> On the other hand, using Buckminster and a custom ANT action to trigger
> the product materialization will create a config.ini like this:
>
> eclipse.p2.profile=MyTravelGuideServerProfile
> osgi.framework=file\:plugins/org.eclipse.osgi_3.6.0.v2010051 7.jar
> osgi.bundles=reference\:file\: org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar @1\:start
>
> org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.e clipse.equinox.simpleconfigurator/bundles.info
>
> eclipse.product=lu.kreios.mtg.server.product
> osgi.framework.extensions=reference\:file\:org.eclipse.persi stence.jpa.equinox.weaving_2.1.0.v20100614-r7608.jar
>
> eclipse.p2.data.area=@config.dir/../p2
> osgi.bundles.defaultStartLevel=4
> eclipse.application=lu.kreios.mtg.server.application
>
> As it turns out, Buckminster seems to have simply ignore my custom
> config.ini entries when generating the underlying P2 meta-data.
>
> The corresponding snippet from content.xml WITHOUT Buckminster:
>
> <unit
> id=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
> version="1.0.0" singleton="false">
> <provides size="2">
> <provided namespace="org.eclipse.equinox.p2.iu"
> name=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
> version="1.0.0"/>
> <provided namespace="toolinglu.kreios.mtg.server.product"
> name="lu.kreios.mtg.server.product.config" version="1.0.0"/>
> </provides>
> <filter> (&(osgi.arch=x86_64)(osgi.os=macosx)(osgi.ws=cocoa)) </filter>
> <touchpoint id="org.eclipse.equinox.p2.osgi" version="1.0.0"/>
> <touchpointData size="1">
> <instructions size="2">
> <instruction key="unconfigure">
> setProgramProperty(propName:eclipse.ignoreApp,propValue:);se tProgramProperty(propName:org.eclipse.equinox.http.jetty.htt p.port,propValue:);setProgramProperty(propName:osgi.noShutdo wn,propValue:);setProgramProperty(propName:eclipse.applicati on,propValue:);setProgramProperty(propName:osgi.console,prop Value:);setProgramProperty(propName:eclipse.product,propValu e:);setProgramProperty(propName:org.osgi.service.http.port,p ropValue:);
> </instruction>
> <instruction key="configure">
> setProgramProperty(propName:eclipse.ignoreApp,propValue:true );setProgramProperty(propName:org.eclipse.equinox.http.jetty .http.port,propValue:8080);setProgramProperty(propName:osgi. noShutdown,propValue:true);setProgramProperty(propName:eclip se.application,propValue:lu.kreios.mtg.server.application);s etProgramProperty(propName:osgi.console,propValue:true);setP rogramProperty(propName:eclipse.product,propValue:lu.kreios. mtg.server.product);setProgramProperty(propName:org.osgi.ser vice.http.port,propValue:8080);
> </instruction>
> </instructions>
> </touchpointData>
> </unit>
>
> The corresponding snippet WITH Buckminster (note the lack of the
> additional setProgramProperty(..) declarations):
>
> <unit
> id=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
> version="1.0.0" singleton="false">
> <provides size="2">
> <provided namespace="org.eclipse.equinox.p2.iu"
> name=" toolinglu.kreios.mtg.server.product.config.cocoa.macosx.x86_ 64 "
> version="1.0.0"/>
> <provided namespace="toolinglu.kreios.mtg.server.product"
> name="lu.kreios.mtg.server.product.config" version="1.0.0"/>
> </provides>
> <filter> (&(osgi.arch=x86_64)(osgi.os=macosx)(osgi.ws=cocoa)) </filter>
> <touchpoint id="org.eclipse.equinox.p2.osgi" version="1.0.0"/>
> <touchpointData size="1">
> <instructions size="2">
> <instruction key="unconfigure">
> setProgramProperty(propName:eclipse.application,propValue:); setProgramProperty(propName:eclipse.product,propValue:);
> </instruction>
> <instruction key="configure">
> setProgramProperty(propName:eclipse.application,propValue:lu .kreios.mtg.server.application);setProgramProperty(propName: eclipse.product,propValue:lu.kreios.mtg.server.product);
> </instruction>
> </instructions>
> </touchpointData>
> </unit>
>
> Any idea why this is? How can I best deal with this issue? Add a custom
> p2.inf file to the surrounding bundle?
>
> Thanks in advance,
>
> Chris
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 07:23:04 GMT 2024
Powered by FUDForum. Page generated in 0.03024 seconds
|