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 Gandon
Messages: 172
Registered: July 2009
Senior Member
Hello,
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 ?

Thanks.
Previous Topic:bundles.info
Next Topic:What API to resolve @config.dir
Goto Forum:
  


Current Time: Tue Sep 16 17:49:54 GMT 2014

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

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