Package org.guvnor.structure.repositories

Examples of org.guvnor.structure.repositories.RepositoryService


    public ExecutionResults execute(CommandContext commandContext) throws Exception {

        String gitRepo = (String) getParameter(commandContext, "GitRepository");
        BeanManager beanManager = CDIUtils.lookUpBeanManager(commandContext);
        logger.debug("BeanManager " + beanManager);
        RepositoryService repositoryService = CDIUtils.createBean(RepositoryService.class, beanManager);

        Repository repository = repositoryService.getRepository(gitRepo);
        if (repository == null) {
            throw new IllegalArgumentException("No repository found for alias " + gitRepo);
        }

        Collection<String> branchNames = repository.getBranches();
View Full Code Here


    if (ioService != null) {

     
      ProjectService projectService = CDIUtils.createBean(ProjectService.class, beanManager);
 
      RepositoryService repositoryService = CDIUtils.createBean(RepositoryService.class, beanManager);
      logger.debug("RepositoryService " + repositoryService);
     
      if (repositoryService != null) {
         
        Repository repo = repositoryService.getRepository(repository);
       
        Map<String, Object> config = new HashMap<String, Object>();
        config.put("branch", branchToUpdate + "-" + version);
       
        repo = repositoryService.updateRepository(repo, config);
        logger.debug("Updated repository " + repo);
 
        // update all pom.xml files of projects on the dev branch       
        Set<Project> projects = getProjects(repo, ioService, projectService);
       
View Full Code Here

        String branchName = (String) getParameter(commandContext, "BranchName");

        BeanManager beanManager = CDIUtils.lookUpBeanManager(commandContext);
        logger.debug("BeanManager " + beanManager);

        RepositoryService repositoryService = CDIUtils.createBean(RepositoryService.class, beanManager);

        Repository repository = repositoryService.getRepository(gitRepo);
        if (repository == null) {
            throw new IllegalArgumentException("No repository found for alias " + gitRepo);
        }

View Full Code Here

TOP

Related Classes of org.guvnor.structure.repositories.RepositoryService

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.