From 7e8005b17da486efa959db12fb52ed94ef7d48f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Tue, 19 Dec 2023 06:13:39 +0100 Subject: [PATCH] Batch adding extra properties / remove pack file attribute --- .../eclipse/tycho/p2tools/TychoMirrorApplication.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tycho-core/src/main/java/org/eclipse/tycho/p2tools/TychoMirrorApplication.java b/tycho-core/src/main/java/org/eclipse/tycho/p2tools/TychoMirrorApplication.java index 1efb1a03bd..4fc4f02fad 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/p2tools/TychoMirrorApplication.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/p2tools/TychoMirrorApplication.java @@ -85,9 +85,12 @@ public TychoMirrorApplication(IProvisioningAgent agent, DestinationRepositoryDes protected IArtifactRepository initializeDestination(RepositoryDescriptor toInit, IArtifactRepositoryManager mgr) throws ProvisionException { IArtifactRepository result = super.initializeDestination(toInit, mgr); - // simple.SimpleArtifactRepository.PUBLISH_PACK_FILES_AS_SIBLINGS is not public - result.setProperty("publishPackFilesAsSiblings", "true"); - destination.getExtraArtifactRepositoryProperties().forEach(result::setProperty); + Map extraArtifactRepositoryProperties = destination.getExtraArtifactRepositoryProperties(); + if (!extraArtifactRepositoryProperties.isEmpty()) { + result.executeBatch(nil -> { + extraArtifactRepositoryProperties.forEach(result::setProperty); + }, null); + } return result; }