MNG-5374: Fix transfer listener after the JSR330 merge
For the following cases I have done the following:
1) Logging to the console: I simply restored the class that was there such that when logging to the console it uses System.out as it did and the d
ownload progress appears as it did.
2) Logging in batch mode: the batch mode transfer listener uses an SLF4J logger and the batch mode transfer listener doesn't report download progr
ess so there is no issue. Download progress would just create a bunch of noise. The size and the speed at which it is downloaded are logged.
3) Logging to a file: same as 2) except it's all diverted to the specified file.
4) I created two protected methods in MavenCli so that integrators can supply their own console and batch transfer listeners if they wish.
|