Class VersionEvaluatorProvider
java.lang.Object
org.jdrupes.gitversioning.core.VersionEvaluatorProvider
- All Implemented Interfaces:
VersionEvaluator, VersionEvaluatorProvider
A simple version evaluator provider. It looks up the tags in the
current branch, uses the tag filter to identify the version tags
and selects the latest one.
It then invokes the tag processor to produce a version string.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrepository(org.eclipse.jgit.lib.Repository repository) Sets the repository to use.subDirectory(Path subDirectory) Sets the sub directory of the work tree that is relevant for evaluating the version.Sets the tag filter to use.tagProcessor(TagProcessor tagProcessor) Sets the tag processor to use.version()Returns the evaluated version.
-
Field Details
-
log
-
-
Constructor Details
-
VersionEvaluatorProvider
public VersionEvaluatorProvider()Initializes a new version evaluator provider.
-
-
Method Details
-
repository
Description copied from interface:VersionEvaluatorProviderSets the repository to use.- Specified by:
repositoryin interfaceVersionEvaluatorProvider- Parameters:
repository- the repository- Returns:
- the version evaluator provider
-
subDirectory
Description copied from interface:VersionEvaluatorSets the sub directory of the work tree that is relevant for evaluating the version. Usually, only files in this directory are checked for changes, resulting in a "dirty" in the version.- Specified by:
subDirectoryin interfaceVersionEvaluator- Parameters:
subDirectory- the sub directory- Returns:
- the version evaluator
-
tagFilter
Description copied from interface:VersionEvaluatorSets the tag filter to use.- Specified by:
tagFilterin interfaceVersionEvaluator- Parameters:
tagFilter- the tag filter- Returns:
- the version evaluator
-
tagProcessor
Description copied from interface:VersionEvaluatorSets the tag processor to use.- Specified by:
tagProcessorin interfaceVersionEvaluator- Parameters:
tagProcessor- the tag processor- Returns:
- the version evaluator
-
version
Description copied from interface:VersionEvaluatorReturns the evaluated version.- Specified by:
versionin interfaceVersionEvaluator- Returns:
- the string
-