karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3364) Karaf shell command argument 'string' type handling - loosing leading zeros
Date Mon, 17 Nov 2014 13:25:34 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214646#comment-14214646
] 

Martin Lichtin commented on KARAF-3364:
---------------------------------------

Hi Freeman
I understand the shell wants to be smart about the argument type, but when I annnotate a _String_
argument, such as

  @Argument(index = 0, required = true, description = "myname")
  private String paramName;

Then I want the shell to set 'paramName' with the value as it was typed. 
It should only be necessary to quote the argument in case of needing to pass special characters,
such as white space, etc.

Of course if I declare a 'Double' argument, then I expect the shell to convert the string
into the required type.

> Karaf shell command argument 'string' type handling - loosing leading zeros
> ---------------------------------------------------------------------------
>
>                 Key: KARAF-3364
>                 URL: https://issues.apache.org/jira/browse/KARAF-3364
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.2
>            Reporter: Martin Lichtin
>            Priority: Minor
>
> karaf <at> root()> feature:install 007
> Error executing command: No feature named '7' with version '0.0.0' available
> It seems argument-handling changes the value of a string argument.
> Workaround is to quote the value.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message