mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
move DEFAULT_APP_NAME to HavenoExecutable
This commit is contained in:
parent
7e3d89797e
commit
1aa62863f4
@ -82,6 +82,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {
|
public abstract class HavenoExecutable implements GracefulShutDownHandler, HavenoSetup.HavenoSetupListener, UncaughtExceptionHandler {
|
||||||
|
|
||||||
|
public static final String DEFAULT_APP_NAME = "Haveno";
|
||||||
|
|
||||||
public static final int EXIT_SUCCESS = 0;
|
public static final int EXIT_SUCCESS = 0;
|
||||||
public static final int EXIT_FAILURE = 1;
|
public static final int EXIT_FAILURE = 1;
|
||||||
public static final int EXIT_RESTART = 2;
|
public static final int EXIT_RESTART = 2;
|
||||||
|
@ -31,7 +31,7 @@ public class HavenoHeadlessAppMain extends HavenoExecutable {
|
|||||||
protected HeadlessApp headlessApp;
|
protected HeadlessApp headlessApp;
|
||||||
|
|
||||||
public HavenoHeadlessAppMain() {
|
public HavenoHeadlessAppMain() {
|
||||||
super("Haveno Daemon", "havenod", "Haveno", Version.VERSION);
|
super("Haveno Daemon", "havenod", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
@ -47,12 +47,10 @@ import java.util.concurrent.ExecutionException;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class HavenoAppMain extends HavenoExecutable {
|
public class HavenoAppMain extends HavenoExecutable {
|
||||||
|
|
||||||
public static final String DEFAULT_APP_NAME = "Haveno";
|
|
||||||
|
|
||||||
private HavenoApp application;
|
private HavenoApp application;
|
||||||
|
|
||||||
public HavenoAppMain() {
|
public HavenoAppMain() {
|
||||||
super("Haveno Desktop", "haveno-desktop", DEFAULT_APP_NAME, Version.VERSION);
|
super("Haveno Desktop", "haveno-desktop", HavenoExecutable.DEFAULT_APP_NAME, Version.VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user