Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4605

Main.java shouldn't have hard-coded lists of commands for usage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: build, scripts, start
    • Labels:
      None

      Description

      ACCUMULO-4490 added hard-coded lists of commands in the Main class, for the purposes of usage. However, this regresses what ACCUMULO-3514 was trying to fix.

      In addition, the current implementation results in NullPointerExceptions when one of the hard-coded keywords are not found in the classloader.

      Main should be fixed so that it does not depend on hard-coded lists of KeywordExecutables.

      Mike Walch mentioned to me that part of the reason this was done was to affix the ordering of the usage. I think that goal can be achieved by extending the KeywordExecutable interface to include a grouping or ordering attribute instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ctubbsii Christopher Tubbs
                Reporter:
                ctubbsii Christopher Tubbs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m