Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [P2] provisioning with InstallOperation completly messes my config.ini
[P2] provisioning with InstallOperation completly messes my config.ini [message #735722] Wed, 12 October 2011 15:19
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
I tried to use the P2 API to install some IUs but the config.ini gets changed during the provisioning.
// Creating an operation
				final InstallOperation installOperation = new InstallOperation(new ProvisioningSession(agent), toInstall);
				IStatus resolveModal = installOperation.resolveModal(new NullProgressMonitor());
				if (resolveModal.getCode() != IStatus.ERROR) {
					IStatus status = installOperation.getProvisioningJob(new NullProgressMonitor()).run(new NullProgressMonitor());
					System.out.println("provisionning status is :" + status);

I have a configuration file that I do not want to be modified how can I do that.
I need to mention that we have our own launcher (configurator) to install the plugins, I do no mind making some update on that but how to avoid config.ini to be modified ?

Next Topic:What API to resolve @config.dir
Goto Forum:

Current Time: Wed Oct 20 09:47:43 GMT 2021

Powered by FUDForum. Page generated in 0.04670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top