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 ba75f9dab9..d2b24bd8e3 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 @@ -65,9 +65,12 @@ import org.eclipse.tycho.TargetPlatform; import org.eclipse.tycho.p2.tools.DestinationRepositoryDescriptor; import org.eclipse.tycho.p2.tools.RepositoryReference; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class TychoMirrorApplication extends org.eclipse.tycho.p2tools.copiedfromp2.MirrorApplication { + private static final Logger LOGGER = LoggerFactory.getLogger(TychoMirrorApplication.class); private static final String SOURCE_SUFFIX = ".source"; private static final String FEATURE_GROUP = ".feature.group"; private final DestinationRepositoryDescriptor destination; @@ -212,6 +215,16 @@ private static URI getNormalizedLocation(RepositoryReference r) { return URI.create(StringUtils.removeEnd(r.getLocation(), "/")); } + @Override + protected void finalizeRepositories() { + Collection references = getDestinationMetadataRepository().getReferences(); + if (!references.isEmpty()) { + LOGGER.info("Adding references to the following repositories:"); + references.stream().map(r -> r.getLocation()).distinct().forEach(loc -> LOGGER.info(" {}", loc)); + } + super.finalizeRepositories(); + } + @Override protected List collectArtifactKeys(Collection ius, IProgressMonitor monitor) throws ProvisionException {