public class WriteVersion extends Object
Constructor and Description |
---|
WriteVersion() |
Modifier and Type | Method and Description |
---|---|
void |
setProcessHelper(ProcessHelper processHelper) |
String |
write(com.github.zafarkhaja.semver.Version nextVersion,
File directory)
Writes next semantic version in a file.
|
public void setProcessHelper(ProcessHelper processHelper)
public String write(com.github.zafarkhaja.semver.Version nextVersion, File directory) throws IOException, InterruptedException
nextVersion
- The project's calculated next semantic version.directory
- Directory of the projectIOException
- If an error occurs while reading/writing files.InterruptedException
- If an error occurs while executing command using processHelper.Copyright © 2016–2022. All rights reserved.