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

CLI: AbstractConsoleDownloadMonitor, BatchModeDownloadMonitor output download progress to STDOUT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 3.0-beta-2
    • Command Line
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: