]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1109] environment checks do not indicate which caused a violation
authorBrett Porter <brett@apache.org>
Sun, 8 Mar 2009 20:45:02 +0000 (20:45 +0000)
committerBrett Porter <brett@apache.org>
Sun, 8 Mar 2009 20:45:02 +0000 (20:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751517 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/SecuritySynchronization.java

index d03612ca1e5ebfbae45f0bc18961e95e7e04193c..76ca702887836cd30a381e21df14b0f8917ed269 100644 (file)
@@ -146,8 +146,13 @@ public class SecuritySynchronization
         for ( Entry<String, EnvironmentCheck> entry : checkers.entrySet() )
         {
             EnvironmentCheck check = entry.getValue();
-            log.info( "Running Environment Check: " + entry.getKey() );
-            check.validateEnvironment( violations );
+            List<String> v = new ArrayList<String>();
+            check.validateEnvironment( v );
+            log.info( "Environment Check: " + entry.getKey() + " -> " + v.size() + " violation(s)" );
+            for ( String s : v )
+            {
+                violations.add( "[" + entry.getKey() + "] " + s );
+            }
         }
 
         if ( CollectionUtils.isNotEmpty( violations ) )