[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Support for subfolders in plug-in jars
|
The OSGI bundles are to be consumed in non-OSGI legacy applications, this is the simplest approach to hide the internal classes from plain java apps that put the bundle jar on their classpaths (less clutter than creating fragments for the internal classes for example).
There are probably other valid use cases for subfolders in the jar, or the Bundle-Classpath directive wouldn't have been introduced...
Thanks for your answer though!
Franck
On Mar 15, 2012, at 2:17 PM, "Sievers, Jan" <jan.sievers@xxxxxxx> wrote:
> short answer:
>
> don't use nested dirs or jars unless you absolutely have to.
>
> longer answer:
>
> This may or may not work, I did not try it. If you want to hide internal classes, just use OSGi package visibility (Export-Package).
> Compiling against non-exported packages is a compilation error in tycho by default.
>
> Regards
> Jan
>
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Mangin, Franck
> Sent: Donnerstag, 15. März 2012 13:54
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] Support for subfolders in plug-in jars
>
> Hi,
> I can’t figure out if Tycho supports packaging a plug-in classes in distinct subfolders, as specified in this sample build.properties:
>
> source.. = src/com/acme/hello/
> output.. = classes/
> bin.includes = META-INF/,\
> .,\
> internal/
> jars.compile.order = .,\
> internal/
> source.internal/ = src/com/acme/internal/
>
> When built using PDE this creates a jar with the hello classes are at the root of the jar, while the internal classes are in an internal folder in that jar. Is that possible with Tycho?
>
> Thanks!
> Franck
> This email and any files transmitted with it are confidential, proprietary
> and intended solely for the individual or entity to whom they are addressed.
> If you have received this email in error please delete it immediately.
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.