ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <>
Subject [jira] [Commented] (IVYDE-350) Workspace resolver seems to ignore setting "Read OSGi metadata"
Date Sat, 02 Nov 2013 23:23:19 GMT


Nicolas Lalevée commented on IVYDE-350:

After looking further into it, it doesn't work indeed, it is not supported.

If anyone interested to contribute a patch, see
    private IAccessRule[] getAccessRules(IJavaProject javaProject) {
        if (!osgiAvailable || !classpathSetup.isReadOSGiMetadata()) {
            return null;
        // TODO
        // Nicolas: AFAIU, the access rules seems to have to be set on the imported project
        // rather than filtering here, afterwards
        return null;

> Workspace resolver seems to ignore setting "Read OSGi metadata"
> ---------------------------------------------------------------
>                 Key: IVYDE-350
>                 URL:
>             Project: IvyDE
>          Issue Type: Bug
>          Components: workspace resolver
>    Affects Versions: trunk
>         Environment: Eclipse 4.2 (Juno), Java 1.6, Windows
>            Reporter: Riccardo Foschia
> The problem happened with trunk build from (
installed via update site for trunk builds.
> I'm developing two Eclipse plugins A and B in the same workspace. B depends on A. I use
an IvyDE classpath container instead of the PDE one for both plugin projects. A has two packages:
api (which is exported, i.e. listed in the plugin's manifest in section "Export-Package")
and impl (which is not exported, i.e. not listed in the plugin's manifest).
> Now it is possible to access classes of package impl of plugin A from
> the project of plugin B without getting error markers in Eclipse. After
> setting the checkbox "Read OSGi metadata" on the global preferences of
> IvyDE I expected that this will cause IvyDE to setup the OSGi visibility
> constraints but the code in B that accesses the "hidden" classes from A
> is still not marked with an error. If I remove the IvyDE classpath
> containers from the plugin projects and use the PDE classpath container
> the error markers appear.

This message was sent by Atlassian JIRA

View raw message