mirror of https://github.com/apache/maven.git
start some wagon clean up
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e512f8d03
commit
32c12bd7c2
|
@ -46,6 +46,7 @@ import java.util.HashMap;
|
|||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
||||
public class DefaultWagonManager
|
||||
extends AbstractLogEnabled
|
||||
|
@ -131,8 +132,15 @@ public class DefaultWagonManager
|
|||
// }
|
||||
|
||||
// TODO: configure these
|
||||
wagon.addTransferListener( new ChecksumObserver( "MD5" ) );
|
||||
wagon.addTransferListener( new ChecksumObserver( "SHA-1" ) );
|
||||
try
|
||||
{
|
||||
wagon.addTransferListener( new ChecksumObserver( "MD5" ) );
|
||||
wagon.addTransferListener( new ChecksumObserver( "SHA-1" ) );
|
||||
}
|
||||
catch ( NoSuchAlgorithmException e )
|
||||
{
|
||||
throw new TransferFailedException( "Unable to add checksum methods", e );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue