public class JGitLocalResourceRepository extends JGitSource implements Closeable, ResourceRepository, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
JGitSource
and
StaticLocalResourceRepository
Constructor and Description |
---|
JGitLocalResourceRepository(String repoUri) |
JGitLocalResourceRepository(String repoUri,
File workingDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
close() |
void |
destroy() |
File |
getResource(String filePath)
Get file object for given relative file path in repository
|
getBranchOrCommmit, initWorkingDirectory, setBranchOrCommit, setBuildInSshIdentityUsed, setSshIdentity, setSshIdentityFile, setUserPassword, setUserPassword, updateWorkingDirectory
public JGitLocalResourceRepository(String repoUri)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void destroy() throws IOException
destroy
in interface org.springframework.beans.factory.DisposableBean
IOException
public File getResource(String filePath)
ResourceRepository
getResource
in interface ResourceRepository
filePath
- File path relative to the root of repositoryCopyright © 2009–2014. All rights reserved.