Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster dev » replace a plugin in buckminster
replace a plugin in buckminster [message #534839] Thu, 20 May 2010 13:27 Go to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

to workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=278909 I wanted
to replace the org.eclipse.pde.build plugin in my buckminster installation
with a self-built one that has the fix included. Unfortunately after
building the plugin and exporting it from Eclipse its not used by
buckminster. I've copied the contents of the generated jar-file into the
corresponding folder in the buckminster/plugins directory, but the code is
apparently not executed (I've added some code to the function which should
generate a file in /tmp/, but that doesn't happen).

So I guess I'm missing something here?

Andreas
Re: replace a plugin in buckminster [message #534956 is a reply to message #534839] Thu, 20 May 2010 18:58 Go to previous messageGo to next message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hi Andreas,

If you create a p2 site that contains your patched bundle, you can simply
use the director to install that single bundle into Buckminster. No feature
required. Just make sure your version number is higher than the one that is
already installed.

Cheers,
Achim

Andreas Pakulat wrote:

> Hi,
>
> to workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=278909 I
> wanted to replace the org.eclipse.pde.build plugin in my buckminster
> installation with a self-built one that has the fix included.
> Unfortunately after building the plugin and exporting it from Eclipse its
> not used by buckminster. I've copied the contents of the generated
> jar-file into the corresponding folder in the buckminster/plugins
> directory, but the code is apparently not executed (I've added some code
> to the function which should generate a file in /tmp/, but that doesn't
> happen).
>
> So I guess I'm missing something here?
>
> Andreas
Re: replace a plugin in buckminster [message #535125 is a reply to message #534956] Fri, 21 May 2010 11:12 Go to previous messageGo to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Hi Achim,

Hmm, how would I do that? It doesn't seem to be possible to build a p2 site
with Buckminster from a single plugin. I've meanwhile tried with an extra
feature and updatesite and installing that into Buckminster but it doesn't
seem like this worked (even though there were no errors and the pde-build
plugin in my buckminster seems to be the self-built version).

Andreas

Achim Demelt wrote:

> Hi Andreas,
>
> If you create a p2 site that contains your patched bundle, you can simply
> use the director to install that single bundle into Buckminster. No
> feature required. Just make sure your version number is higher than the
> one that is already installed.
>
> Cheers,
> Achim
>
> Andreas Pakulat wrote:
>
>> Hi,
>>
>> to workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=278909 I
>> wanted to replace the org.eclipse.pde.build plugin in my buckminster
>> installation with a self-built one that has the fix included.
>> Unfortunately after building the plugin and exporting it from Eclipse its
>> not used by buckminster. I've copied the contents of the generated
>> jar-file into the corresponding folder in the buckminster/plugins
>> directory, but the code is apparently not executed (I've added some code
>> to the function which should generate a file in /tmp/, but that doesn't
>> happen).
>>
>> So I guess I'm missing something here?
>>
>> Andreas
Re: replace a plugin in buckminster [message #535134 is a reply to message #535125] Fri, 21 May 2010 12:03 Go to previous messageGo to next message
Achim Demelt is currently offline Achim DemeltFriend
Messages: 160
Registered: July 2009
Senior Member
Hmm, that's strange. I did the same thing with a patched version of JDT, and
it worked nicely. You may want to peek into the bundles.info file in the
configuration/org.eclipse.equinox.simpleconfigurator/ directory of your
Buckminster installation. There you can see which version of the bundle is
known to p2. I assume the version number of your self-built bundle is higher
than the original one, right?

Achim

Andreas Pakulat wrote:

> Hi Achim,
>
> Hmm, how would I do that? It doesn't seem to be possible to build a p2
> site with Buckminster from a single plugin. I've meanwhile tried with an
> extra feature and updatesite and installing that into Buckminster but it
> doesn't seem like this worked (even though there were no errors and the
> pde-build plugin in my buckminster seems to be the self-built version).
>
> Andreas
>
> Achim Demelt wrote:
>
>> Hi Andreas,
>>
>> If you create a p2 site that contains your patched bundle, you can simply
>> use the director to install that single bundle into Buckminster. No
>> feature required. Just make sure your version number is higher than the
>> one that is already installed.
>>
>> Cheers,
>> Achim
>>
>> Andreas Pakulat wrote:
>>
>>> Hi,
>>>
>>> to workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=278909 I
>>> wanted to replace the org.eclipse.pde.build plugin in my buckminster
>>> installation with a self-built one that has the fix included.
>>> Unfortunately after building the plugin and exporting it from Eclipse
>>> its not used by buckminster. I've copied the contents of the generated
>>> jar-file into the corresponding folder in the buckminster/plugins
>>> directory, but the code is apparently not executed (I've added some code
>>> to the function which should generate a file in /tmp/, but that doesn't
>>> happen).
>>>
>>> So I guess I'm missing something here?
>>>
>>> Andreas
Re: replace a plugin in buckminster [message #535140 is a reply to message #535134] Fri, 21 May 2010 12:27 Go to previous messageGo to next message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
The file does have the updated version listed. I didn't increase the version
itself before as the qualifier that was set was definetly higher. But I
tried replacing the .0 with .1 and I can see that the .1 should be picked,
nonetheless its almost as if my added code is not being executed.

I'll run buckminster with remote-debugger enabled now to see wether the code
is actually getting into that function.

Andreas

Achim Demelt wrote:

> Hmm, that's strange. I did the same thing with a patched version of JDT,
> and it worked nicely. You may want to peek into the bundles.info file in
> the configuration/org.eclipse.equinox.simpleconfigurator/ directory of
> your Buckminster installation. There you can see which version of the
> bundle is known to p2. I assume the version number of your self-built
> bundle is higher than the original one, right?
>
> Achim
>
> Andreas Pakulat wrote:
>
>> Hi Achim,
>>
>> Hmm, how would I do that? It doesn't seem to be possible to build a p2
>> site with Buckminster from a single plugin. I've meanwhile tried with an
>> extra feature and updatesite and installing that into Buckminster but it
>> doesn't seem like this worked (even though there were no errors and the
>> pde-build plugin in my buckminster seems to be the self-built version).
>>
>> Andreas
>>
>> Achim Demelt wrote:
>>
>>> Hi Andreas,
>>>
>>> If you create a p2 site that contains your patched bundle, you can
>>> simply use the director to install that single bundle into Buckminster.
>>> No feature required. Just make sure your version number is higher than
>>> the one that is already installed.
>>>
>>> Cheers,
>>> Achim
>>>
>>> Andreas Pakulat wrote:
>>>
>>>> Hi,
>>>>
>>>> to workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=278909 I
>>>> wanted to replace the org.eclipse.pde.build plugin in my buckminster
>>>> installation with a self-built one that has the fix included.
>>>> Unfortunately after building the plugin and exporting it from Eclipse
>>>> its not used by buckminster. I've copied the contents of the generated
>>>> jar-file into the corresponding folder in the buckminster/plugins
>>>> directory, but the code is apparently not executed (I've added some
>>>> code to the function which should generate a file in /tmp/, but that
>>>> doesn't happen).
>>>>
>>>> So I guess I'm missing something here?
>>>>
>>>> Andreas
Re: replace a plugin in buckminster [message #535158 is a reply to message #535140] Fri, 21 May 2010 12:58 Go to previous message
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Andreas Pakulat wrote:

> The file does have the updated version listed. I didn't increase the
> version itself before as the qualifier that was set was definetly higher.
> But I tried replacing the .0 with .1 and I can see that the .1 should be
> picked, nonetheless its almost as if my added code is not being executed.
>
> I'll run buckminster with remote-debugger enabled now to see wether the
> code is actually getting into that function.

Seems like thats not working either, the remote-debugging never stops at the
breakpoints I set in eclipse. But that eclipse just forgot about all its
target platforms, so maybe there's just something broken. For now I'll have
to defer building MacOSX packages of our RCP app to another buildsystem.
Previous Topic:Running Buckminster via java -jar fails to import with JDK 1.5
Next Topic:Headless buckminster commands broken in 3.6?
Goto Forum:
  


Current Time: Sun Sep 23 23:39:07 GMT 2018

Powered by FUDForum. Page generated in 0.01963 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top