You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2020/05/20 17:34:54 UTC

[maven-site-plugin] branch master updated: highlight server url

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 01273ba  highlight server url
01273ba is described below

commit 01273ba2c197a7426009da498ee3abf60eabb193
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed May 20 19:34:49 2020 +0200

    highlight server url
---
 src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java b/src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java
index b4146e1..c100865 100644
--- a/src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java
+++ b/src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java
@@ -31,6 +31,8 @@ import org.codehaus.plexus.util.IOUtil;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.webapp.WebAppContext;
 
+import static org.apache.maven.shared.utils.logging.MessageUtils.buffer;
+
 import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
@@ -81,7 +83,7 @@ public class SiteRunMojo
 
         server.setHandler( webapp );
 
-        getLog().info( "Starting Jetty on http://localhost:" + port + "/" );
+        getLog().info( buffer().a( "Starting Jetty on " ).strong( "http://localhost:" + port + "/" ).toString() );
         try
         {
             server.start();