Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » p2 director application: Installing and uninstalling feature
p2 director application: Installing and uninstalling feature [message #114296] Thu, 17 July 2008 09:43 Go to next message
Erwin Margewitsch is currently offline Erwin MargewitschFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

i'm using p2 director application to install and uninstall some features
in my build environment for automatic testing.

p2 director application states that installing and uninstalling is
completed. But after uninstalling the feature and the corresponding
plugins can still be found in the feature and plugins directory. Is this
behaviour intended?

I would like to really delete these artifacts from disk.

Is the -uninstallIU argument undocumented by intention?

Kind Regards, Erwin
Re: p2 director application: Installing and uninstalling feature [message #114566 is a reply to message #114296] Fri, 18 July 2008 18:56 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
If you are running the director from the application you are provisioning,
then this is expected because the GC will not be able to GC the plugin since
they are still installed in OSGi.
Conversely if the director you are running and the application you are
provisioning are not from the install then the plug-ins should be GCed
Why do you want the plug-ins to be gone? They should not bother you since
proper unisntallation will cause them to be removed from the bundles.info.



"Erwin Margewitsch" <erwin.margewitsch@sap.com> wrote in message
news:46f4f9c1982172b09303fb6f0aa0a085$1@www.eclipse.org...
> Hi,
>
> i'm using p2 director application to install and uninstall some features
> in my build environment for automatic testing.
>
> p2 director application states that installing and uninstalling is
> completed. But after uninstalling the feature and the corresponding
> plugins can still be found in the feature and plugins directory. Is this
> behaviour intended?
>
> I would like to really delete these artifacts from disk.
>
> Is the -uninstallIU argument undocumented by intention?
>
> Kind Regards, Erwin
>
Re: p2 director application: Installing and uninstalling feature [message #114840 is a reply to message #114566] Mon, 21 July 2008 13:42 Go to previous messageGo to next message
Erwin Margewitsch is currently offline Erwin MargewitschFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

thanks for the answer.

I was trying to setup automated testing. For the installtion of the
necessary features I used the director of the SDK intended to execute the
tests.
After every build I got the following error:

[exec] Installing org.eclipse.mat.feature.feature.group
0.7.0.200807211120.
[exec] Installing org.eclipse.mat.feature.feature.group
0.7.0.200807211128.
[exec] Installing org.eclipse.mat.feature.feature.group
0.7.0.200807211530.
[exec] !SESSION 2008-07-21 15:34:15.390
-----------------------------------------------
[exec] eclipse.buildId=I20080617-2000
[exec] java.version=1.6.0_05
[exec] java.vendor=Sun Microsystems Inc.
[exec] BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
[exec] Framework arguments: -application
org.eclipse.equinox.p2.director.app.application -metadataRepository
file:C:\tmp\build/mat/metadata
/org.eclipse.mat.feature -artifactRepository
file:C:\tmp\build/mat/results/org.eclipse.mat.feature -installIU
org.eclipse.mat.feature.feature.gro
up
[exec] Command-line arguments: -os win32 -ws win32 -arch x86
-application org.eclipse.equinox.p2.director.app.application
-metadataReposito
ry file:C:\tmp\build/mat/metadata/org.eclipse.mat.feature
-artifactRepository file:C:\tmp\build/mat/results/org.eclipse.mat.feature
-installIU or
g.eclipse.mat.feature.feature.group -consolelog

[exec] !ENTRY org.eclipse.equinox.p2.director 4 0 2008-07-21
15:34:41.282
[exec] !MESSAGE Problems resolving provisioning plan.
[exec] !SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2008-07-21
15:34:41.282
[exec] !MESSAGE No solution found because the problem in
C:\DOCUME~1\d029033\LOCALS~1\Temp\p2Encoding3138.opb is unsatisfiable.
[exec] Installation failed.

[exec] !ENTRY org.eclipse.equinox.p2.director 4 1 2008-07-21
15:34:41.329
[exec] !MESSAGE Cannot find a solution satisfying the following
requirements Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse
mat.feature.feature.group/[0.7.0.200806270921,0.7.0.20080627 0921]].

So I will try to use the director of the build SDK for installation...

Kind regards, Erwin
Re: p2 director application: Installing and uninstalling feature [message #114999 is a reply to message #114840] Tue, 22 July 2008 14:38 Go to previous message
Erwin Margewitsch is currently offline Erwin MargewitschFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I tried to use p2 director application to install some features into an
existing target product. I used the following command line but the
installtion was done in the builder installation and not the specified
target product (specified with argument -destination). Anybody an idea
what went wrong?
Is there a possibility to get more verbose output from the p2 director app?

Command line:
C:\Development\eclipse\eclipse3.4\eclipse.exe -application
org.eclipse.equinox.p2.director.app.application -metadataRepository
file:c:/tmp/build/mat/metadata/org.eclipse.mat.feature -artifactRepository
file:c:/tmp/build/mat/results/org.eclipse.mat.feature -installIU
org.eclipse.mat.feature.feature.group -destination c:/tmp/eclipse3.4/
-profile SDKProfile -consolelog -vmArgs
-Declipse.p2.data.area=c:/tmp/eclipse3.4/p2

Kind Regards, Erwin
Previous Topic:p2 and multi-user install
Next Topic:Re: P2 and unresolved dependencies
Goto Forum:
  


Current Time: Sat Apr 27 04:43:34 GMT 2024

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

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

Back to the top