mirror of
https://github.com/correl/mage.git
synced 2024-11-14 11:09:31 +00:00
respect testMode=false
in development builds (#10376)
This commit is contained in:
parent
cf51701705
commit
d199640fb5
1 changed files with 4 additions and 3 deletions
|
@ -87,6 +87,10 @@ public final class Main {
|
|||
logger.info("Logging level: " + logger.getEffectiveLevel());
|
||||
logger.info("Default charset: " + Charset.defaultCharset());
|
||||
String adminPassword = "";
|
||||
|
||||
// enable test mode by default for developer build (if you run it from source code)
|
||||
testMode |= version.isDeveloperBuild();
|
||||
|
||||
for (String arg : args) {
|
||||
if (arg.startsWith(testModeArg)) {
|
||||
testMode = Boolean.parseBoolean(arg.replace(testModeArg, ""));
|
||||
|
@ -98,9 +102,6 @@ public final class Main {
|
|||
}
|
||||
}
|
||||
|
||||
// enable test mode by default for developer build (if you run it from source code)
|
||||
testMode |= version.isDeveloperBuild();
|
||||
|
||||
final String configPath = Optional.ofNullable(System.getProperty(configPathProp))
|
||||
.orElse(defaultConfigPath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue