use of io.fabric8.agent.download.DownloadManager in project fabric8 by jboss-fuse.
the class JavaContainers method getJavaContainerArtifactsFiles.
public static Map<String, File> getJavaContainerArtifactsFiles(FabricService fabricService, List<Profile> profileList, DownloadManager downloadManager) throws Exception {
Map<String, File> answer = new HashMap<String, File>();
ProfileService profileService = fabricService.adapt(ProfileService.class);
for (Profile profile : profileList) {
Profile overlay = profileService.getOverlayProfile(profile);
Map<String, Parser> profileArtifacts = AgentUtils.getProfileArtifacts(fabricService, downloadManager, overlay);
appendMavenDependencies(profileArtifacts, profile);
Set<String> rawUrls = profileArtifacts.keySet();
downloadArtifactUrls(downloadManager, rawUrls, answer);
}
return answer;
}
Aggregations