Skip to content

Commit

Permalink
Ignore --jvm when already in the right JVM
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jun 28, 2024
1 parent e67cc87 commit 8f18b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/runner/src/main/java/org/enso/runner/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,9 @@ private void launch(String[] args) throws IOException, InterruptedException, URI
if (line.hasOption(JVM_OPTION)) {
var jvm = line.getOptionValue(JVM_OPTION);
var current = System.getProperty("java.home");
if (jvm == null) {
jvm = current;
}
if (current == null || !current.equals(jvm)) {
var loc = Main.class.getProtectionDomain().getCodeSource().getLocation();
var commandAndArgs = new ArrayList<String>();
Expand Down

0 comments on commit 8f18b2f

Please sign in to comment.