You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/05/23 14:24:12 UTC

[jira] Closed: (MNG-4678) CLI: AbstractConsoleDownloadMonitor, BatchModeDownloadMonitor output download progress to STDOUT

     [ http://jira.codehaus.org/browse/MNG-4678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4678.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
         Assignee: Benjamin Bentmann

Made transfer progress output respect quiet mode in [r947404|http://svn.apache.org/viewvc?view=revision&revision=947404].

> CLI: AbstractConsoleDownloadMonitor, BatchModeDownloadMonitor output download progress to STDOUT
> ------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4678
>                 URL: http://jira.codehaus.org/browse/MNG-4678
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.2.1
>            Reporter: Dimitry Voytenko
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira