Package org.bndtools.api

Examples of org.bndtools.api.HeadlessBuildPlugin


        }
    }

    @Override
    public HeadlessBuildPlugin addingService(ServiceReference reference) {
        HeadlessBuildPlugin plugin = (HeadlessBuildPlugin) super.addingService(reference);
        NamedPlugin pluginInformation = plugin.getInformation();
        String name = pluginInformation.getName();
        synchronized (plugins) {
            plugins.put(name, reference);
            pluginsInformation.put(name, pluginInformation);
        }
View Full Code Here


        return plugin;
    }

    @Override
    public void remove(ServiceReference reference) {
        HeadlessBuildPlugin plugin = (HeadlessBuildPlugin) getService(reference);
        String name = plugin.getInformation().getName();
        synchronized (plugins) {
            pluginsInformation.remove(name);
            plugins.remove(name);
        }
        super.remove(reference);
View Full Code Here

                pluginReference = this.plugins.get(pluginName);
            }
            if (pluginReference == null) {
                continue;
            }
            HeadlessBuildPlugin plugin = (HeadlessBuildPlugin) getService(pluginReference);
            if (plugin == null) {
                continue;
            }

            try {
                plugin.setup(cnf, projectDir, add, versionControlIgnoresPluginTracker, enabledIgnorePlugins);
            } catch (Throwable e) {
                logger.logError(String.format("Unable to %s headless build file(s) for the %sproject in %s", add ? "add" : "remove", cnf ? "cnf " : "", projectDir.getAbsolutePath()), e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.bndtools.api.HeadlessBuildPlugin

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.