@@ -322,31 +322,31 @@ object RunModule {
322
322
val env = Option (forkEnv).getOrElse(forkEnv0)
323
323
if (background) {
324
324
val (stdout, stderr) = if (runBackgroundLogToConsole) {
325
- // Hack to forward the background subprocess output to the Mill server process
326
- // stdout/stderr files, so the output will get properly slurped up by the Mill server
327
- // and shown to any connected Mill client even if the current command has completed
328
- val pwd0 = os.Path (java.nio.file.Paths .get(" ." ).toAbsolutePath)
329
- (
330
- os.PathAppendRedirect (pwd0 / " .." / ServerFiles .stdout),
331
- os.PathAppendRedirect (pwd0 / " .." / ServerFiles .stderr)
332
- )
333
- } else {
334
- (dest / " stdout.log" : os.ProcessOutput , dest / " stderr.log" : os.ProcessOutput )
335
- }
336
- Jvm .spawn(
337
- mainClass = mainClass1,
338
- classPath = classPath,
339
- jvmArgs = jvmArgs,
340
- env = env,
341
- mainArgs = mainArgs,
342
- cwd = cwd,
343
- stdin = ProcessInput .makeSourceInput(" " ): os.ProcessInput ,
344
- stdout = stdout,
345
- stderr = stderr,
346
- useCpPassingJar = useClasspathPassingJar,
347
- javaHome = javaHome,
348
- destroyOnExit = false
325
+ // Hack to forward the background subprocess output to the Mill server process
326
+ // stdout/stderr files, so the output will get properly slurped up by the Mill server
327
+ // and shown to any connected Mill client even if the current command has completed
328
+ val pwd0 = os.Path (java.nio.file.Paths .get(" ." ).toAbsolutePath)
329
+ (
330
+ os.PathAppendRedirect (pwd0 / " .." / ServerFiles .stdout),
331
+ os.PathAppendRedirect (pwd0 / " .." / ServerFiles .stderr)
349
332
)
333
+ } else {
334
+ (dest / " stdout.log" : os.ProcessOutput , dest / " stderr.log" : os.ProcessOutput )
335
+ }
336
+ Jvm .spawn(
337
+ mainClass = mainClass1,
338
+ classPath = classPath,
339
+ jvmArgs = jvmArgs,
340
+ env = env,
341
+ mainArgs = mainArgs,
342
+ cwd = cwd,
343
+ stdin = ProcessInput .makeSourceInput(" " ): os.ProcessInput ,
344
+ stdout = stdout,
345
+ stderr = stderr,
346
+ useCpPassingJar = useClasspathPassingJar,
347
+ javaHome = javaHome,
348
+ destroyOnExit = false
349
+ )
350
350
} else {
351
351
val processResult = Jvm .call(
352
352
mainClass = mainClass1,
0 commit comments