[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tycho-user] Using the "jdt" compiler and setting up access rules
- From: Max Rydahl Andersen <max.andersen@xxxxxxxxxx>
- Date: Thu, 13 Sep 2012 10:57:06 +0200
- Delivered-to: firstname.lastname@example.org
> Do you have specific proposal in mind?
I'm exploring options for how one could go about marking which packages/classes are supported vs non-supported from a product support perspective.
OSGI Access rules are normally used for expressing API concerns and read directly from the bundle but when I realized eclipse JDT actually can apply
this to *any* jar it suddenly became interesting to try use it for this.
But it should be something that could be applied to the default maven java compiler setup so you could apply it to specific jars or all of the code being compiled.
> From what I can tell, you will
> need new compiler plugin that will allow you to specify both
> dependencies and their corresponding access rules. You should be able to
> develop such compiler plugin without any changes to tycho code already.
But then the rules wouldn't be applied to the tycho builds afaics ?
> On 12-09-12 2:14 PM, Max Rydahl Andersen wrote:
>>> I believe you need to have a bundle, at least if you want to use
>>> tycho-compiler-jdt and tycho-compiler-plugin.
>> Would you be open for adding support to use it to compile code and being able to set additional access rules for the bundles and non-bundles alike ?
>> (of course via contribution ;)
>> Or do you think that is handled better with some other plugin ?
>>> There maybe something for
>>> classpath access rule management in pax-construct, but I have not looked
>>> at that for very long time and don't remember much about it any more.
>> I couldn't spot it on my look through.
>>> On 12-09-12 5:00 AM, Max Rydahl Andersen wrote:
>>>> I'm looking into use the features of eclipse JDT compiler to setup access rules for jars independent of the jar used being osgi or not.
>>>> Is there a way to configure access rules for the jar's explicitly in the JDT compiler or is it required to be declared in the manifests ?
>>>> tycho-user mailing list
>>> tycho-user mailing list
>> tycho-user mailing list
> tycho-user mailing list