Skip to content

Commit 74e45a9

Browse files
Make console runner use the same java installation as the calling process (#227)
## Usage and product changes Makes TypeDB console runner use the same java installation as the calling process, so the system remain hermetic. ## Implementation * Sets `JAVA_HOME` for the console subprocess to the `java.home` system property of the host process.
1 parent 45e1bae commit 74e45a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tool/runner/TypeDBConsoleRunner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public TypeDBConsoleRunner() throws InterruptedException, TimeoutException, IOEx
4343
System.out.println(name() + " distribution archive extracted.");
4444
executor = new ProcessExecutor()
4545
.directory(distribution.toFile())
46+
.environment("JAVA_HOME", System.getProperty("java.home"))
4647
.redirectOutput(System.out)
4748
.redirectError(System.err)
4849
.readOutput(true)

0 commit comments

Comments
 (0)