Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » P2 generator - How to specify feature categories ?
P2 generator - How to specify feature categories ? [message #61913] Fri, 15 May 2009 03:48 Go to next message
Eclipse UserFriend
Hello,

I am using PDE Build to build a set of top level features representing
different software products: each product is represented by one of the top
level feature and most of the top level features include some other shared
feature.

All the build process works fine (I modified the allEmment.xml to list all
my top level features in the allElementDelegator target).

After building I am running p2generator to produce the repository for the
built features. I cannot understand how to categorize features. I would
like to have in the repository a separate root for every top level feature
which includes also the nested shared features but at the moment I am
getting a single "Uncategorized" root node where all features are listed.

In other words, given two top level features F1 and F2 which share feature
G,
I would like to have a P2 repository that looks like the following:

- F1 category
- F1
- G


and

- F2 category
- F2
- G

but I am getting


- Uncategorized
- F1
- F2
- G

Thanks in advance for your help.

GianMaria Romanato
Re: P2 generator - How to specify feature categories ? [message #62054 is a reply to message #61913] Sat, 16 May 2009 17:54 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure the best way to achieve that in 3.4.x.

There was work completed in 3.5M7 to author category definitions. Its
mentioned in the PDE section of New and Noteworthy for that milestone:

http://tinyurl.com/pyspeb

See also the following bug for where definitions can be used:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=272362

There may be a better doc out there (or coming soon) but I don't have a
pointer to it.

Cheers
Ben


GianMaria Romanato wrote:
> Hello,
>
> I am using PDE Build to build a set of top level features representing
> different software products: each product is represented by one of the
> top level feature and most of the top level features include some other
> shared feature.
>
> All the build process works fine (I modified the allEmment.xml to list
> all my top level features in the allElementDelegator target).
>
> After building I am running p2generator to produce the repository for
> the built features. I cannot understand how to categorize features. I
> would like to have in the repository a separate root for every top level
> feature which includes also the nested shared features but at the moment
> I am getting a single "Uncategorized" root node where all features are
> listed.
>
> In other words, given two top level features F1 and F2 which share
> feature G,
> I would like to have a P2 repository that looks like the following:
>
> - F1 category
> - F1
> - G
>
>
> and
> - F2 category
> - F2
> - G
>
> but I am getting
>
>
> - Uncategorized
> - F1
> - F2
> - G
>
> Thanks in advance for your help.
>
> GianMaria Romanato
>
>
>
Re: P2 generator - How to specify feature categories ? [message #62724 is a reply to message #62054] Fri, 22 May 2009 15:37 Go to previous message
Eclipse UserFriend
You can create a site.xml (or in 3.5 a category.xml) using the UI. You
can define your categories there like you would for an old update site.

The 3.4.x EclipseGeneratorApplication supports a -site option that will
take a site.xml file.

In 3.5, the p2.generator and task supports a "site" attribute.

Also in 3.5, you can do
<eclipse.publish.featuresAndBundles
site="file:/path/site.xml"
repository="file:/path/repo" />
or
<eclipse.publish.featuresAndBundles
category="file:/path/category.xml"
repository="file:/path/repo" />
to add categories to a repository.

-Andrew
Ben Vitale wrote:
> I'm not sure the best way to achieve that in 3.4.x.
>
> There was work completed in 3.5M7 to author category definitions. Its
> mentioned in the PDE section of New and Noteworthy for that milestone:
>
> http://tinyurl.com/pyspeb
>
> See also the following bug for where definitions can be used:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=272362
>
> There may be a better doc out there (or coming soon) but I don't have a
> pointer to it.
>
> Cheers
> Ben
>
>
> GianMaria Romanato wrote:
>> Hello,
>>
>> I am using PDE Build to build a set of top level features representing
>> different software products: each product is represented by one of the
>> top level feature and most of the top level features include some
>> other shared feature.
>>
>> All the build process works fine (I modified the allEmment.xml to list
>> all my top level features in the allElementDelegator target).
>>
>> After building I am running p2generator to produce the repository for
>> the built features. I cannot understand how to categorize features. I
>> would like to have in the repository a separate root for every top
>> level feature which includes also the nested shared features but at
>> the moment I am getting a single "Uncategorized" root node where all
>> features are listed.
>>
>> In other words, given two top level features F1 and F2 which share
>> feature G,
>> I would like to have a P2 repository that looks like the following:
>>
>> - F1 category
>> - F1
>> - G
>>
>>
>> and
>> - F2 category
>> - F2
>> - G
>>
>> but I am getting
>>
>>
>> - Uncategorized
>> - F1
>> - F2
>> - G
>>
>> Thanks in advance for your help.
>>
>> GianMaria Romanato
>>
>>
>>
Re: P2 generator - How to specify feature categories ? [message #597579 is a reply to message #61913] Sat, 16 May 2009 17:54 Go to previous message
Eclipse UserFriend
I'm not sure the best way to achieve that in 3.4.x.

There was work completed in 3.5M7 to author category definitions. Its
mentioned in the PDE section of New and Noteworthy for that milestone:

http://tinyurl.com/pyspeb

See also the following bug for where definitions can be used:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=272362

There may be a better doc out there (or coming soon) but I don't have a
pointer to it.

Cheers
Ben


GianMaria Romanato wrote:
> Hello,
>
> I am using PDE Build to build a set of top level features representing
> different software products: each product is represented by one of the
> top level feature and most of the top level features include some other
> shared feature.
>
> All the build process works fine (I modified the allEmment.xml to list
> all my top level features in the allElementDelegator target).
>
> After building I am running p2generator to produce the repository for
> the built features. I cannot understand how to categorize features. I
> would like to have in the repository a separate root for every top level
> feature which includes also the nested shared features but at the moment
> I am getting a single "Uncategorized" root node where all features are
> listed.
>
> In other words, given two top level features F1 and F2 which share
> feature G,
> I would like to have a P2 repository that looks like the following:
>
> - F1 category
> - F1
> - G
>
>
> and
> - F2 category
> - F2
> - G
>
> but I am getting
>
>
> - Uncategorized
> - F1
> - F2
> - G
>
> Thanks in advance for your help.
>
> GianMaria Romanato
>
>
>
Re: P2 generator - How to specify feature categories ? [message #597782 is a reply to message #62054] Fri, 22 May 2009 15:37 Go to previous message
Eclipse UserFriend
You can create a site.xml (or in 3.5 a category.xml) using the UI. You
can define your categories there like you would for an old update site.

The 3.4.x EclipseGeneratorApplication supports a -site option that will
take a site.xml file.

In 3.5, the p2.generator and task supports a "site" attribute.

Also in 3.5, you can do
<eclipse.publish.featuresAndBundles
site="file:/path/site.xml"
repository="file:/path/repo" />
or
<eclipse.publish.featuresAndBundles
category="file:/path/category.xml"
repository="file:/path/repo" />
to add categories to a repository.

-Andrew
Ben Vitale wrote:
> I'm not sure the best way to achieve that in 3.4.x.
>
> There was work completed in 3.5M7 to author category definitions. Its
> mentioned in the PDE section of New and Noteworthy for that milestone:
>
> http://tinyurl.com/pyspeb
>
> See also the following bug for where definitions can be used:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=272362
>
> There may be a better doc out there (or coming soon) but I don't have a
> pointer to it.
>
> Cheers
> Ben
>
>
> GianMaria Romanato wrote:
>> Hello,
>>
>> I am using PDE Build to build a set of top level features representing
>> different software products: each product is represented by one of the
>> top level feature and most of the top level features include some
>> other shared feature.
>>
>> All the build process works fine (I modified the allEmment.xml to list
>> all my top level features in the allElementDelegator target).
>>
>> After building I am running p2generator to produce the repository for
>> the built features. I cannot understand how to categorize features. I
>> would like to have in the repository a separate root for every top
>> level feature which includes also the nested shared features but at
>> the moment I am getting a single "Uncategorized" root node where all
>> features are listed.
>>
>> In other words, given two top level features F1 and F2 which share
>> feature G,
>> I would like to have a P2 repository that looks like the following:
>>
>> - F1 category
>> - F1
>> - G
>>
>>
>> and
>> - F2 category
>> - F2
>> - G
>>
>> but I am getting
>>
>>
>> - Uncategorized
>> - F1
>> - F2
>> - G
>>
>> Thanks in advance for your help.
>>
>> GianMaria Romanato
>>
>>
>>
Previous Topic:PDE Build, SVN and jar qualifiers
Next Topic:--launcher.ini doesn't work in Run Configuration
Goto Forum:
  


Current Time: Sun Jun 08 09:37:34 EDT 2025

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

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

Back to the top