Hi all,

I created a dummy feature and using the p2.inf to a file (db.sql) to C5 at
<PRODUCT_HOME>/dbscripts. But when I generate the feature using the
carbon-feature-plugin 2.0.0, the p2.inf in the feature's zip is empty.  As
per [1], I tried to define the p2 touchpoint in the adviceFile, but it did
not work.

On debugging, it was noticed that before reading the p2.inf, it is set to
the Writer. I have created the JIRA for this [2] and sent the fix to
carbon-maven-plugins master branch [3]. I tested by creating a dummy
feature as mentioned previously. You can find the sample here [4].

[1] -
https://docs.wso2.com/display/Carbon500/Using+the+Carbon+Feature+Plugin
[2] - https://wso2.org/jira/browse/CMVNPLG-1
[3] - https://github.com/wso2/carbon-maven-plugins/pull/26
[4] - https://github.com/Niranjan-K/sample-carbon-feature

Regards,
Nira

On Fri, Feb 12, 2016 at 11:15 AM, Niranjan Karunanandham <[email protected]>
wrote:

> Hi Asitha,
>
> As an example, you can check out the cipher-tool p2.inf [1].
>
> [1] -
> https://github.com/wso2/cipher-tool/blob/master/features/org.wso2.ciphertool.feature/resources/p2.inf
>
> Regards,
> Nira
>
> On Fri, Feb 12, 2016 at 11:07 AM, Niranjan Karunanandham <
> [email protected]> wrote:
>
>> Hi Asitha,
>>
>>
>> On Fri, Feb 12, 2016 at 10:54 AM, Asitha Nanayakkara <[email protected]>
>> wrote:
>>
>>> Hi all,
>>>
>>> At the moment, all the configuration files that are relevant to a
>>> specific feature need to be added at the distribution packaging phase using
>>> maven assembly plugin.
>>>
>>> Therefore when a feature is installed to a carbon server the relevant
>>> configuration files are not copied. Either needs to be added manually or
>>> add the specific files using assembly plugin when building the product.
>>>
>> You can use the p2.inf file to copy config files to specific location
>> when installing features. We have being using this when installing features
>> in kernel 4.4.x based features.
>>
>>
>>>
>>> For instance when an MB feature is installed on ESB all the
>>> configuration files need to be manually copied.
>>>
>>
>>> Are there any plans on implementing this capability for feature
>>> deployments in hamming release?
>>>
>>> Regards,
>>> Asitha
>>> --
>>> *Asitha Nanayakkara*
>>> Software Engineer
>>> WSO2, Inc. http://wso2.com/
>>> Mob: + 94 77 85 30 682
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> Regards,
>> Nira
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to