Community
Participate
Working Groups
Build Identifier: I20120315-1300 Mixed-case console commands from org.eclipse.equinox.app Bundle are not working anymore with the adoption of Apache Felix Gogo console. osgi> startApp xyz gogo: IllegalArgumentException: Cannot find the command method for: _startapp Other lowercase-only commands like “apps” are working just fine. The issue comes from the fact that in org.apache.felix.gogo.runtime.Reflective.method(…), the Command Name is converted to lowercase. So startApp will be converted to startapp and won’t be considered a valid command by org.eclipse.equinox.console.command.adapter.CommandProviderAdapter.findCommand(...) Patch coming... Reproducible: Always Steps to Reproduce: 1. Launch the platform with Console required Bundles 2. osgi> startApp xyz
Proposed Patch: https://github.com/sebastienangers/rt.equinox.bundles/commit/61117fe999f0034ad1f725fa103937202dc98340
I went ahead and committed the patch. Thanks. Lazar please review for correctness. One side effect of this change is that all equinox commands are now case insensitive.
forgot to point to the commit: http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=a193f94ec1e690835c1cb93363c0b33848424d54
(In reply to comment #2) Thanks Thomas for review & commit!
(In reply to comment #2) > I went ahead and committed the patch. Thanks. Lazar please review for > correctness. One side effect of this change is that all equinox commands are > now case insensitive. Patch is OK. Yes, gogo stores the command names all lowercase. So this patch is the only way to allow the mixed case command names.