@ConfigurationProperties(value="git") public class JGitResourceRepository extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
JGitResourceRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
File |
getBasedir() |
String |
getLabel() |
String |
getPassphrase() |
String |
getPassword() |
int |
getTimeout() |
String |
getUri() |
String |
getUsername() |
boolean |
isCloneOnStart() |
protected boolean |
isStrictHostKeyChecking() |
void |
refresh() |
String |
refresh(String branch)
Get the working directory ready.
|
void |
setBasedir(File basedir) |
void |
setCloneOnStart(boolean cloneOnStart) |
void |
setForcePull(boolean forcePull) |
void |
setGitCredentialsProvider(org.eclipse.jgit.transport.CredentialsProvider gitCredentialsProvider) |
void |
setGitFactory(org.springframework.cloud.stream.app.common.resource.repository.JGitResourceRepository.JGitFactory gitFactory) |
void |
setLabel(String label) |
void |
setPassphrase(String passphrase) |
void |
setPassword(String password) |
void |
setPrefix(String prefix) |
void |
setStrictHostKeyChecking(boolean strictHostKeyChecking) |
void |
setTimeout(int timeout) |
void |
setUri(String uri) |
void |
setUsername(String username) |
boolean |
shouldPull(org.eclipse.jgit.api.Git git) |
protected void |
warn(String message,
Exception ex) |
public boolean isCloneOnStart()
public void setCloneOnStart(boolean cloneOnStart)
public void setTimeout(int timeout)
public int getTimeout()
public void setBasedir(File basedir)
public File getBasedir()
public void setUri(String uri)
public String getUri()
public void setLabel(String label)
public String getLabel()
public void setPrefix(String prefix)
public void setUsername(String username)
public String getUsername()
public void setPassword(String password)
public String getPassword()
public void setPassphrase(String passphrase)
public String getPassphrase()
public void setStrictHostKeyChecking(boolean strictHostKeyChecking)
public void setGitFactory(org.springframework.cloud.stream.app.common.resource.repository.JGitResourceRepository.JGitFactory gitFactory)
public void setForcePull(boolean forcePull)
public void setGitCredentialsProvider(org.eclipse.jgit.transport.CredentialsProvider gitCredentialsProvider)
gitCredentialsProvider - the gitCredentialsProvider to setpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void refresh()
protected boolean isStrictHostKeyChecking()
public boolean shouldPull(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.