From 1da75bb7ef7a3538124bbb8818f2442aa8a2df53 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 27 Apr 2010 11:11:49 +0000 Subject: [PATCH] o Polished log output git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@938411 13f79535-47bb-0310-9956-ffa450edef68 --- maven-core/src/main/java/org/apache/maven/DefaultMaven.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java index c19af9e2e6..e87edf3475 100644 --- a/maven-core/src/main/java/org/apache/maven/DefaultMaven.java +++ b/maven-core/src/main/java/org/apache/maven/DefaultMaven.java @@ -415,8 +415,8 @@ public class DefaultMaven for ( ModelProblem problem : result.getProblems() ) { - logger.warn( problem.getMessage() + " @ " - + ModelProblemUtils.formatLocation( problem, result.getProjectId() ) ); + String location = ModelProblemUtils.formatLocation( problem, result.getProjectId() ); + logger.warn( problem.getMessage() + ( StringUtils.isNotEmpty( location ) ? " @ " + location : "" ) ); } problems = true;