Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3738

Karaf client should be able to read environment variables

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4, 4.0.0.M3
    • Component/s: None
    • Labels:
      None

      Description

      Now the client can only get the properties from org.apache.karaf.shell.cfg and doesn't look up in environment variables.

      So specifying in org.apache.karaf.shell.cfg file something different from raw values will cause similar exception:

      Exception in thread "main" java.lang.NumberFormatException: For input string: "${ssh.port}"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:481)
      at java.lang.Integer.parseInt(Integer.java:527)
      at org.apache.karaf.client.ClientConfig.<init>(ClientConfig.java:46)
      at org.apache.karaf.client.Main.main(Main.java:51)

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              iwnofinal Korenev Artem
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: