Skip to content

Commit

Permalink
Quote Ruby script path to handle folders containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 15, 2024
1 parent f11152b commit edd00e1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019 Red Hat Inc. and others.
* Copyright (c) 2019-2024 Red Hat Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
Expand All @@ -11,6 +11,7 @@
* Alexander Kurtakov (Red Hat Inc.) - Initial implementation
* Pierre-Yves B. ([email protected]) - Various improvements
* Pierre-Yves B. ([email protected]) - Debugger support
* Pierre-Yves B. ([email protected]) - Quote script path
*******************************************************************************/
package io.github.pyvesb.eclipse_solargraph.launch.run;

Expand All @@ -35,7 +36,7 @@ public void launch(ILaunchConfiguration configuration, String mode, ILaunch laun
// a config attribute reader threw exception & was logged
return;
}
String command = "ruby " + script + " " + arguments;
String command = "ruby \"" + script + "\" " + arguments;
LaunchHelper.createJob(launch, command, workingDirectory).schedule();
}

Expand Down

0 comments on commit edd00e1

Please sign in to comment.