public class VersionHelper extends Object
Constructor and Description |
---|
VersionHelper(org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
ensureVersionCompatible(String rawVersion)
Ensure the install4j version is compatible.
|
String |
fetchVersion(AntHelper ant,
File install4jc)
Get the version of install4 by running
install4jc --version . |
String |
parseVersion(String rawVersion)
Parse version in format:
|
public String fetchVersion(AntHelper ant, File install4jc)
install4jc --version
.ant
- Ant task helperinstall4jc
- File pointing at the install4jc
executable binary.public String parseVersion(String rawVersion)
install4j version _version-#_ (build _build-#_), built on _date_Ignores any lines before.
rawVersion
- Text returned from install4jc --version
_version-#_
portion of the raw version input.Copyright © 2012–2020 Sonatype, Inc.. All rights reserved.