aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2007-09-16 03:47:36 +0000
committerBrett Porter <brett@apache.org>2007-09-16 03:47:36 +0000
commit55314532108b47e31c86b57b3389805c3be3c389 (patch)
tree7a7041841738f8ed3f5f46da278aa185ad63dbc9 /archiva-base
parent20ed6eb36238fbe5af3efc8ccbf2d95da75c8952 (diff)
downloadarchiva-55314532108b47e31c86b57b3389805c3be3c389.tar.gz
archiva-55314532108b47e31c86b57b3389805c3be3c389.zip
[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
Diffstat (limited to 'archiva-base')
-rw-r--r--archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml4
-rw-r--r--archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java11
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 @@
<snapshots>disabled</snapshots>
<releases>once</releases>
<checksum>fix</checksum>
- <cache-failures>cache</cache-failures>
+ <cache-failures>cached</cache-failures>
</policies>
<whiteListPatterns>
<whiteListPattern>**/*</whiteListPattern>
@@ -63,7 +63,7 @@
<snapshots>disabled</snapshots>
<releases>once</releases>
<checksum>fix</checksum>
- <cache-failures>cache</cache-failures>
+ <cache-failures>cached</cache-failures>
</policies>
<whiteListPatterns>
<whiteListPattern>javax/**</whiteListPattern>
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 <a href="mailto:joakime@apache.org">Joakim Erdfelt</a>
* @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;