Skip to content

Commit

Permalink
Fix LS test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Dec 16, 2024
1 parent de437cc commit efbc2df
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

Expand All @@ -117,7 +116,7 @@
public class BallerinaWorkspaceManager implements WorkspaceManager {

// workspace run related constants
private static final String JAVA_COMMAND = System.getProperty("java.command");
private static final String JAVA_COMMAND = "java.command";
private static final String USER_DIR = System.getProperty("user.dir");
private static final String HEAP_DUMP_FLAG = "-XX:+HeapDumpOnOutOfMemoryError";
private static final String HEAP_DUMP_PATH_FLAG = "-XX:HeapDumpPath=";
Expand Down Expand Up @@ -673,7 +672,7 @@ private Optional<Process> executeProject(ProjectContext projectContext, RunConte

private List<String> prepareExecutionCommands(RunContext context, Module module, JarResolver jarResolver) {
List<String> commands = new ArrayList<>();
commands.add(JAVA_COMMAND);
commands.add(System.getProperty(JAVA_COMMAND));
commands.add(HEAP_DUMP_FLAG);
commands.add(HEAP_DUMP_PATH_FLAG + USER_DIR);
if (context.debugPort() > 0) {
Expand Down

0 comments on commit efbc2df

Please sign in to comment.