mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +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("Logging level: " + logger.getEffectiveLevel());
|
||||||
logger.info("Default charset: " + Charset.defaultCharset());
|
logger.info("Default charset: " + Charset.defaultCharset());
|
||||||
String adminPassword = "";
|
String adminPassword = "";
|
||||||
|
|
||||||
|
// enable test mode by default for developer build (if you run it from source code)
|
||||||
|
testMode |= version.isDeveloperBuild();
|
||||||
|
|
||||||
for (String arg : args) {
|
for (String arg : args) {
|
||||||
if (arg.startsWith(testModeArg)) {
|
if (arg.startsWith(testModeArg)) {
|
||||||
testMode = Boolean.parseBoolean(arg.replace(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))
|
final String configPath = Optional.ofNullable(System.getProperty(configPathProp))
|
||||||
.orElse(defaultConfigPath);
|
.orElse(defaultConfigPath);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue