mirror of https://github.com/apache/maven.git
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:
parent
3ba6522433
commit
1dac10a618
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue