Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Using the "jdt" compiler and setting up access rules

> 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 ?

/max

> 
> --
> Regards,
> Igor
> 
> 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.
>> 
>> /max
>> 
>>> 
>>> --
>>> Regards,
>>> Igor
>>> 
>>> On 12-09-12 5:00 AM, Max Rydahl Andersen wrote:
>>>> Hi,
>>>> 
>>>> 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 ?
>>>> 
>>>> /max
>>>> _______________________________________________
>>>> tycho-user mailing list
>>>> tycho-user@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>>> 
>>> _______________________________________________
>>> tycho-user mailing list
>>> tycho-user@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> 
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>> 
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top