]> source.dussan.org Git - archiva.git/commitdiff
[MRM-460] correct the default configuration for failure policies
authorBrett Porter <brett@apache.org>
Sun, 16 Sep 2007 03:47:36 +0000 (03:47 +0000)
committerBrett Porter <brett@apache.org>
Sun, 16 Sep 2007 03:47:36 +0000 (03:47 +0000)
Submitted by: nicolas de loof

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576030 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-configuration/src/main/resources/org/apache/maven/archiva/configuration/default-archiva.xml
archiva-base/archiva-policies/src/main/java/org/apache/maven/archiva/policies/CachedFailuresPolicy.java

index e0b1798c18e3dad0d7666317e2c5203f20e9536e..0d3c7edfdd20402778d59979cd9038e2ce2bf655 100644 (file)
@@ -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>
index b9910e4f8a3a43aae03ed3231db2cccf310d0c66..d418daeb99254a5d165f98e44beb1d6032057687 100644 (file)
@@ -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;