michael-o commented on a change in pull request #49: [MNG-2802] Concurrent-safe
access to local Maven repository
URL: https://github.com/apache/maven-wagon/pull/49#discussion_r301251366
##########
File path:
wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
##########
@@ -51,6 +52,17 @@
public class FileWagon
extends StreamWagon
{
+
+ /**
+ * use file locking when writing files.
+ * <b>disabled by default</b>
+ */
+ private static boolean useFileLock =
+ Boolean.valueOf( System.getProperty( "maven.wagon.file.fileLock",
"false" ) );
+
+ private static Long fileLockTimeout =
Review comment:
What if there is a lock? Will the MAven process block for 300 s even if the
entire build could happen in 30 s?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services