Skip to content

Commit

Permalink
fix: add quotes around compilers' filepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav0Art committed Oct 11, 2024
1 parent 2a243ff commit a46b99a
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 a46b99a

Please sign in to comment.