Skip to content

Commit

Permalink
Fix displayed version
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 24, 2023
1 parent 6b4674e commit e10aecd
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,15 @@ public ExecutionResult execute(ClientOutput output, List<String> argv) {
if (version || showVersion || debug) {
// Print mvnd version
BuildProperties buildProperties = BuildProperties.getInstance();
final String mvndVersionString = "mvnd " + buildProperties.getVersion() + " "
final String mvndVersionString = "Apache Maven Daemon (mvnd) " + buildProperties.getVersion() + " "
+ (Environment.isNative()
? buildProperties.getOsName() + "-" + buildProperties.getOsArch() + " native client"
: "JVM client")
+ " (" + buildProperties.getRevision() + ")";

boolean isColored = !"never".equals(Environment.MAVEN_COLOR.getCommandLineOption(args));
final String v = isColored
? mvndVersionString
: Ansi.ansi().bold().a(mvndVersionString).reset().toString();
final String v =
isColored ? Ansi.ansi().bold().a(mvndVersionString).reset().toString() : mvndVersionString;
output.accept(Message.log(v));
// Print terminal information
output.describeTerminal();
Expand Down

0 comments on commit e10aecd

Please sign in to comment.