mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08: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…
Add table
Add a link
Reference in a new issue