From 55314532108b47e31c86b57b3389805c3be3c389 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sun, 16 Sep 2007 03:47:36 +0000 Subject: [PATCH] [MRM-460] correct the default configuration for failure policies Submitted by: nicolas de loof git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576030 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/archiva/configuration/default-archiva.xml | 4 ++-- .../maven/archiva/policies/CachedFailuresPolicy.java | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml b/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml index e0b1798c1..0d3c7edfd 100644 --- a/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml +++ b/archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml @@ -49,7 +49,7 @@ disabled once fix - cache + cached **/* @@ -63,7 +63,7 @@ disabled once fix - cache + cached javax/** diff --git a/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java b/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java index b9910e4f8..d418daeb9 100644 --- a/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java +++ b/archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java @@ -29,13 +29,12 @@ import java.util.List; import java.util.Properties; /** - * {@link PreDownloadPolicy} to check if the requested url has failed before. + * {@link PreDownloadPolicy} to check if the requested url has failed before. * * @author Joakim Erdfelt * @version $Id$ - * * @plexus.component role="org.apache.maven.archiva.policies.PreDownloadPolicy" - * role-hint="cache-failures" + * role-hint="cache-failures" */ public class CachedFailuresPolicy extends AbstractLogEnabled @@ -43,7 +42,7 @@ public class CachedFailuresPolicy { /** * The CACHED policy indicates that if the URL provided exists in the - * cached failures pool, then the policy fails, and the download isn't even + * cached failures pool, then the policy fails, and the download isn't even * attempted. */ public static final String CACHED = "cached"; @@ -66,7 +65,7 @@ public class CachedFailuresPolicy if ( !options.contains( policySetting ) ) { // No valid code? false it is then. - getLogger().error( "Unknown checksum policyCode [" + policySetting + "]" ); + getLogger().error( "Unknown check-failures policyCode [" + policySetting + "]" ); return false; } @@ -87,7 +86,7 @@ public class CachedFailuresPolicy return false; } } - + getLogger().debug( "OK to fetch, check-failures detected no issues." ); return true; -- 2.39.5