Package org.springframework.roo.project

Examples of org.springframework.roo.project.Repository


        final List<Element> jsfRepositoryElements = XmlUtils.findElements(
                jsfImplementation.getConfigPrefix() + REPOSITORY_XPATH,
                configuration);
        for (final Element repositoryElement : jsfRepositoryElements) {
            repositories.add(new Repository(repositoryElement));
        }

        final List<Element> jsfLibraryRepositoryElements = XmlUtils
                .findElements(jsfLibrary.getConfigPrefix() + REPOSITORY_XPATH,
                        configuration);
        for (final Element repositoryElement : jsfLibraryRepositoryElements) {
            repositories.add(new Repository(repositoryElement));
        }

        projectOperations.addRepositories(
                projectOperations.getFocusedModuleName(), repositories);
    }
View Full Code Here


        final List<Element> databasePluginRepositories = XmlUtils
                .findElements(jdbcDatabase.getConfigPrefix()
                        + "/pluginRepositories/pluginRepository", configuration);
        for (final Element pluginRepositoryElement : databasePluginRepositories) {
            pluginRepositories.add(new Repository(pluginRepositoryElement));
        }

        final List<Element> ormPluginRepositories = XmlUtils
                .findElements(ormProvider.getConfigPrefix()
                        + "/pluginRepositories/pluginRepository", configuration);
        for (final Element pluginRepositoryElement : ormPluginRepositories) {
            pluginRepositories.add(new Repository(pluginRepositoryElement));
        }

        // Add all new plugin repositories to pom.xml
        projectOperations.addPluginRepositories(moduleName, pluginRepositories);
    }
View Full Code Here

        final List<Element> databaseRepositories = XmlUtils.findElements(
                jdbcDatabase.getConfigPrefix() + "/repositories/repository",
                configuration);
        for (final Element repositoryElement : databaseRepositories) {
            repositories.add(new Repository(repositoryElement));
        }

        final List<Element> ormRepositories = XmlUtils.findElements(
                ormProvider.getConfigPrefix() + "/repositories/repository",
                configuration);
        for (final Element repositoryElement : ormRepositories) {
            repositories.add(new Repository(repositoryElement));
        }

        final List<Element> jpaRepositories = XmlUtils
                .findElements(
                        "/configuration/persistence/provider[@id='JPA']/repositories/repository",
                        configuration);
        for (final Element repositoryElement : jpaRepositories) {
            repositories.add(new Repository(repositoryElement));
        }

        // Add all new repositories to pom.xml
        projectOperations.addRepositories(moduleName, repositories);
    }
View Full Code Here

        final List<Repository> repositories = new ArrayList<Repository>();
        final List<Element> repositoryElements = XmlUtils.findElements(
                "/configuration/spring-data-mongodb/repositories/repository",
                configuration);
        for (final Element repositoryElement : repositoryElements) {
            repositories.add(new Repository(repositoryElement));
        }

        projectOperations.addRepositories(moduleName, repositories);
        projectOperations.addDependencies(moduleName, dependencies);
    }
View Full Code Here

        final List<Repository> repositories = new ArrayList<Repository>();

        final List<Element> gwtRepositories = XmlUtils.findElements(
                "/configuration/gwt/repositories/repository", configuration);
        for (final Element repositoryElement : gwtRepositories) {
            repositories.add(new Repository(repositoryElement));
        }
        projectOperations.addRepositories(
                projectOperations.getFocusedModuleName(), repositories);

        repositories.clear();
        final List<Element> gwtPluginRepositories = XmlUtils.findElements(
                "/configuration/gwt/pluginRepositories/pluginRepository",
                configuration);
        for (final Element repositoryElement : gwtPluginRepositories) {
            repositories.add(new Repository(repositoryElement));
        }
        projectOperations.addPluginRepositories(
                projectOperations.getFocusedModuleName(), repositories);
    }
View Full Code Here

        final List<Repository> repositoryElements = new ArrayList<Repository>();
        for (final Element repositoryElement : XmlUtils.findElements(
                "/configuration/springWebFlow/repositories/repository",
                configuration)) {
            repositoryElements.add(new Repository(repositoryElement));
        }
        projectOperations
                .addRepositories(focusedModuleName, repositoryElements);

        projectOperations.updateProjectType(focusedModuleName, ProjectType.WAR);
View Full Code Here

TOP

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

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.