Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 2.9.0
    • Component/s: Core, Servers
    • Labels:
      None

      Description

      As discussed in the mailing list, replace uses of JCommander with picocli to get

      • customizable usage help
      • usage help with ANSI colors
      • better support for positional parameters (so we can use positional parameters for mandatory arguments and options for optional arguments)
      • include picocli as source so users can run these applications without requiring an external dependency

      Candidates for usage are:

      log4j-core

      • CustomLoggerGenerator
      • ExtendedLoggerGenerator
      • Generate
      • PluginManager

      log4j-jmx-gui

      • ClientGui

      log4j-1.2-api

      • Log4j1ConfigurationConverter

      logging-log4j-tools/log4j-server

      • AbstractSocketServer
      • TcpSocketServer
      • UdpSocketServer

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit c2818beca59e948c205c359f714f24eff7340477 in logging-log4j2's branch refs/heads/master from rpopma
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=c2818be ]

        LOG4J2-2011 replace JCommander command line parser with picocli to let users run Log4j2 utility applications without requiring an external dependency

        Show
        jira-bot ASF subversion and git services added a comment - Commit c2818beca59e948c205c359f714f24eff7340477 in logging-log4j2's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=c2818be ] LOG4J2-2011 replace JCommander command line parser with picocli to let users run Log4j2 utility applications without requiring an external dependency
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 0007b107b94f5b5024ea4aaa189bb8e0b7bf1c5c in logging-log4j-tools's branch refs/heads/master from rpopma
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j-tools.git;h=0007b10 ]

        LOG4J2-2011 replace JCommander command line parser with picocli to let users run Log4j2 utility applications without requiring an external dependency

        Show
        jira-bot ASF subversion and git services added a comment - Commit 0007b107b94f5b5024ea4aaa189bb8e0b7bf1c5c in logging-log4j-tools's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j-tools.git;h=0007b10 ] LOG4J2-2011 replace JCommander command line parser with picocli to let users run Log4j2 utility applications without requiring an external dependency
        Hide
        remkop@yahoo.com Remko Popma added a comment -

        Migrated to picocli, and users no longer need an external dependency to run Log4j2 utility applications like TcpSocketServer or Log4j1ConfigurationConverter.

        There is still some remaining work to add description annotations on these commands to generate nicer usage help messages, and migrate some other utility applications that did not use JCommander to use picocli.

        Show
        remkop@yahoo.com Remko Popma added a comment - Migrated to picocli, and users no longer need an external dependency to run Log4j2 utility applications like TcpSocketServer or Log4j1ConfigurationConverter. There is still some remaining work to add description annotations on these commands to generate nicer usage help messages, and migrate some other utility applications that did not use JCommander to use picocli.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e2f9d5ed42c32f3051931780e786da7e6468ec91 in logging-log4j2's branch refs/heads/master from rpopma
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=e2f9d5e ]

        LOG4J2-2011 moved classes from util.picocli to tools.picocli

        Show
        jira-bot ASF subversion and git services added a comment - Commit e2f9d5ed42c32f3051931780e786da7e6468ec91 in logging-log4j2's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=e2f9d5e ] LOG4J2-2011 moved classes from util.picocli to tools.picocli
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 5c1f0a0d5c773846d05b4d78fc9eecf71df814b8 in logging-log4j-tools's branch refs/heads/master from rpopma
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j-tools.git;h=5c1f0a0 ]

        LOG4J2-2011 moved classes from util.picocli to tools.picocli

        Show
        jira-bot ASF subversion and git services added a comment - Commit 5c1f0a0d5c773846d05b4d78fc9eecf71df814b8 in logging-log4j-tools's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j-tools.git;h=5c1f0a0 ] LOG4J2-2011 moved classes from util.picocli to tools.picocli

          People

          • Assignee:
            remkop@yahoo.com Remko Popma
            Reporter:
            remkop@yahoo.com Remko Popma
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development