Skip to content

Commit

Permalink
Batch adding extra properties / remove pack file attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Dec 20, 2023
1 parent c3d308e commit 7e8005b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> extraArtifactRepositoryProperties = destination.getExtraArtifactRepositoryProperties();
if (!extraArtifactRepositoryProperties.isEmpty()) {
result.executeBatch(nil -> {
extraArtifactRepositoryProperties.forEach(result::setProperty);
}, null);
}
return result;
}

Expand Down

0 comments on commit 7e8005b

Please sign in to comment.