From f88de0faa2b00affdaff6077d24ccb1475ba413a Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 22 Nov 2023 12:39:42 +0100 Subject: [PATCH] Escape Windows path. --- .../net/bytebuddy/build/gradle/ByteBuddyPluginTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyPluginTest.java b/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyPluginTest.java index 88765da8a7..5606169a8f 100644 --- a/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyPluginTest.java +++ b/byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyPluginTest.java @@ -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", @@ -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",