private static void addExtraProperties(IInstallableUnit iiu, Map<String, String> extraProperties) { if (iiu instanceof InstallableUnit) { InstallableUnit iu = (InstallableUnit) iiu; for (Entry<String, String> entry : extraProperties.entrySet()) { iu.setProperty(entry.getKey(), entry.getValue()); } } } }
public static IInstallableUnit contextIU(String ws, String os, String arch) { InstallableUnit ctxIU = new InstallableUnit(); ctxIU.setId("org.eclipse.equinox.p2.context.iu"); //$NON-NLS-1$ ctxIU.setProperty("osgi.ws", ws); //$NON-NLS-1$ ctxIU.setProperty("osgi.os", os); //$NON-NLS-1$ ctxIU.setProperty("osgi.arch", arch); //$NON-NLS-1$ return ctxIU; }
private static void addExtraProperties(IInstallableUnit iiu, Map<String, String> extraProperties) { if (iiu instanceof InstallableUnit) { InstallableUnit iu = (InstallableUnit) iiu; for (Entry<String, String> entry : extraProperties.entrySet()) { iu.setProperty(entry.getKey(), entry.getValue()); } } } }
private static void addExtraProperties(IInstallableUnit iiu, Map<String, String> extraProperties) { if (iiu instanceof InstallableUnit) { InstallableUnit iu = (InstallableUnit) iiu; for (Entry<String, String> entry : extraProperties.entrySet()) { iu.setProperty(entry.getKey(), entry.getValue()); } } } }
/** * Set a property with a specified value for this installable unit. * @param key key with which the specified value is to be associated * @param value value to be associated with the specified key */ public void setProperty(String key, String value) { unit().setProperty(key, value); }
public static IInstallableUnit contextIU(Map<String, String> environment) { InstallableUnit ctxIU = new InstallableUnit(); ctxIU.setId("org.eclipse.equinox.p2.context.iu"); //$NON-NLS-1$ for (Map.Entry<String, String> entry : environment.entrySet()) ctxIU.setProperty(entry.getKey(), entry.getValue()); return ctxIU; } }