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:
Brett Leslie Porter 2005-04-19 02:46:08 +00:00
parent 9e512f8d03
commit 32c12bd7c2
1 changed files with 10 additions and 2 deletions

View File

@ -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
{