use of org.jumpmind.properties.TypedProperties in project symmetric-ds by JumpMind.
the class AbstractVersion method version.
public String version() {
if (version == null) {
Attributes attributes = findManifestAttributes();
if (attributes != null) {
version = attributes.getValue("Build-Version");
} else {
File gradleProperties = new File("../symmetric-assemble/gradle.properties");
if (gradleProperties.exists()) {
TypedProperties props = new TypedProperties(gradleProperties);
version = props.get("version");
} else {
version = "development";
}
}
}
return version;
}
Aggregations