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 a8aff58 commit a0875af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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 +673,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 a0875af

Please sign in to comment.