Package org.springframework.roo.project

Examples of org.springframework.roo.project.Plugin


    private List<Plugin> getPlugins(final String xPathExpression,
            final Element configuration) {
        final List<Plugin> buildPlugins = new ArrayList<Plugin>();
        for (final Element pluginElement : XmlUtils.findElements(
                xPathExpression + "/plugins/plugin", configuration)) {
            buildPlugins.add(new Plugin(pluginElement));
        }
        return buildPlugins;
    }
View Full Code Here


        final List<Element> databasePlugins = XmlUtils.findElements(
                jdbcDatabase.getConfigPrefix() + "/plugins/plugin",
                configuration);
        for (final Element pluginElement : databasePlugins) {
            requiredPlugins.add(new Plugin(pluginElement));
        }

        final List<Element> ormPlugins = XmlUtils.findElements(
                ormProvider.getConfigPrefix() + "/plugins/plugin",
                configuration);
        for (final Element pluginElement : ormPlugins) {
            requiredPlugins.add(new Plugin(pluginElement));
        }

        // Identify any redundant plugins
        final List<Plugin> redundantPlugins = new ArrayList<Plugin>();
        redundantPlugins.addAll(getPlugins(databaseXPath, configuration));
View Full Code Here

        LOGGER.log(Level.WARNING, "[ERROR] " + e);
      }
    }

    // Generate Plugin
    Plugin cloudFoundryMvnPlugin = new Plugin("org.cloudfoundry",
        "cf-maven-plugin", "1.0.4", conf, null, null);

    // Adding plugin
    projectOperations
        .addBuildPlugin(projectOperations.getFocusedModuleName(),
View Full Code Here

        // Now install the plugin itself
        if (plugin != null) {
            projectOperations.addBuildPlugin(
                    projectOperations.getFocusedModuleName(),
                    new Plugin(plugin));
        }
    }
View Full Code Here

        final String xPathExpression = "/configuration/"
                + (isGaeEnabled ? "gae" : "gwt") + "/plugins/plugin";
        final List<Element> pluginElements = XmlUtils.findElements(
                xPathExpression, XmlUtils.getConfiguration(getClass()));
        for (final Element pluginElement : pluginElements) {
            plugins.add(new Plugin(pluginElement));
        }
        projectOperations.addBuildPlugins(
                projectOperations.getFocusedModuleName(), plugins);
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.project.Plugin

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.