{
boolean artifactFound = false;
MavenJellyContext context = getProject().getContext();
ProxyInfo proxyInfo = null;
if ( context.getProxyHost() != null )
{
proxyInfo = new ProxyInfo();
proxyInfo.setHost( context.getProxyHost() );
try
{
proxyInfo.setPort( Integer.valueOf( context.getProxyPort() ).intValue() );
}
catch ( NumberFormatException e )
{
log.warn( "Ignoring invalid proxy port: '" + context.getProxyPort() + "'" );
}
proxyInfo.setUserName( context.getProxyUserName() );
proxyInfo.setPassword( context.getProxyPassword() );
proxyInfo.setNonProxyHosts( (String) context.getVariable( MavenConstants.PROXY_NONPROXYHOSTS ) );
proxyInfo.setNtlmHost( (String) context.getVariable( MavenConstants.PROXY_NTLM_HOST ) );
proxyInfo.setNtlmDomain( (String) context.getVariable( MavenConstants.PROXY_NTLM_DOMAIN ) );
}
String meterType = (String) context.getVariable( MavenConstants.DOWNLOAD_METER );
if ( meterType == null )
{