Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4678

CLI: AbstractConsoleDownloadMonitor, BatchModeDownloadMonitor output download progress to STDOUT

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 3.0-beta-2
    • Component/s: Command Line
    • Labels:
      None

      Description

      The code looks about like this:

      public void transferInitiated( TransferEvent transferEvent )

      { String message = transferEvent.getRequestType() == TransferEvent.REQUEST_PUT ? "Uploading" : "Downloading"; String url = transferEvent.getWagon().getRepository().getUrl(); // TODO: can't use getLogger() because this isn't currently instantiated as a component System.out.println( message + ": " + url + "/" + transferEvent.getResource().getName() ); }

      Not sure why Log instance cannot be obtained here, but this really messes up any code that would need to filter STDOUT.

        Attachments

          Activity

            People

            • Assignee:
              bentmann Benjamin Bentmann
              Reporter:
              dvoytenko@reveredata.com Dimitry E Voytenko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: