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 8cf7662604..5000525d73 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 @@ -63,9 +63,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 Map extraArtifactRepositoryProperties; @@ -275,6 +278,16 @@ private List>> removeProvidedItems(Collection a return referencedRepositories; } + @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(); + } + //TODO: just call IRepositoryManager.loadRepository() once available: https://github.com/eclipse-equinox/p2/pull/311 @SuppressWarnings("unchecked") private static IRepository loadRepository(IRepositoryManager mgr, URI location, IProgressMonitor monitor)