Package org.apache.felix.sigil.common.repository

Examples of org.apache.felix.sigil.common.repository.ResolutionConfig


                    }
                    else if (element instanceof IRequiredBundle)
                    {
                        IRequiredBundle rb = (IRequiredBundle) element;
                        IRepositoryManager manager = project.getRepositoryManager();
                        ResolutionConfig config = new ResolutionConfig(
                            ResolutionConfig.INCLUDE_OPTIONAL
                                | ResolutionConfig.IGNORE_ERRORS);
                        try
                        {
                            IResolution r = manager.getBundleResolver().resolve(rb, config,
View Full Code Here


            monitor.beginTask("Resolving classpath for " + sigil.getSymbolicName(), 2);
        }

        ArrayList<IClasspathEntry> entries = new ArrayList<IClasspathEntry>();

        ResolutionConfig config = new ResolutionConfig(ResolutionConfig.INCLUDE_OPTIONAL
            | ResolutionConfig.IGNORE_ERRORS | ResolutionConfig.INDEXED_ONLY
            | ResolutionConfig.LOCAL_ONLY | ResolutionConfig.COMPILE_TIME);

        IResolution resolution;
        try
View Full Code Here

        if (isDisplayed(OPTIONAL))
        {
            options |= ResolutionConfig.INCLUDE_OPTIONAL;
        }

        ResolutionConfig config = new ResolutionConfig(options);

        try
        {
            resolver.resolve(element, config, monitor);
        }
View Full Code Here

        throws CoreException
    {
        SubMonitor progress = SubMonitor.convert(monitor, 100);

        IRepositoryManager manager = getRepositoryManager();
        ResolutionConfig config = new ResolutionConfig(ResolutionConfig.INCLUDE_OPTIONAL
            | ResolutionConfig.IGNORE_ERRORS);

        try
        {
            IResolution resolution = manager.getBundleResolver().resolve(this, config,
View Full Code Here

                {
                    IRequiredBundle rb = (IRequiredBundle) element;
                    try
                    {
                        IRepositoryManager manager = SigilProject.this.getRepositoryManager();
                        ResolutionConfig config = new ResolutionConfig(
                            ResolutionConfig.IGNORE_ERRORS);
                        IResolution res = manager.getBundleResolver().resolve(rb, config,
                            new ResolutionMonitorAdapter(monitor));
                        ISigilBundle b = res.getProvider(rb);
                        for (IPackageExport pe : b.getBundleInfo().getExports())
View Full Code Here

    {
        int options = ResolutionConfig.IGNORE_ERRORS | ResolutionConfig.INCLUDE_OPTIONAL;
        if (transitive)
            options |= ResolutionConfig.INCLUDE_DEPENDENTS;

        ResolutionConfig config = new ResolutionConfig(options);
        try
        {
            return resolve(element, config);
        }
        catch (ResolutionException e)
View Full Code Here

        throws ResolutionException
    {
        int options = 0;
        if (transitive)
            options |= ResolutionConfig.INCLUDE_DEPENDENTS;
        ResolutionConfig config = new ResolutionConfig(options);
        return resolve(element, config);
    }
View Full Code Here

                    throw new URISyntaxException(base.toString(),
                        "Unexpected number of parts: " + parts.length);
            }
            try
            {
                ResolutionConfig config = new ResolutionConfig(
                    ResolutionConfig.IGNORE_ERRORS);
                IResolution resolution = resolver.resolve(element, config, null);
                if (resolution.getBundles().isEmpty())
                {
                    SigilCore.error("Failed to resolve bundle for " + base);
View Full Code Here

TOP

Related Classes of org.apache.felix.sigil.common.repository.ResolutionConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.