Examples of SessionAndProjects


Examples of com.atlassian.maven.plugins.jgitflow.helper.SessionAndProjects

        flow.git().checkout().setName(flow.getDevelopBranchName()).call();

        compareDevPomFiles(projects);
       
        return new SessionAndProjects(session,projects);
       
    }
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.helper.SessionAndProjects

            ReleaseContext ctx = contextProvider.getContext();
           
            String originalBranchName = branchHelper.getCurrentBranchName();
           
            //check out develop and reload the reactor
            SessionAndProjects sessionAndProjects = checkoutAndGetProjects.run(flow.getDevelopBranchName());
            List<MavenProject> developProjects = sessionAndProjects.getProjects();

            String developLabel = labelProvider.getNextVersionLabel(VersionType.DEVELOPMENT, ProjectCacheKey.DEVELOP_BRANCH, developProjects);

            pomUpdater.updatePomsWithNextDevelopmentVersion(ProjectCacheKey.DEVELOP_BRANCH, developProjects);
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.helper.SessionAndProjects

    public void execute(GitFlowConfiguration configuration, Git git, JGitFlowCommand gitFlowCommand, JGitFlowReporter reporter) throws JGitFlowExtensionException
    {
        try
        {
            ReleaseContext ctx = contextProvider.getContext();
            SessionAndProjects sap = branchHelper.getSessionAndProjectsForCurrentBranch();

            MavenProject rootProject = ReleaseUtil.getRootProject(sap.getProjects());

            if (!ctx.isNoBuild())
            {
                mavenExecutionHelper.execute(rootProject, sap.getSession());
            }
        }
        catch (Exception e)
        {
            throw new JGitFlowExtensionException("Error building project from " + this.getClass().getSimpleName(),e);
View Full Code Here

Examples of com.atlassian.maven.plugins.jgitflow.helper.SessionAndProjects

            flow.git().checkout().setName(branchName).call();
           
            //reload the reactor projects for develop
            MavenSession branchSession = mavenExecutionHelper.getSessionForBranch(branchName, ReleaseUtil.getRootProject(reactorProjectsProvider.getReactorProjects()), sessionProvider.getSession());
           
            return new SessionAndProjects(branchSession,branchSession.getSortedProjects());
        }
        catch (Exception e)
        {
            throw new MavenJGitFlowException("Error checking out branch and loading projects", e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.