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 2022/05/29 17:43:39 UTC

[maven-release] 01/01: [MRELEASE-1097] strong("local") instead of "LOCAL"

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

hboutemy pushed a commit to branch MRELEASE-1097
in repository https://gitbox.apache.org/repos/asf/maven-release.git

commit dbd8587d9de6d6f1fb0a84a36656d30cf85414c8
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun May 29 19:24:21 2022 +0200

    [MRELEASE-1097] strong("local") instead of "LOCAL"
---
 .../org/apache/maven/shared/release/phase/CheckoutProjectFromScm.java | 4 +++-
 .../src/it/projects/perform/MRELEASE-818/verify.groovy                | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/CheckoutProjectFromScm.java b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/CheckoutProjectFromScm.java
index 406d2ac6..719610d7 100644
--- a/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/CheckoutProjectFromScm.java
+++ b/maven-release-manager/src/main/java/org/apache/maven/shared/release/phase/CheckoutProjectFromScm.java
@@ -54,6 +54,7 @@ import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
 
 import static java.util.Objects.requireNonNull;
+import static org.apache.maven.shared.utils.logging.MessageUtils.buffer;
 
 /**
  * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
@@ -277,7 +278,8 @@ public class CheckoutProjectFromScm
         if ( releaseDescriptor.isLocalCheckout() )
         {
             logInfo( result,
-                     "This would be a LOCAL check out to perform the release from " + checkoutDirectory + "..." );
+                     "The project would have a " + buffer().strong( "local" )
+                         + " check out to perform the release from " + checkoutDirectory + "..." );
         }
         else
         {
diff --git a/maven-release-plugin/src/it/projects/perform/MRELEASE-818/verify.groovy b/maven-release-plugin/src/it/projects/perform/MRELEASE-818/verify.groovy
index a2dfd3bb..89f178ae 100644
--- a/maven-release-plugin/src/it/projects/perform/MRELEASE-818/verify.groovy
+++ b/maven-release-plugin/src/it/projects/perform/MRELEASE-818/verify.groovy
@@ -20,7 +20,7 @@
 File buildLog = new File( basedir, 'build.log' )
 assert buildLog.exists()
 
-def localCheckoutExpr = /\Q[INFO] This would be a LOCAL check out to perform the release from /
+def localCheckoutExpr = /\Q[INFO] The project would have a local check out to perform the release from /
 def matcher = ( buildLog.getText() =~ localCheckoutExpr )
 
 assert matcher.find()