public List<String> getBundles() { return delegate.getBundles(); }
public List<String> getBundles() { return delegate.getBundles(); }
protected void addBundlesFromProfile(Set<String> currentBundleUris, Profile overlay) { List<String> bundles = overlay.getBundles(); if (bundles != null) { currentBundleUris.addAll(bundles); } }
@Override public void install(ProcessConfig config, int id, File installDir) throws Exception { File baseDir = ProcessUtils.findInstallDir(installDir); Set<String> bundles = new LinkedHashSet<String>(profile.getBundles()); Set<Feature> features = getFeatures(profile); LOG.info("Deploying into external container features " + features + " and bundles " + bundles); Map<String, File> files = AgentUtils.downloadBundles(downloadManager, features, bundles, Collections.<String>emptySet()); Set<Map.Entry<String, File>> entries = files.entrySet(); for (Map.Entry<String, File> entry : entries) { String name = entry.getKey(); File file = entry.getValue(); String destPath; String fileName = file.getName(); if (name.startsWith("war:") || name.contains("/war/") || fileName.toLowerCase() .endsWith(".war")) { destPath = config.getDeployPath(); } else { destPath = config.getSharedLibraryPath(); } File destDir = new File(baseDir, destPath); File destFile = new File(destDir, fileName); LOG.debug("Copying file " + fileName + " to : " + destFile.getCanonicalPath()); FileUtils.copyFile(file, destFile); } }
printConfigList("Features : ", output, profile.getFeatures()); if (profile.getBundles().size() > 0) { printConfigList("Bundles : ", output, profile.getBundles());
Profile overlayProfile = container.getOverlayProfile(); Profile effectiveProfile = Profiles.getEffectiveProfile(fabricService, overlayProfile); bundles.addAll(effectiveProfile.getBundles()); AgentUtils.addFeatures(features, fabricService, downloadManager, effectiveProfile);
List<String> bundles = Lists.mutableList(profile.getBundles()); List<String> features = Lists.mutableList(profile.getFeatures()); List<String> repositories = Lists.mutableList(profile.getRepositories());
public ProfileDTO(Profile profile) { this.id = profile.getId(); this.version = profile.getVersion(); this.profileHash = profile.getProfileHash(); this.parents = profile.getParentIds(); this.overlay = profile.isOverlay(); this.abstractProfile = profile.isAbstract(); this.locked = profile.isLocked(); this.hidden = profile.isHidden(); this.attributes = profile.getAttributes(); this.bundles = profile.getBundles(); this.features = profile.getFeatures(); this.repositories = profile.getRepositories(); this.fabs = profile.getFabs(); this.overrides = profile.getOverrides(); String versionId = profile.getVersion(); String profileId = profile.getId(); this.configurations = profile.getConfigurationFileNames(); }
public ProfileDTO(Profile profile) { this.id = profile.getId(); this.version = profile.getVersion(); this.profileHash = profile.getProfileHash(); this.parents = profile.getParentIds(); this.overlay = profile.isOverlay(); this.abstractProfile = profile.isAbstract(); this.locked = profile.isLocked(); this.hidden = profile.isHidden(); this.attributes = profile.getAttributes(); this.bundles = profile.getBundles(); this.features = profile.getFeatures(); this.repositories = profile.getRepositories(); this.fabs = profile.getFabs(); this.overrides = profile.getOverrides(); String versionId = profile.getVersion(); String profileId = profile.getId(); this.configurations = profile.getConfigurationFileNames(); }