maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r938411 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
Date Tue, 27 Apr 2010 11:11:49 GMT
Author: bentmann
Date: Tue Apr 27 11:11:49 2010
New Revision: 938411

URL: http://svn.apache.org/viewvc?rev=938411&view=rev
Log:
o Polished log output

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java?rev=938411&r1=938410&r2=938411&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java (original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/DefaultMaven.java Tue Apr
27 11:11:49 2010
@@ -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;



Mime
View raw message