karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paouelle <paoue...@gmail.com>
Subject Re: Failing to uninstall a feature marked as not required
Date Tue, 23 Jan 2018 17:43:39 GMT
Thanks Guillaume for the explanation.

I will say that this is very confusing beyond the error message displayed
since a feature can still be "not required" and yet be reported as installed
via the isInstall() or listInstalledFeatures().

In addition, calling uninstallFeature() does more than simply mark the
feature as "not required" as it actually removes it from the internal
'state.installedFeatures' table at which point isInstall() will return false
and listInstalledFeature() will no longer report it (same for the cmd
shell).

There is definitely a difference in the implementation between
installed/not-installed vs required/not-required. 

Maybe specific methods to mark a feature required or not beyond the
confusing use of addRequirements(),  removeRequirements() and
installFeature(), uninstallFeature() is in order.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Mime
View raw message