Skip to content

Commit

Permalink
Escape Windows path.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Nov 22, 2023
1 parent 9d29fdb commit f88de0f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public void testPluginExecution() throws Exception {
write("buildSrc/build.gradle",
"dependencies {",
" if (gradle.gradleVersion.startsWith(\"2.\")) {",
" compile files('" + byteBuddyJar.getAbsolutePath() + "')",
" compile files('" + byteBuddyJar.getAbsolutePath().replace("\\", "\\\\") + "')",
" } else {",
" implementation files('" + byteBuddyJar.getAbsolutePath() + "')",
" implementation files('" + byteBuddyJar.getAbsolutePath().replace("\\", "\\\\") + "')",
" }",
"}");
write("buildSrc/src/main/java/sample/SamplePlugin.java",
Expand Down Expand Up @@ -176,9 +176,9 @@ public void testPluginWithArgumentsExecution() throws Exception {
write("buildSrc/build.gradle",
"dependencies {",
" if (gradle.gradleVersion.startsWith(\"2.\")) {",
" compile files('" + byteBuddyJar.getAbsolutePath() + "')",
" compile files('" + byteBuddyJar.getAbsolutePath().replace("\\", "\\\\") + "')",
" } else {",
" implementation files('" + byteBuddyJar.getAbsolutePath() + "')",
" implementation files('" + byteBuddyJar.getAbsolutePath().replace("\\", "\\\\") + "')",
" }",
"}");
write("buildSrc/src/main/java/sample/SamplePlugin.java",
Expand Down

0 comments on commit f88de0f

Please sign in to comment.