Skip to content

Commit

Permalink
[MRELEASE-1097] strong("local") instead of "LOCAL"
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed May 29, 2022
1 parent 35f467b commit dbd8587
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -54,6 +54,7 @@
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>
Expand Down Expand Up @@ -277,7 +278,8 @@ public ReleaseResult simulate( ReleaseDescriptor releaseDescriptor, ReleaseEnvir
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
{
Expand Down
Expand Up @@ -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()
Expand Down

0 comments on commit dbd8587

Please sign in to comment.