Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Support for subfolders in plug-in jars

As an alternative, can I modify a tycho project to have it produce the regular OSGI jar file with all classes, plus an "api" jar file that contains only public classes (located in a given subtree)? I am new to maven, sorry if this is an obvious question...

Thanks,
Franck

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Sievers, Jan
Sent: Thursday, March 15, 2012 2:17 PM
To: Tycho user list
Subject: Re: [tycho-user] Support for subfolders in plug-in jars

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.


Back to the top