com.atlassian.maven.plugins.jgitflow.extension.command.PullDevelopCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgitflow-maven-plugin Show documentation
Show all versions of jgitflow-maven-plugin Show documentation
A maven plugin to support doing git-flow releases
package com.atlassian.maven.plugins.jgitflow.extension.command;
import com.atlassian.jgitflow.core.GitFlowConfiguration;
import com.atlassian.jgitflow.core.JGitFlowReporter;
import com.atlassian.jgitflow.core.command.JGitFlowCommand;
import com.atlassian.jgitflow.core.exception.JGitFlowExtensionException;
import org.codehaus.plexus.component.annotations.Component;
import org.eclipse.jgit.api.Git;
@Component(role = PullDevelopCommand.class)
public class PullDevelopCommand extends BranchPullingCommand
{
@Override
public void execute(GitFlowConfiguration configuration, Git git, JGitFlowCommand gitFlowCommand, JGitFlowReporter reporter) throws JGitFlowExtensionException
{
try
{
if(contextProvider.getContext().isPullDevelop())
{
setBranchName(jGitFlowProvider.gitFlow().getDevelopBranchName());
super.execute(configuration, git, gitFlowCommand, reporter);
}
}
catch (Exception e)
{
throw new JGitFlowExtensionException("Error pulling branch '" + getBranchName() + "'",e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy