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
-
Complexity:Intermediate
-
Number of attachments :
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.
What does "filter STDOUT" exactly mean? For usage in batch scenarios, one can add -batch to the Maven CLI and disable progress output. stdout is intentionally used by the CLI for the progress monitor because the logger does not support "\r".