Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deploy modified plugin(How to do it?)
Deploy modified plugin [message #696050] Wed, 13 July 2011 07:31 Go to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
Hi all,

I did some changes to org.eclipse.wst.xml.ui plug-in (I have downloaded sources from Eclipse CVS repository).

Now I would like to deploy it. I created a JAR file using Export Wizard.
Resulting JAR is: org.eclipse.wst.xml.ui_1.2.000.QUALIFIER.

My plug-in is not loaded, only the default one is loaded.

Probably because is the default one linked to a feature.xml?

Why?

[Updated on: Wed, 13 July 2011 07:57]

Report message to a moderator

Re: Deploy modified plugin [message #696273 is a reply to message #696050] Wed, 13 July 2011 15:45 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
Ok, I succeeded modifying a configuration files in configuration folder.

Marco
Re: Deploy modified plugin [message #697101 is a reply to message #696273] Fri, 15 July 2011 14:22 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 7/13/2011 11:45 AM, MarcoGT wrote:
> Ok, I succeeded modifying a configuration files in configuration folder.
>
> Marco

For reference, it's typically the plug-in version listed in the
feature.xml of the appropriate feature that identifies the version of
plug-in to run. For org.eclipse.wst.xml.ui, you would find it in the
feature.xml under the
"eclipse\features\org.eclipse.wst.xml_ui.feature_<version>" folder.

When Eclipse "resolves" what plug-ins should run, it writes the results
to the configuration file you likely modified. If a "resolution" is
triggered in the future, possibly by adding or updating some feature,
you might lose your changes. In theory, it is better to update the
feature.xml to specify your version, or save a copy of the original
plug-in and build your plug-in to have the same version as the one it's
replacing.

Cheers,
Larry
Re: Deploy modified plugin [message #698555 is a reply to message #697101] Tue, 19 July 2011 17:20 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
I tried to modify the feature.xml but it always loads the default plugin.
Instead, if I modify the configuration file my plugin is loaded (without modifying feature.xml)

Furthermore, I tried in a "clean" installation of Eclipse to edit feature.xml and XML Editor is loaded.
As far as I know feature.xml is used to update plugins.

http://wiki.eclipse.org/Equinox_p2_Getting_Started

[Updated on: Tue, 19 July 2011 17:57]

Report message to a moderator

Re: Deploy modified plugin [message #698588 is a reply to message #698555] Tue, 19 July 2011 18:40 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 7/19/2011 1:20 PM, MarcoGT wrote:
> I tried to modify the feature.xml but it always loads the default plugin.
> Instead, if I modify the configuration file my plugin is loaded (without
> modifying feature.xml)
>

I'm guessing it's the bundles.info file you are modifying. It probably
wouldn't hurt to modify both. I'm pretty sure the version value in the
feature.xml is the "master" value. What is in bundles.info is a cached
copy of the set of plug-ins Eclipse thinks it should run based on the
last "resolution" that it performed. One of the sources of information
the "resolution" uses to calculate that set of plug-ins is the
feature.xml files.

Cheers,
Larry
Re: Deploy modified plugin [message #698610 is a reply to message #698588] Tue, 19 July 2011 19:55 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
Ok but why nothing changes if I modify the feature.xml?

If I want Eclipse loads my modified plug-in I have to edit bundles.info as said here

Quote:

The file bundles.info contains a list of all the plug-ins installed in the current system. On startup, all the plug-ins listed in this file are given to OSGi as the exact set of plug-ins to run with.

Any extra plug-ins in the plugins directory or elsewhere are ignored. If you really want to force Eclipse to startup with a particular set of bundles installed, you could manually edit this file to have the contents you need.
Re: Deploy modified plugin [message #698620 is a reply to message #698610] Tue, 19 July 2011 20:03 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 7/19/2011 3:55 PM, MarcoGT wrote:
> Ok but why nothing changes if I modify the feature.xml?

A "resolution" is not being triggered. These days, I'm not sure what
all the triggers are, but I would guess that "Check for Updates" and
"Install New Software" would do it. If triggered, your changes to
bundles.info could get overwritten with the value from feature.xml,
which would matter if they were different.

Cheers,
Larry

>
> If I want Eclipse loads my modified plug-in I have to edit bundles.info
> as said here
>
> Quote:
>> The file bundles.info contains a list of all the plug-ins installed in
>> the current system. On startup, all the plug-ins listed in this file
>> are given to OSGi as the exact set of plug-ins to run with.
>>
>> Any extra plug-ins in the plugins directory or elsewhere are ignored.
>> If you really want to force Eclipse to startup with a particular set
>> of bundles installed, you could manually edit this file to have the
>> contents you need.
>
Re: Deploy modified plugin [message #698727 is a reply to message #698620] Wed, 20 July 2011 05:29 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
Ok, I got it.
I don't know if you are expert in this field...but...can you have a look at this?

http://www.eclipse.org/forums/index.php/t/220536/

Thanks
Marco
Re: Deploy modified plugin [message #699416 is a reply to message #698727] Thu, 21 July 2011 13:59 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 7/20/2011 1:29 AM, MarcoGT wrote:
> Ok, I got it.
> I don't know if you are expert in this field...but...can you have a look
> at this?
>
> http://www.eclipse.org/forums/index.php/t/220536/
>
> Thanks
> Marco

I can't say what the problem might be. However, the last four lines of
the build.properties files suggests that you have added the "lib" folder
as a Java source folder, which is a bit odd for a folder with that name.
It is also odd that it appears to be trying to create multiple jar
libraries in the plug-in from the same "bin" output folder. I don't
know if this is enough to confuse Eclipse into building the plugin
incorrectly. I would expect there to be some warnings in this
build.properties file.

Cheers,
Larry
Previous Topic:javascript code completion/code navigation api
Next Topic:Add javadoc to WebApp
Goto Forum:
  


Current Time: Thu Mar 28 11:35:05 GMT 2024

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

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

Back to the top