|
|
| Re: Adding source features to category.xml [message #896378 is a reply to message #896313] |
Wed, 18 July 2012 04:39   |
|
I think <feature-name>.source is the correct name.
For example following works for me:
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature id="org.xtext.example.mydsl.sdk" version="0.0.0">
<category name="main"/>
</feature>
<feature id="org.xtext.example.mydsl.sdk.source" version="0.0.0">
<category name="main.source"/>
</feature>
<category-def name="main" label="Mydsl"/>
<category-def name="main.source" label="Source for Mydsl"/>
</site>
You can also look into the metadata of the generated p2 repositoy to track down what is going wrong.
+Dennis Hübner
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
|
|
|
|
|
| Re: Adding source features to category.xml [message #896629 is a reply to message #896406] |
Thu, 19 July 2012 04:11   |
Lorenzo Bettini Messages: 1119 Registered: July 2009 |
Senior Member |
|
|
On 07/18/2012 12:05 PM, Thomas Hallgren wrote:
> On 07/18/2012 11:37 AM, Dennis Huebner wrote:
>>> That depends actually. If the name ends with .feature, then the name
>>> of the source feature will become .source.feature
>>
>> Very interesting, there is probably a very good reason for such kind
>> of behavior.
>> That may be a bit confusing for buckminster noobs :)
>
> At the time when this was implemented, this naming scheme seemed to be
> very common. Hence the logic that implements it. Some new naming rules
> were established when p2 came around though, which I think has made
> people move away from the older habit of using a .feature suffix for
> features. P2 adds '.feature.group' and 'feature.jar' to the respective
> p2 IU's and names ending with .feature.feature.group and
> feature.feature.jar might seem a bit strange.
So, it would be better NOT to add .feature to feature's id?
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
|
|
|
|
Powered by
FUDForum. Page generated in 0.02031 seconds