o Fixed event adapter to pass local file along

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@826867 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-10-19 23:10:19 +00:00
parent 3ba6522433
commit 1dac10a618
1 changed files with 7 additions and 2 deletions

View File

@ -88,14 +88,19 @@ public class TransferListenerAdapter
MavenArtifact artifact = wrap( event.getResource() );
ArtifactTransferEvent evt;
if ( event.getException() != null )
{
return new ArtifactTransferEvent( wagon, event.getException(), event.getRequestType(), artifact );
evt = new ArtifactTransferEvent( wagon, event.getException(), event.getRequestType(), artifact );
}
else
{
return new ArtifactTransferEvent( wagon, event.getEventType(), event.getRequestType(), artifact );
evt = new ArtifactTransferEvent( wagon, event.getEventType(), event.getRequestType(), artifact );
}
evt.setLocalFile( event.getLocalFile() );
return evt;
}
}