diff options
author | Pascal Rapicault (Ericsson) | 2012-11-15 17:15:03 +0000 |
---|---|---|
committer | Pascal Rapicault | 2012-11-17 03:47:40 +0000 |
commit | 98e6cf1c4dae02db99a1e85d2c30d2c111137602 (patch) | |
tree | 65f855b27b6a198e14d3bec55d60ad6175f6dd67 | |
parent | ec9d610cef62ad145beed343790e6f00751e451f (diff) | |
download | rt.equinox.p2-98e6cf1c4dae02db99a1e85d2c30d2c111137602.tar.gz rt.equinox.p2-98e6cf1c4dae02db99a1e85d2c30d2c111137602.tar.xz rt.equinox.p2-98e6cf1c4dae02db99a1e85d2c30d2c111137602.zip |
Force reinit of profile pref node
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests.sharedinstall/src/org/eclipse/equinox/p2/tests/sharedinstall/SharedProfilePreferencesTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.sharedinstall/src/org/eclipse/equinox/p2/tests/sharedinstall/SharedProfilePreferencesTest.java b/bundles/org.eclipse.equinox.p2.tests.sharedinstall/src/org/eclipse/equinox/p2/tests/sharedinstall/SharedProfilePreferencesTest.java index 6155c37dd..2903a553e 100644 --- a/bundles/org.eclipse.equinox.p2.tests.sharedinstall/src/org/eclipse/equinox/p2/tests/sharedinstall/SharedProfilePreferencesTest.java +++ b/bundles/org.eclipse.equinox.p2.tests.sharedinstall/src/org/eclipse/equinox/p2/tests/sharedinstall/SharedProfilePreferencesTest.java @@ -1,3 +1,5 @@ +package org.eclipse.equinox.p2.tests.sharedinstall; + /******************************************************************************* * Copyright (c) 2012 Ericsson and others. * All rights reserved. This program and the accompanying materials @@ -20,6 +22,8 @@ import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.URIUtil; import org.eclipse.core.runtime.preferences.IPreferencesService; import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper; +import org.eclipse.equinox.p2.repository.IRepositoryManager; +import org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager; import org.eclipse.equinox.p2.tests.AbstractProvisioningTest; import org.eclipse.equinox.p2.tests.TestActivator; import org.eclipse.equinox.security.storage.EncodingUtils; @@ -59,7 +63,8 @@ public class SharedProfilePreferencesTest extends AbstractProvisioningTest { System.setProperty("osgi.configuration.area", new File(userHome, "configuration").toURI().toString()); System.setProperty("eclipse.p2.profile", "epp.package.java"); System.setProperty("eclipse.p2.data.area", "@config.dir/../p2"); - + IPreferencesService prefService = (IPreferencesService) ServiceHelper.getService(TestActivator.getContext(), IPreferencesService.class.getName()); + prefService.getRootNode().node("/profile/").removeNode(); p2Core.start(); } |