All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.qoomon.gitversioning.VersionDescription Maven / Gradle / Ivy

There is a newer version: 9.10.0
Show newest version
package me.qoomon.gitversioning;

public class VersionDescription {

    private String pattern;

    private String versionFormat;

    public VersionDescription() {
        this(null, null);
    }

    public VersionDescription(String pattern, String versionFormat) {
        setPattern(pattern);
        setVersionFormat(versionFormat);
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(final String pattern) {
        this.pattern = pattern != null ? pattern : ".*";
    }

    public String getVersionFormat() {
        return versionFormat;
    }

    public void setVersionFormat(final String versionFormat) {
        this.versionFormat = versionFormat != null ? versionFormat : "${commit}";
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy