mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-28 00:22:03 +00:00
Output revision with -v/--version
This commit is contained in:
@@ -36,6 +36,7 @@ public class BuildProperties {
|
||||
}
|
||||
return new BuildProperties(
|
||||
buildProperties.getProperty("version"),
|
||||
buildProperties.getProperty("revision"),
|
||||
buildProperties.getProperty("os.detected.name"),
|
||||
buildProperties.getProperty("os.detected.arch"));
|
||||
}
|
||||
@@ -43,9 +44,11 @@ public class BuildProperties {
|
||||
private final String version;
|
||||
private final String osName;
|
||||
private final String osArch;
|
||||
private final String revision;
|
||||
|
||||
public BuildProperties(String version, String os, String arch) {
|
||||
public BuildProperties(String version, String revision, String os, String arch) {
|
||||
this.version = version;
|
||||
this.revision = revision;
|
||||
this.osName = os;
|
||||
this.osArch = arch;
|
||||
}
|
||||
@@ -61,4 +64,8 @@ public class BuildProperties {
|
||||
public String getOsArch() {
|
||||
return osArch;
|
||||
}
|
||||
|
||||
public String getRevision() {
|
||||
return revision;
|
||||
}
|
||||
}
|
||||
|
@@ -15,11 +15,8 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
buildNumber=${buildNumber}
|
||||
revision=${buildNumber}
|
||||
timestamp=${timestamp}
|
||||
version=${project.version}
|
||||
distributionId=${distributionId}
|
||||
distributionShortName=${distributionShortName}
|
||||
distributionName=${distributionName}
|
||||
os.detected.name=${os.detected.name}
|
||||
os.detected.arch=${os.detected.arch}
|
Reference in New Issue
Block a user