public class GitStatusConsumer extends AbstractConsumer
logger
Constructor and Description |
---|
GitStatusConsumer(File workingDirectory)
Consumer when workingDirectory and repositoryRootDirectory are the same
|
GitStatusConsumer(File workingDirectory,
ScmFileSet scmFileSet)
Assuming that you have to discover the repositoryRoot, this is how you can get the
relativeRepositoryPath |
GitStatusConsumer(File workingDirectory,
URI relativeRepositoryPath)
Assuming that you have to discover the repositoryRoot, this is how you can get the
relativeRepositoryPath |
GitStatusConsumer(File workingDirectory,
URI relativeRepositoryPath,
ScmFileSet scmFileSet)
Assuming that you have to discover the repositoryRoot, this is how you can get the
relativeRepositoryPath |
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(String line) |
List<ScmFile> |
getChangedFiles() |
static String |
resolvePath(String fileEntry,
URI path) |
static URI |
resolveURI(String fileEntry,
URI path) |
static URI |
uriFromPath(String path)
Create an URI whose getPath() returns the given path and getScheme() returns null.
|
parseDate, parseDate
public GitStatusConsumer(File workingDirectory)
workingDirectory
- the working directorypublic GitStatusConsumer(File workingDirectory, URI relativeRepositoryPath)
relativeRepositoryPath
URI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
workingDirectory
- the working directoryrelativeRepositoryPath
- the working directory relative to the repository rootGitStatusCommand.createRevparseShowPrefix(ScmFileSet)
public GitStatusConsumer(File workingDirectory, ScmFileSet scmFileSet)
relativeRepositoryPath
URI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
workingDirectory
- the working directoryscmFileSet
- fileset with includes and excludesGitStatusCommand.createRevparseShowPrefix(ScmFileSet)
public GitStatusConsumer(File workingDirectory, URI relativeRepositoryPath, ScmFileSet scmFileSet)
relativeRepositoryPath
URI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
workingDirectory
- the working directoryrelativeRepositoryPath
- the working directory relative to the repository rootscmFileSet
- fileset with includes and excludesGitStatusCommand.createRevparseShowPrefix(ScmFileSet)
public void consumeLine(String line)
public static String resolvePath(String fileEntry, URI path)
public static URI resolveURI(String fileEntry, URI path)
fileEntry
- the fileEntry, must not be null
path
- the path, must not be null
public static URI uriFromPath(String path)
path
- the path.public List<ScmFile> getChangedFiles()
Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.