File tree 1 file changed +4
-0
lines changed
buildSrc/src/main/java/org/elasticsearch/gradle/testclusters 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 23
23
import org .elasticsearch .gradle .FileSupplier ;
24
24
import org .elasticsearch .gradle .OS ;
25
25
import org .elasticsearch .gradle .Version ;
26
+ import org .gradle .api .file .DuplicatesStrategy ;
26
27
import org .gradle .api .logging .Logger ;
27
28
import org .gradle .api .logging .Logging ;
28
29
@@ -398,6 +399,9 @@ private void copyExtraConfigFiles() {
398
399
private void installModules () {
399
400
if (distribution == Distribution .INTEG_TEST ) {
400
401
modules .forEach (module -> services .copy (spec -> {
402
+ // ensure we don't override any existing JARs, since these are hardlinks other clusters might be using those files
403
+ spec .setDuplicatesStrategy (DuplicatesStrategy .EXCLUDE );
404
+
401
405
if (module .getName ().toLowerCase ().endsWith (".zip" )) {
402
406
spec .from (services .zipTree (module ));
403
407
} else if (module .isDirectory ()) {
You can’t perform that action at this time.
0 commit comments