[ 
https://issues.apache.org/jira/browse/FELIX-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751775#action_12751775
 ] 

Filippo Diotalevi commented on FELIX-1560:
------------------------------------------

My proposal is to allow the user to (optionally) defined a system property:
org.apache.felix.shell.disable=[comma separated list of commands to disable]

i.e
org.apache.felix.shell.disable=shutdown,cd,version

When the Activator starts, it checks the presence of the 
org.apache.felix.shell.disable system property.
If any command is disabled, the corresponding Command client is not registered.

For backward compatibility, if the system property is not defined all the 
commands are installed.

---

Let me know if you have any objection/improvement; I'll apply the modification 
in the coming days unless someone objects.

> [Shell] Allow to disable Felix Shell default commands
> -----------------------------------------------------
>
>                 Key: FELIX-1560
>                 URL: https://issues.apache.org/jira/browse/FELIX-1560
>             Project: Felix
>          Issue Type: Improvement
>          Components: Shell
>    Affects Versions: shell-1.2.0
>            Reporter: Filippo Diotalevi
>            Assignee: Filippo Diotalevi
>             Fix For: shell-1.4.0
>
>
> Default shell commands (cd, ps, services, version, start, stop, shutdown, 
> ...) are always installed with the Shell Service. 
> That makes the shell less customizable, as it is not possible to disable 
> undesired commands (i.e. "shutdown").

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to