Skip to content

Commit

Permalink
Make process inherit IO
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobTernes committed Mar 22, 2024
1 parent c823860 commit 1eee1b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/fabulator/util/CompileUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package fabulator.util;

import fabulator.FABulator;
import javafx.application.Platform;

import java.io.File;
Expand Down Expand Up @@ -46,10 +47,10 @@ public static void compile(File file, String topModuleName, List<File> includeFi
100,
TimeUnit.MILLISECONDS
);
FABulator.getApplication().addClosedListener(service::shutdown);

ProcessBuilder processBuilder = new ProcessBuilder(
compileToJsonCmd
);
ProcessBuilder processBuilder = new ProcessBuilder(compileToJsonCmd);
processBuilder.inheritIO();
processBuilder.command().forEach(System.out::println);
processBuilder.start();
}
Expand Down Expand Up @@ -90,8 +91,10 @@ private static void compileToFasm(Path jsonFilePath) throws IOException {
100,
TimeUnit.MILLISECONDS
);
FABulator.getApplication().addClosedListener(service::shutdown);

ProcessBuilder processBuilder = new ProcessBuilder(compileToFasmCmd);
processBuilder.inheritIO();
processBuilder.command().forEach(System.out::println);
processBuilder.start();
}
Expand Down

0 comments on commit 1eee1b1

Please sign in to comment.