/[Apache-SVN]
ViewVC logotype

Revision 1407913


Jump to revision: Previous Next
Author: jvanzyl
Date: Sun Nov 11 04:40:00 2012 UTC (11 years, 11 months ago)
Changed paths: 5
Log Message:
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.

Changed paths

Path Details
Directorymaven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java modified , text changed
Directorymaven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java modified , text changed
Directorymaven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java modified , text changed
Directorymaven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java modified , text changed
Directorymaven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
(Copied from maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java, r1407894)
added , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26