Karaf
  1. Karaf
  2. KARAF-696

Add a macro allowing users to identify the contents of a specific config file.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.3, 3.0.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      Add the following to shell.init.script:
      cl = { config:list "

      {service.pid=$args)" }

      ;

      The only downside is that the command will not work if config isn't installed.

      1. karaf-696.txt
        0.6 kB
        Michael Van Geertruy

        Activity

        Michael Van Geertruy created issue -
        Hide
        Michael Van Geertruy added a comment -

        This was originally identifed at CamelOne as a nice-to-have. Wrote it and used it at home for a month, and there haven't been any issues.

        Show
        Michael Van Geertruy added a comment - This was originally identifed at CamelOne as a nice-to-have. Wrote it and used it at home for a month, and there haven't been any issues.
        Hide
        Michael Van Geertruy added a comment -

        Macro added to shell.init.script.

        Show
        Michael Van Geertruy added a comment - Macro added to shell.init.script.
        Michael Van Geertruy made changes -
        Field Original Value New Value
        Attachment karaf-696.txt [ 12484908 ]
        Jean-Baptiste Onofré made changes -
        Assignee Jean-Baptiste Onofré [ jbonofre ]
        Jean-Baptiste Onofré made changes -
        Fix Version/s 2.2.3 [ 12316685 ]
        Fix Version/s 3.0.1 [ 12316945 ]
        Hide
        Jean-Baptiste Onofré added a comment -

        Your patch is not correct (typo mistake I suppose).

        The alias should look like:

        cl =

        { config:list "(service.pid=$args)" }

        and not

        cl = { config:list "

        {service.pid=$args)" }

        It's a LDAP like filter.

        I fix that and apply.

        Show
        Jean-Baptiste Onofré added a comment - Your patch is not correct (typo mistake I suppose). The alias should look like: cl = { config:list "(service.pid=$args)" } and not cl = { config:list " {service.pid=$args)" } It's a LDAP like filter. I fix that and apply.
        Jean-Baptiste Onofré made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Jean-Baptiste Onofré added a comment -

        Fixed on trunk: revision 1142968.

        Show
        Jean-Baptiste Onofré added a comment - Fixed on trunk: revision 1142968.
        Hide
        Jean-Baptiste Onofré added a comment -

        Fixed on karaf-2.2.x: revision 1142975.

        Show
        Jean-Baptiste Onofré added a comment - Fixed on karaf-2.2.x: revision 1142975.
        Jean-Baptiste Onofré made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jamie goodyear made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Andreas Pieber added a comment -

        wrong target versions

        Show
        Andreas Pieber added a comment - wrong target versions
        Andreas Pieber made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Andreas Pieber made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Fix Version/s 3.0.0 [ 12316040 ]
        Fix Version/s 3.0.1 [ 12316945 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Michael Van Geertruy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development