public static IPhaseSet createDefaultPhaseSet() { return createPhaseSetIncluding(ALL_PHASES_LIST.toArray(new String[ALL_PHASES_LIST.size()])); }
public static IPhaseSet createDefaultPhaseSet() { return createPhaseSetIncluding(ALL_PHASES_LIST.toArray(new String[ALL_PHASES_LIST.size()])); }
/** * Creates a default phase set that covers all the provisioning operations. * Phases can be specified for exclusion. * * @param exclude - A set of bit options that specify the phases to exclude. * See {@link PhaseSetFactory} for possible options * @return the {@link PhaseSet} */ public static final IPhaseSet createDefaultPhaseSetExcluding(String[] exclude) { if (exclude == null || exclude.length == 0) return createDefaultPhaseSet(); List<String> excludeList = Arrays.asList(exclude); List<String> includeList = new ArrayList<>(ALL_PHASES_LIST); includeList.removeAll(excludeList); return createPhaseSetIncluding(includeList.toArray(new String[includeList.size()])); }
/** * Creates a default phase set that covers all the provisioning operations. * Phases can be specified for exclusion. * * @param exclude - A set of bit options that specify the phases to exclude. * See {@link PhaseSetFactory} for possible options * @return the {@link PhaseSet} */ public static final IPhaseSet createDefaultPhaseSetExcluding(String[] exclude) { if (exclude == null || exclude.length == 0) return createDefaultPhaseSet(); List<String> excludeList = Arrays.asList(exclude); List<String> includeList = new ArrayList<String>(ALL_PHASES_LIST); includeList.removeAll(excludeList); return createPhaseSetIncluding(includeList.toArray(new String[includeList.size()])); }
private IStatus setProperty(String key, String value, ProvisioningContext provisioningContext, IProgressMonitor monitor) { IEngine engine = (IEngine) agent.getService(IEngine.SERVICE_NAME); IProvisioningPlan plan = engine.createPlan(profile, provisioningContext); plan.setProfileProperty(key, value); IPhaseSet phaseSet = PhaseSetFactory.createPhaseSetIncluding(new String[] {PhaseSetFactory.PHASE_PROPERTY}); return engine.perform(plan, phaseSet, monitor); }
downloadPlan.addInstallableUnit(it.next()); IPhaseSet download = PhaseSetFactory.createPhaseSetIncluding(new String[] {PhaseSetFactory.PHASE_COLLECT}); IStatus downloadStatus = getEngine().perform(downloadPlan, download, mon.newChild(300)); if (!downloadStatus.isOK()) {
job.setPhaseSet(PhaseSetFactory.createPhaseSetIncluding(new String[] {PhaseSetFactory.PHASE_COLLECT})); job.setUser(false); job.setSystem(true);
downloadPlan.addInstallableUnit(it.next()); IPhaseSet download = PhaseSetFactory.createPhaseSetIncluding(new String[] {PhaseSetFactory.PHASE_COLLECT}); IStatus downloadStatus = getEngine().perform(downloadPlan, download, mon.newChild(300)); if (!downloadStatus.isOK()) {