diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/MillMain.scala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/main/src/MillMain.scala b/main/src/MillMain.scala index e6403e7f..ca4af87d 100644 --- a/main/src/MillMain.scala +++ b/main/src/MillMain.scala @@ -24,7 +24,7 @@ object MillMain { System.err, System.getenv().asScala.toMap, b => (), - System.getProperties().asScala.toMap + initialSystemProperties = Map() ) System.exit(if (result) 0 else 1) } @@ -135,6 +135,8 @@ object MillMain { stderr.println("Build repl needs to be run with the -i/--interactive flag") (false, stateCache) }else{ + val systemProps = initialSystemProperties ++ extraSystemProperties + val config = if(!repl) cliConfig else cliConfig.copy( @@ -147,9 +149,9 @@ object MillMain { | repl.pprinter(), | build.millSelf.get, | build.millDiscover, - | $debugLog, + | debugLog = $debugLog, | keepGoing = $keepGoing, - | ${initialSystemProperties ++ extraSystemProperties} + | systemProperties = ${systemProps} |) |repl.pprinter() = replApplyHandler.pprinter |import replApplyHandler.generatedEval._ @@ -165,9 +167,9 @@ object MillMain { stateCache, env, setIdle, - debugLog, + debugLog = debugLog, keepGoing = keepGoing, - initialSystemProperties ++ extraSystemProperties + systemProperties = systemProps ) if (mill.main.client.Util.isJava9OrAbove) { |