private boolean shouldFollowArtifactReferences() { return Boolean.parseBoolean(getProperty(FOLLOW_ARTIFACT_REPOSITORY_REFERENCES)); }
private boolean shouldFollowArtifactReferences() { return Boolean.parseBoolean(getProperty(FOLLOW_ARTIFACT_REPOSITORY_REFERENCES)); }
private boolean shouldFollowReferences() { return Boolean.parseBoolean(getProperty(FOLLOW_REPOSITORY_REFERENCES)); }
private boolean shouldFollowReferences() { return Boolean.parseBoolean(getProperty(FOLLOW_REPOSITORY_REFERENCES)); }
private IProvisioningPlan resolve(IProfileChangeRequest temporaryRequest, IProgressMonitor monitor) { String explainPropertyBackup = null; try { temporaryRequest.setProfileProperty("_internal_user_defined_", "true"); //$NON-NLS-1$//$NON-NLS-2$ if (provisioningContext != null) { explainPropertyBackup = provisioningContext.getProperty(EXPLANATION_ENABLEMENT); provisioningContext.setProperty(EXPLANATION_ENABLEMENT, Boolean.FALSE.toString()); } return planner.getProvisioningPlan(temporaryRequest, provisioningContext, SubMonitor.convert(monitor)); } finally { if (provisioningContext != null) { if (explainPropertyBackup == null) provisioningContext.getProperties().remove(EXPLANATION_ENABLEMENT); else provisioningContext.setProperty(EXPLANATION_ENABLEMENT, explainPropertyBackup); } } }
private IProvisioningPlan resolve(IProfileChangeRequest temporaryRequest, IProgressMonitor monitor) { SubMonitor subMonitor = SubMonitor.convert(monitor, 1); String explainPropertyBackup = null; try { temporaryRequest.setProfileProperty("_internal_user_defined_", "true"); //$NON-NLS-1$//$NON-NLS-2$ if (provisioningContext != null) { explainPropertyBackup = provisioningContext.getProperty(EXPLANATION_ENABLEMENT); provisioningContext.setProperty(EXPLANATION_ENABLEMENT, Boolean.FALSE.toString()); } return planner.getProvisioningPlan(temporaryRequest, provisioningContext, subMonitor.split(1)); } finally { if (provisioningContext != null) { if (explainPropertyBackup == null) provisioningContext.getProperties().remove(EXPLANATION_ENABLEMENT); else provisioningContext.setProperty(EXPLANATION_ENABLEMENT, explainPropertyBackup); } } }
@Override public IProvisioningPlan getDiffPlan(IProfile currentProfile, IProfile targetProfile, IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, ExpandWork); sub.setTaskName(Messages.Director_Task_Resolving_Dependencies); try { IProfileChangeRequest profileChangeRequest = FormerState.generateProfileDeltaChangeRequest(currentProfile, targetProfile); ProvisioningContext context = new ProvisioningContext(agent); if (context.getProperty(INCLUDE_PROFILE_IUS) == null) context.setProperty(INCLUDE_PROFILE_IUS, Boolean.FALSE.toString()); context.setExtraInstallableUnits(Arrays.asList( targetProfile.available(QueryUtil.createIUAnyQuery(), null).toArray(IInstallableUnit.class))); return getProvisioningPlan(profileChangeRequest, context, sub.newChild(ExpandWork / 2)); } finally { sub.done(); } }
if (context == null || context.getProperty(INCLUDE_PROFILE_IUS) == null || context.getProperty(INCLUDE_PROFILE_IUS).equalsIgnoreCase(Boolean.TRUE.toString())) { Iterator<IInstallableUnit> itor = profile.available(QueryUtil.createIUAnyQuery(), null).iterator(); while (itor.hasNext()) { if (s.getCode() != UNSATISFIABLE || (context != null && !(context.getProperty(EXPLANATION) == null || Boolean.parseBoolean(context.getProperty(EXPLANATION))))) { IProvisioningPlan plan = engine.createPlan(profile, context); plan.setStatus(s);