From 3a742eeb67e72d3624c53d9e1f9f950fbbd836c3 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sun, 8 Mar 2009 20:45:02 +0000 Subject: [PATCH] [MRM-1109] environment checks do not indicate which caused a violation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751517 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/startup/SecuritySynchronization.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/SecuritySynchronization.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/SecuritySynchronization.java index d03612ca1..76ca70288 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/SecuritySynchronization.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/startup/SecuritySynchronization.java @@ -146,8 +146,13 @@ public class SecuritySynchronization for ( Entry entry : checkers.entrySet() ) { EnvironmentCheck check = entry.getValue(); - log.info( "Running Environment Check: " + entry.getKey() ); - check.validateEnvironment( violations ); + List v = new ArrayList(); + 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 ) ) -- 2.39.5