Package net.sourceforge.cruisecontrol

Examples of net.sourceforge.cruisecontrol.PluginRegistry


        }
    }

    private static Map getPluginDefaults(final Element elementToAlter) {

        final PluginRegistry pluginsRegistry = PluginRegistry.createRegistry();
        final Map pluginDefaults = new HashMap();
        // note: the map returned here is "unmodifiable"
        pluginDefaults.putAll(pluginsRegistry.getDefaultProperties(elementToAlter.getName()));

        if (pluginDefaults.size() == 0) { // maybe we're in a unit test
            // @todo Remove this kludge when we figure out how to make PluginRegistry work in unit test
            LOG.warn("Unit Test kludge for plugin default values. "
                    + "Should happen only if no default plugin settings exist OR during unit tests.");
View Full Code Here


                getAgentPropertiesFilename());

        final String overrideTarget = projectProperties.getProperty(PropertiesHelper.DISTRIBUTED_OVERRIDE_TARGET);
        PluginXMLHelper pluginXMLHelper = PropertiesHelper.createPluginXMLHelper(overrideTarget);

        PluginRegistry plugins = PluginRegistry.createRegistry();
        Class pluginClass = plugins.getPluginClass(builderElement.getName());
        final Builder builder = (Builder) pluginXMLHelper.configure(builderElement, pluginClass, false);

        return builder;
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.cruisecontrol.PluginRegistry

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.