Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » my feature can't be disable
my feature can't be disable [message #461663] Mon, 15 January 2007 21:29 Go to next message
Eclipse UserFriend
Originally posted by: zxkane.msn.com

I install a feature with command line in eclipse development env.

my program argument is following:
-application org.eclipse.update.core.standaloneUpdate -command install -featureId my.feature -version 1.0.0 -from file:/v:/local_updateSite/

The feature installation is successful, and the global install handler of feature is executed well.

Then I try to disable the feature with command,
-command disable -featureId my.feature -version 1.0.0 -to file:/v:/eclipse/

The output of command means that the command is executed successfully.

But I list the status of features with command line "-command listFeatures", the status of my.feature is still enable.

Then I try to uninstall my.feature with command,
-command uninstall -featureId my.feature -version 1.0.0 -to file:/v:/eclipse/
It fails, and the following is the root cause found in log file.
!MESSAGE [Cannot find unconfigured feature my.feature with version 1.0.0]
unconfigured feature means the feature is disabled.

How can I do to disable my feature?
Re: my feature can't be disable [message #461667 is a reply to message #461663] Tue, 16 January 2007 00:55 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like a bug in the listFeatures, and/or the listFeatures shows the disabled ones too. You might want to consider filing a bug at https://bugs.eclipse.org; it might be that the listFeatures is showing all features, whether disabled or not.

Separately, I'd expect that the uninstall should work regardless of whether a feature is enabled or disabled. It may be that the disable is corrupting it somehow, with the result that you are left in an inconsistent state after disabling; either way, it's worth raising a bug.

Alex.
Re: my feature can't be disable [message #461673 is a reply to message #461667] Tue, 16 January 2007 01:25 Go to previous message
Eclipse UserFriend
Originally posted by: zxkane.msn.com

Alex, thanks for your reply

> Sounds like a bug in the listFeatures, and/or the
> listFeatures shows the disabled ones too. You might
> want to consider filing a bug at
> https://bugs.eclipse.org; it might be that the
> listFeatures is showing all features, whether
> disabled or not.
>
listFeatures will list all features under the site whether it is enabled or disabled.
like this:
Site: file:/v:/eclipse/
Feature: my.feature 1.0.0 enabled
Feature: my.feature1 1.0.0 enabled
Feature: my.feature2 1.0.0 disabled
Command completed successfully.

> Separately, I'd expect that the uninstall should work
> regardless of whether a feature is enabled or
> disabled. It may be that the disable is corrupting it
> somehow, with the result that you are left in an
> inconsistent state after disabling; either way, it's
> worth raising a bug.
>
This also is what I expect :)

And Help-Software Updates-Manage Configuration can disable a feature, and the status of feature in "product configuration" is disabled, however I find the status of feature is enabled according to listFeatures command.
Previous Topic:VM arguments in RCP Product?
Next Topic:How to use ILazyContentProvider with the Virtual table.
Goto Forum:
  


Current Time: Fri Mar 21 17:48:17 EDT 2025

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

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

Back to the top