Package com.atlassian.jgitflow.core

Examples of com.atlassian.jgitflow.core.InitContext


    {
        String projectName = "basic-pom";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectName);
        File projectRoot = projects.get(0).getBasedir();

        InitContext init = new InitContext();
        init.setRelease("superguy/");
       
        ReleaseContext ctx = new ReleaseContext(projectRoot);
       
        ctx.setInteractive(false)
           .setNoTag(true)
View Full Code Here


    @Test
    public void customDevelopName() throws Exception
    {
        String developName = "voipac-current";
        InitContext initContext = new InitContext();
        initContext.setDevelop(developName);

        JGitFlow flow = startFeature(initContext);

        String projectSubdir = "basic-pom";
        List<MavenProject> projects = createReactorProjects("rewrite-for-release", projectSubdir,false);
View Full Code Here

        assertTrue(pom.contains("1.0-SNAPSHOT"));
    }
   
    private JGitFlow startFeature() throws Exception
    {
        return startFeature(new InitContext());
    }
View Full Code Here

        this.args = "";
        this.startCommit = "";
        this.releaseBranchVersionSuffix = "release";
        this.enableFeatureVersions = true;
        this.tagMessage = "tagging release ${version}";
        this.flowInitContext = new InitContext();
        this.enableSshAgent = false;
        this.allowUntracked = false;
        this.noReleaseMerge = false;
        this.noFeatureMerge = false;
        this.allowRemote = true;
View Full Code Here

        this.args = "";
        this.startCommit = "";
        this.releaseBranchVersionSuffix = "release";
        this.enableFeatureVersions = false;
        this.tagMessage = "tagging release ${version}";
        this.flowInitContext = new InitContext();
        this.enableSshAgent = false;
        this.allowUntracked = false;
        this.noReleaseMerge = false;
        this.noFeatureMerge = false;
        this.allowRemote = true;
View Full Code Here

        this.versionTagPrefix = versionTagPrefix;
    }
   
    public InitContext getJGitFlowContext()
    {
        InitContext ctx = new InitContext();
        ctx.setMaster(masterBranchName)
                .setDevelop(developBranchName)
                .setFeature(featureBranchPrefix)
                .setRelease(releaseBranchPrefix)
                .setHotfix(hotfixBranchPrefix)
                .setVersiontag(versionTagPrefix);
View Full Code Here

        this.args = "";
        this.startCommit = "";
        this.releaseBranchVersionSuffix = "release";
        this.enableFeatureVersions = true;
        this.tagMessage = "tagging release ${version}";
        this.flowInitContext = new InitContext();
        this.enableSshAgent = false;
        this.allowUntracked = false;
        this.noReleaseMerge = false;
        this.noFeatureMerge = false;
        this.allowRemote = true;
View Full Code Here

        this.noDeploy = false;
        this.noBuild = false;
        this.useReleaseProfile = true;
        this.args = "";
        this.tagMessage = "tagging release ${version}";
        this.flowInitContext = new InitContext();
    }
View Full Code Here

    {
        Git git = null;

        git = RepoUtil.createRepositoryWithMaster(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        InitContext ctx = new InitContext();
        ctx.setVersiontag("vtag/");

        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();
View Full Code Here

    {
        Git git = null;

        git = RepoUtil.createRepositoryWithMaster(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        InitContext ctx = new InitContext();
        ctx.setVersiontag("vtag/");
       
        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();
       
View Full Code Here

TOP

Related Classes of com.atlassian.jgitflow.core.InitContext

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.