1
- /*******************************************************************************
2
- * sdrtrunk
3
- * Copyright (C) 2014-2017 Dennis Sheirer
1
+ /*
2
+ * *****************************************************************************
3
+ * Copyright (C) 2014-2023 Dennis Sheirer
4
4
*
5
5
* This program is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU General Public License as published by
14
14
*
15
15
* You should have received a copy of the GNU General Public License
16
16
* along with this program. If not, see <http://www.gnu.org/licenses/>
17
- *
18
- ****************************************************************************** /
17
+ * ****************************************************************************
18
+ */
19
19
package io .github .dsheirer .properties ;
20
20
21
21
import io .github .dsheirer .gui .SDRTrunk ;
22
22
import io .github .dsheirer .util .ThreadPool ;
23
- import org .slf4j .Logger ;
24
- import org .slf4j .LoggerFactory ;
25
-
26
- import java .awt .*;
23
+ import java .awt .Color ;
27
24
import java .io .FileInputStream ;
28
25
import java .io .FileOutputStream ;
29
26
import java .io .IOException ;
37
34
import java .util .concurrent .TimeUnit ;
38
35
import java .util .concurrent .atomic .AtomicBoolean ;
39
36
import java .util .jar .Manifest ;
37
+ import org .slf4j .Logger ;
38
+ import org .slf4j .LoggerFactory ;
40
39
41
40
/**
42
41
* SystemProperties - provides an isolated instance of properties for the application
@@ -48,6 +47,7 @@ public class SystemProperties
48
47
private static String DEFAULT_APP_ROOT = "SDRTrunk" ;
49
48
private static String PROPERTIES_FILENAME = "SDRTrunk.properties" ;
50
49
private static String MANIFEST_VERSION = "Implementation-Version" ;
50
+ private static String BUILD_TIMESTAMP = "Build-Timestamp" ;
51
51
52
52
private static SystemProperties INSTANCE ;
53
53
private static Properties mProperties ;
@@ -208,11 +208,19 @@ public String getApplicationName()
208
208
if (manifest != null )
209
209
{
210
210
String version = manifest .getMainAttributes ().getValue (MANIFEST_VERSION );
211
+ String timestamp = manifest .getMainAttributes ().getValue (BUILD_TIMESTAMP );
211
212
212
213
if (version != null )
213
214
{
214
- sb .append (" v" );
215
- sb .append (version );
215
+ if (version .contains ("nightly" ) && timestamp != null )
216
+ {
217
+ sb .append ( " nightly - " ).append (timestamp );
218
+ }
219
+ else
220
+ {
221
+ sb .append (" v" );
222
+ sb .append (version );
223
+ }
216
224
}
217
225
}
218
226
0 commit comments