diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-14 16:46:40 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-14 16:46:40 +1200 |
commit | 5d819b2776328e914a26ae011692084e1b614e26 (patch) | |
tree | 6b535ea62ca0651a6ae2f6a88f88863f7af24eca /src/org/traccar/Context.java | |
parent | b10824bb5769c4abb93e3451673b88efdfb9d467 (diff) | |
download | trackermap-server-5d819b2776328e914a26ae011692084e1b614e26.tar.gz trackermap-server-5d819b2776328e914a26ae011692084e1b614e26.tar.bz2 trackermap-server-5d819b2776328e914a26ae011692084e1b614e26.zip |
Add Windows service support
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 9a8bb97a9..f7bc18d1d 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -340,14 +340,10 @@ public final class Context { } } - public static void init(String[] arguments) throws Exception { + public static void init(String configFile) throws Exception { config = new Config(); - if (arguments.length <= 0) { - throw new RuntimeException("Configuration file is not provided"); - } - - config.load(arguments[0]); + config.load(configFile); loggerEnabled = config.getBoolean("logger.enable"); if (loggerEnabled) { |