org.openlca.git.actions.GitRemoteAction Maven / Gradle / Ivy
The newest version!
package org.openlca.git.actions;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.ProgressMonitor;
import org.eclipse.jgit.transport.CredentialsProvider;
public abstract class GitRemoteAction {
protected ProgressMonitor monitor;
protected CredentialsProvider credentialsProvider;
public GitRemoteAction withProgress(ProgressMonitor monitor) {
this.monitor = monitor;
return this;
}
public GitRemoteAction authorizeWith(CredentialsProvider credentialsProvider) {
this.credentialsProvider = credentialsProvider;
return this;
}
public abstract T run() throws GitAPIException;
}