Skip to content

Commit

Permalink
nicer output
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jan 24, 2013
1 parent 177fe8f commit 06321cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/jbundler/SimpleRepositoryListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ private String toUrl(RepositoryEvent event) {
RemoteRepository repository = (RemoteRepository) event.getRepository();
String path = lrm.getPathForRemoteArtifact(event.getArtifact(), repository, null);
String url = repository.getUrl() + "/" + path;
if (repository.getProxy() != null )
url += " via proxy " + repository.getProxy();
return url;
}

public void artifactDownloaded(RepositoryEvent event) {
out.println("artifact downloaded: " + event.getArtifact());
out.println("downloaded " + toUrl(event));
}

public void metadataInvalid(RepositoryEvent event) {
Expand Down

0 comments on commit 06321cb

Please sign in to comment.