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; }