Hello Katya,
And thank you for mentioning this patch; it looks like something that could 
help updating this profile !
Unfortunately, I'm having a hard time applying this patch :
-I have several "Discouraged access: The type xxx is not accessible due to 
restriction on required project yyy" on both ProvCommandProvider and 
ProvisioningHelper classes
org.eclipse.equinox.p2.publisher.eclipse,
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory,
org.eclipse.equinox.internal.p2.extensionlocation.Constants,
org.eclipse.equinox.p2.publisher.eclipse.BundlesAction
-->I know I should be able to remove those errors tweaking my workspace 
settings (I just haven't be able to find this option in 3.7 :-( )
-line 177 in ProvCommandProvider, there's an argument missing, I guess it is 
true; but I'm not sure...

Maybe I should talk about this in the eclipse bug , could you please give me 
the reference ?
Thanks again,
Regards,
Anthony



 
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de 
l'information pouvant être confidentielle. Vous ne devez ni le copier ni 
l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le 
destinataire ou une personne désignée autorisée. Si vous le receviez par 
erreur, veuillez nous aviser immédiatement et le détruire.
 
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.
 

De : [email protected] [mailto:[email protected]] De la part 
de Todorova, Katya
Envoyé : Thursday, December 09, 2010 10:51 AM
À : P2 developer discussions
Objet : Re: [p2-dev] P2 console : manipulating a profile

Hi, 

It's a command SAP has contributed as a patch to p2.console, but it's still not 
a part of the official codeline. 
Patch is available here: 
https://bugs.eclipse.org/bugs/attachment.cgi?id=174616

The other option you have is to restart.
I hope this helps.

Kind regards,
Katya 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dahanne, Anthony
Sent: Thursday, December 09, 2010 4:34 PM
To: P2 developer discussions
Subject: Re: [p2-dev] P2 console : manipulating a profile

Hello Hristo,
I do not have this command, "provapplychanges" available in my runtime.
Here is my console prompt :
---P2 Provisioning Commands---
---Repository Commands---
        provaddrepo <repository URI> - Adds a both a metadata and artifact 
repository at URI
        provdelrepo <repository URI> - Deletes a metadata and artifact 
repository at URI
        provaddmetadatarepo <repository URI> - Adds a metadata repository at URI
        provdelmetadatarepo <repository URI> - Deletes a metadata repository at 
URI
        provaddartifactrepo <repository URI> - Adds an artifact repository at 
URI
        provdelartifactrepo <repository URI> - Deletes an artifact repository 
URI
        provlg [<repository URI> <iu id | *> <version range | *>] - Lists all 
IUs with group capabilities in the given repo or in all repos if URI is omitted
        provlr [<repository URI> <iu id | *> <version range | *>]   - Lists all 
metadata repositories, or the contents of a given metadata repository
        provlar [<repository URI>] - Lists all artifact repositories, or the 
contents of a given artifact repository
        provliu [<repository URI | *> <iu id | *> <version range | *>] - Lists 
the IUs that match the pattern in the given repo.  * matches all
        provlquery <repository URI | *> <expression> [ true | false ] - Lists 
the IUs that match the query expression in the given repo.  * matches all. The 
expression is expected to be a boolean match expression unless the third 
argument is true, in which case the expression is a full query
---Profile Registry Commands---
        provaddprofile <profileid> <location> <flavor> - Adds a profile with 
the given profileid, location and flavor
        provdelprofile <profileid> - Deletes a profile with the given profileid
        provlp [<profileid | *>] - Lists all profiles, or the contents of the 
profile at the given profile
        provlgp [<profileid>] - Lists all IUs with group capabilities in the 
given profile, or current profile if profileid is omitted
        provlpts [<profileid>] - Lists timestamps for given profile, or if no 
profileid given then the default profile timestamps are reported
        provlpquery <profileid | this> <expression> [ true | false ] - Lists 
the IUs that match the query expression in the given profile. The expression is 
expected to be a boolean match expression unless the third argument is true, in 
which case the expression is a full query
---Install Commands---
        provinstall <InstallableUnit> <version> <profileid> - installs an IU to 
the profileid.  If no profileid is given, installs into default profile.
        provremove <InstallableUnit> <version> <profileid> - Removes an IU from 
the profileid.  If no profileid is given, installs into default profile.
        provrevert <profileTimestamp> <profileid>] - Reverts to a given 
profileTimestamp for an optional profileId

Moreover, looking at : 
org.eclipse.equinox.internal.p2.console.ProvCommandProvider, I can not find it 
either.
I'm working with p2 trunk.
Thanks for your help!



 
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de 
l'information pouvant être confidentielle. Vous ne devez ni le copier ni 
l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le 
destinataire ou une personne désignée autorisée. Si vous le receviez par 
erreur, veuillez nous aviser immédiatement et le détruire.
 
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.
 

De : [email protected] [mailto:[email protected]] De la part 
de Iliev, Hristo
Envoyé : Thursday, December 09, 2010 2:23 AM
À : P2 developer discussions
Objet : Re: [p2-dev] P2 console : manipulating a profile

Hi,

Did you try to apply the changes by invoking provapplychanges command?

Regards,
Hristo Iliev


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dahanne, Anthony
Sent: Wednesday, December 08, 2010 11:55 PM
To: P2 developer discussions
Subject: [p2-dev] P2 console : manipulating a profile

Hello all !
Playing with the p2 console
(org.eclipse.equinox.p2.console_1.0.300.qualifier) I wanted to :
* Add a repo "myrepo" (provaddrepo http://myrepo)
* Add a profile "myprofile" (provaddprofile myprofile C:\eclipse-with-p2
whatever)
* Install a IU from "myrepo" to "myprofile" (provinstall
edu.umd.cs.findbugs.plugin.eclipse.feature.group 1.3.9.20090821
myprofile)
But I could not...
For the last command (provinstall), I received this answer :
Installation complete for
edu.umd.cs.findbugs.plugin.eclipse.feature.group 1.3.9.20090821

But browsing to C:\eclipse-with-p2 , I could not find any changes to
this installation...

I thought that I would achieve basically the same behavior than using p2
director with :
-application org.eclipse.equinox.p2.director 
   -repository http://myrepo
   -installIU edu.umd.cs.findbugs.plugin.eclipse.feature.group
   -location C:\eclipse-with-p2

I think I misunderstood something about the profile : I thought that a
profile would represent a system and its configuration; so how come that
in the steps I described nothing happened to my installation located in
C:\eclipse-with-p2 ?
Thank you for your help !


Anthony Dahanne
Software Developer
Compuware Montreal
75 Rue Queen, Suite 6500
Montreal, QC, Canada H3C 2N6
514-281-1100 x1173 Direct


 
Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de 
l'information pouvant être confidentielle. Vous ne devez ni le copier ni 
l'utiliser ni le divulguer à qui que ce soit à moins que vous soyez le 
destinataire ou une personne désignée autorisée. Si vous le receviez par 
erreur, veuillez nous aviser immédiatement et le détruire.
 
The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it.
 

_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev


_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev

Reply via email to