my feature can't be disable [message #461663] |
Mon, 15 January 2007 21:29  |
Eclipse User |
|
|
|
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 #461673 is a reply to message #461667] |
Tue, 16 January 2007 01:25  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02048 seconds