mirror of https://github.com/apache/archiva.git
Applied code formatting
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@386246 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
859145b3df
commit
eab4cc7819
|
@ -43,11 +43,11 @@ import java.io.IOException;
|
|||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* @author Edwin Punzalan
|
||||
|
@ -200,8 +200,8 @@ public class DefaultProxyManager
|
|||
{
|
||||
if ( checkIfFailureCached( repository.pathOf( artifact ), repository ) )
|
||||
{
|
||||
getLogger().debug( "Skipping repository " + repository.getKey() +
|
||||
" for a cached path failure." );
|
||||
getLogger().debug(
|
||||
"Skipping repository " + repository.getKey() + " for a cached path failure." );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -360,8 +360,7 @@ public class DefaultProxyManager
|
|||
|
||||
if ( checkIfFailureCached( path, repository ) )
|
||||
{
|
||||
getLogger().debug( "Skipping repository " + repository.getKey() +
|
||||
" for a cached path failure." );
|
||||
getLogger().debug( "Skipping repository " + repository.getKey() + " for a cached path failure." );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -96,7 +96,8 @@ public class MavenProxyPropertyLoader
|
|||
String url = getMandatoryProperty( props, "repo." + key + ".url" );
|
||||
String proxyKey = repoProps.getProperty( "proxy" );
|
||||
|
||||
boolean cacheFailures = Boolean.valueOf( repoProps.getProperty( "cache.failures", "false" ) ).booleanValue();
|
||||
boolean cacheFailures =
|
||||
Boolean.valueOf( repoProps.getProperty( "cache.failures", "false" ) ).booleanValue();
|
||||
boolean hardFail = Boolean.valueOf( repoProps.getProperty( "hardfail", "true" ) ).booleanValue();
|
||||
long cachePeriod = Long.parseLong( repoProps.getProperty( "cache.period", "0" ) );
|
||||
|
||||
|
|
|
@ -83,7 +83,8 @@ public class ProxyConfiguration
|
|||
httpProxy.setPassword( password );
|
||||
}
|
||||
|
||||
public void setHttpProxy( String host, int port, String username, String password, String ntlmHost, String ntlmDomain )
|
||||
public void setHttpProxy( String host, int port, String username, String password, String ntlmHost,
|
||||
String ntlmDomain )
|
||||
{
|
||||
setHttpProxy( host, port );
|
||||
httpProxy.setUserName( username );
|
||||
|
|
|
@ -62,8 +62,7 @@ public class MavenProxyPropertyLoaderTest
|
|||
{
|
||||
case 1:
|
||||
assertEquals( "Repository name not as expected", "local-repo", repo.getKey() );
|
||||
assertEquals( "Repository url does not match its name", "file://target",
|
||||
repo.getUrl() );
|
||||
assertEquals( "Repository url does not match its name", "file://target", repo.getUrl() );
|
||||
assertEquals( "Repository cache period check failed", 0, repo.getCachePeriod() );
|
||||
assertFalse( "Repository failure caching check failed", repo.isCacheFailures() );
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue