gnodet commented on code in PR #736:
URL: https://github.com/apache/maven/pull/736#discussion_r874048159
##########
maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java:
##########
@@ -282,6 +308,32 @@ private Lock getProjectLock( MavenSession session )
}
}
+ static class OwnerReentrantLock extends ReentrantLock
+ {
+ @Override
+ public Thread getOwner()
+ {
+ return super.getOwner();
+ }
+ }
+
+ static class OwnerReentrantReadWriteLock extends ReentrantReadWriteLock
+ {
+ @Override
+ public Thread getOwner()
+ {
+ return super.getOwner();
+ }
+ }
+
+ private static void warn( String msg )
+ {
+ for ( String s : MessageHelper.formatWarning( msg ) )
+ {
+ LOGGER.warn( s );
+ }
Review Comment:
Yes, but I don't think slf4j provide any api to _lock_ the appender. In
addition, any build-in new line will break the formatting box. But in a
concurrent build, you definitely want to use _mvnd_ which brings back things in
order :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]