Skip to content

Commit

Permalink
Merge pull request #389 from JetBrains-Research/vartiukhov/fix/quote-…
Browse files Browse the repository at this point in the history
…compiler-executable-filepath

Add quotes around compilers' filepaths
  • Loading branch information
pderakhshanfar authored Oct 11, 2024
2 parents 2a243ff + a46b99a commit fda68f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class JavaTestCompiler(
// compile file
val errorMsg = CommandLineRunner.run(
arrayListOf(
javac,
/**
* Filepath may contain spaces, so we need to wrap it in quotes.
*/
"'$javac'",
"-cp",
classPaths,
path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class KotlinTestCompiler(
// TODO: we treat warnings as errors for now
val errorMsg = CommandLineRunner.run(
arrayListOf(
kotlinc,
/**
* Filepath may contain spaces, so we need to wrap it in quotes.
*/
"'$kotlinc'",
"-cp",
classPaths,
path,
Expand Down

0 comments on commit fda68f4

Please sign in to comment.