Class GitStatusConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.git.gitexe.command.status.GitStatusConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
- Author:
- Mark Struberg
-
Field Summary
Fields inherited from class AbstractConsumer
logger -
Constructor Summary
ConstructorsConstructorDescriptionGitStatusConsumer(File workingDirectory) Consumer when workingDirectory and repositoryRootDirectory are the same.GitStatusConsumer(File workingDirectory, URI relativeRepositoryPath) Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPathGitStatusConsumer(File workingDirectory, URI relativeRepositoryPath, ScmFileSet scmFileSet) Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPathGitStatusConsumer(File workingDirectory, ScmFileSet scmFileSet) Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPath -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeLine(String line) static StringresolvePath(String fileEntry, URI path) static URIresolveURI(String fileEntry, URI path) static URIuriFromPath(String path) Create an URI whose getPath() returns the given path and getScheme() returns null.Methods inherited from class AbstractConsumer
parseDate, parseDate
-
Constructor Details
-
GitStatusConsumer
Consumer when workingDirectory and repositoryRootDirectory are the same.- Parameters:
workingDirectory- the working directory
-
GitStatusConsumer
Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPathURI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
- Parameters:
workingDirectory- the working directoryrelativeRepositoryPath- the working directory relative to the repository root- Since:
- 1.9
- See Also:
-
GitStatusConsumer
Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPathURI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
- Parameters:
workingDirectory- the working directoryscmFileSet- fileset with includes and excludes- Since:
- 1.11.0
- See Also:
-
GitStatusConsumer
Assuming that you have to discover the repositoryRoot, this is how you can get therelativeRepositoryPathURI.create( repositoryRoot ).relativize( fileSet.getBasedir().toURI() )
- Parameters:
workingDirectory- the working directoryrelativeRepositoryPath- the working directory relative to the repository rootscmFileSet- fileset with includes and excludes- Since:
- 1.11.0
- See Also:
-
-
Method Details
-
consumeLine
-
resolvePath
-
resolveURI
-
uriFromPath
-
getChangedFiles
-