public class CurrentVersion extends Object
Constructor and Description |
---|
CurrentVersion() |
Modifier and Type | Method and Description |
---|---|
com.github.zafarkhaja.semver.Version |
getCurrentVersion(File directory,
String latestTag,
PrintStream logger)
Return the next version of the version attribute.
|
void |
setProcessHelper(ProcessHelper processHelper) |
public void setProcessHelper(ProcessHelper processHelper)
public com.github.zafarkhaja.semver.Version getCurrentVersion(File directory, String latestTag, PrintStream logger) throws IOException, InterruptedException
directory
- The project's directory.latestTag
- The last tagged version.IOException
- If an error occur reading files.InterruptedException
- If an error occurs while executing command using processHelper.Copyright © 2016–2022. All rights reserved.