-
Notifications
You must be signed in to change notification settings - Fork 1
/
Version.java.template
82 lines (74 loc) · 2.16 KB
/
Version.java.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Class ID: Version
* Copyright (C) 2014-2018, 2020, 2021 Mark Grant
*
* Released under the GPLv3 only.
* SPDX-License-Identifier: GPL-3.0-only
*
*/
/* ######################################################################
* # #
* # Version.java is auto-generated from Version.java.template and is #
* # triggered by the project build. #
* # #
* # Please make modifications to the template. #
* # #
* ######################################################################
*/
/* **********************************************************************
* *
* ChangeLog *
* *
* Date Author Version Description *
* *
* 09/12/2015 MG 1.0.2 Introduced ChangeLog for this Version *
* Class. *
* 10/12/2015 MG 1.0.3 Introduced package ChangeLog into this *
* Version Class. *
* Make srcVersion and pkgVersion final. *
* 20/07/2018 MG 1.0.4 Update code formatting. *
* Add SPDX license tag. *
* Remove package ChangeLog. The info is *
* in git and AutoTools ChangeLog. *
* 29/11/2021 MG 1.0.5 Tighten SPDX tag. *
* *
************************************************************************
*/
package alarmclock;
/**
* Class solely to return the version of this package.
* @author Mark Grant
* @version 1.0.5
*/
public class Version {
private static final String pkgVersion =
new String("@package_version@");
private static final String srcVersion = "v1.3.1";
/**
* Public static method to return the overall package version.
* @return The overall package version.
*/
public static String getPkgVersion() {
return pkgVersion;
}
/**
* Public static method to return the overall source version of this
* package.
* @return The overall source version.
*/
public static String getSrcVersion() {
return srcVersion;
}
/**
* Public static method to print the overall package version on stdout.
*/
public static void printPkgVersion() {
System.out.println(pkgVersion);
}
/**
* Public static method to print the overall source version on stdout.
*/
public static void printSrcVersion() {
System.out.println(srcVersion);
}
}