Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,12 @@ private void installModule(String moduleName, DefaultPluginInstallSpec installSp

});

IOUtils.syncMaybeWithLinks(modulePath, destination);
// If we aren't overriding anything we can use links here, otherwise do a full copy
if (installSpec.entitlementsOverride == null && installSpec.propertiesOverride == null) {
IOUtils.syncMaybeWithLinks(modulePath, destination);
} else {
IOUtils.syncWithCopy(modulePath, destination);
}

try {
if (installSpec.entitlementsOverride != null) {
Expand Down Expand Up @@ -794,7 +799,9 @@ private void installModule(String moduleName, DefaultPluginInstallSpec installSp
if (extendedProperty != null) {
String[] extendedModules = extendedProperty.split(",");
for (String module : extendedModules) {
installModule(module, new DefaultPluginInstallSpec(), modulePaths);
if (spec.getModules().containsKey(module) == false) {
installModule(module, new DefaultPluginInstallSpec(), modulePaths);
}
}
}
} catch (IOException e) {
Expand Down