Hi Harshana,

Thanks for the reply.

Regards,
Sohani

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog     :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine


On Sat, Apr 26, 2014 at 1:37 PM, Harshana Eranga Martin <
[email protected]> wrote:

> Hi Sohani,
>
> When a package name contains the "internal", they are automatically matked
> as private packages by the maven felix plugin.
>
> Hence declaring them as private package is redundant but makes no harm
> either.
>
> Thanks and Regards,
> Harshana
> On 26 Apr 2014 15:56, "Sohani Weerasinghe" <[email protected]> wrote:
>
>> Hi All,
>>
>> When I want to expose only the interface (eg: package is org.wso2.carbon.
>> abc) and keep it's implementation (eg: package is
>> org.wso2.carbon.abc.internal) as private, the Export package in pom.xml
>> is as follows
>>
>> <Export-Package>
>>     !org.wso2.carbon.abc.internal,
>>     org.wso2.carbon.abc.*
>> </Export-Package>
>>
>> Since I have included the package which is private with the negation (!) as 
>> shown above do I need to include the private package as well as shown below?
>>
>> <Private-Package>org.wso2.carbon.abc.internal.*</Private-Package>
>>
>> Thanks,
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog     :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to