You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2017/06/04 18:06:58 UTC
[12/50] maven git commit: Make it possible to run unit tests from an
IDE
Make it possible to run unit tests from an IDE
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/68e38e50
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/68e38e50
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/68e38e50
Branch: refs/heads/mvn-3.5.1/MNG-6174
Commit: 68e38e5086d0978c61391b7cdc4514fdf96e64d7
Parents: 1638280
Author: Stephen Connolly <st...@gmail.com>
Authored: Sun Mar 19 21:54:31 2017 +0000
Committer: Stephen Connolly <st...@gmail.com>
Committed: Sun Mar 19 21:55:46 2017 +0000
----------------------------------------------------------------------
.../src/main/java/org/apache/maven/cli/CLIReportingUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/68e38e50/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
----------------------------------------------------------------------
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java b/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
index c5faef5..52f2053 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
@@ -28,6 +28,7 @@ import java.util.Date;
import java.util.Locale;
import java.util.Properties;
+import org.apache.commons.lang3.StringUtils;
import org.codehaus.plexus.util.Os;
import org.slf4j.Logger;
@@ -94,7 +95,7 @@ public final class CLIReportingUtils
{
msg += " (";
msg += ( rev != null ? rev : "" );
- if ( timestamp != null )
+ if ( StringUtils.isNotBlank( timestamp ) )
{
String ts = formatTimestamp( Long.valueOf( timestamp ) );
msg += ( rev != null ? "; " : "" ) + ts;