Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Get progress of push command in JGit

could this one help?

PushCommand cmd = git.//
push();
if (!silentUpload) {
cmd.setProgressMonitor(new TextProgressMonitor());
}

Source:

https://github.com/ingenieux/beanstalker/blob/master/beanstalk-maven-plugin/src/main/java/br/com/ingenieux/mojo/beanstalk/bundle/FastDeployMojo.java

--
-- Aldrin Leal, <aldrin@xxxxxxxxxxx>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/

On Wed, Mar 11, 2015 at 2:35 PM, Albert Battle <battalovalb@xxxxxxxxx> wrote:

I am able to push to the remote repository with the following command

git.push().setCredentialsProvider(new UsernamePasswordCredentialsProvider(user, password)).setRemote("origin").call();

Sometimes it takes a few minutes to push to the repository and I want somehow to keep track of the progress. There's an interface org.eclipse.jgit.lib.ProgressMonitor but no examples of how to use it.


_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jgit-dev


Back to the top