Make it possible to run unit tests from an IDE

This commit is contained in:
Stephen Connolly 2017-03-19 21:54:31 +00:00
parent 1638280261
commit 68e38e5086
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import java.util.Date;
import java.util.Locale; import java.util.Locale;
import java.util.Properties; import java.util.Properties;
import org.apache.commons.lang3.StringUtils;
import org.codehaus.plexus.util.Os; import org.codehaus.plexus.util.Os;
import org.slf4j.Logger; import org.slf4j.Logger;
@ -94,7 +95,7 @@ public final class CLIReportingUtils
{ {
msg += " ("; msg += " (";
msg += ( rev != null ? rev : "" ); msg += ( rev != null ? rev : "" );
if ( timestamp != null ) if ( StringUtils.isNotBlank( timestamp ) )
{ {
String ts = formatTimestamp( Long.valueOf( timestamp ) ); String ts = formatTimestamp( Long.valueOf( timestamp ) );
msg += ( rev != null ? "; " : "" ) + ts; msg += ( rev != null ? "; " : "" ) + ts;