From 028346713eeaa7cbe5dcd283ce1537d602e4f2a9 Mon Sep 17 00:00:00 2001 From: tsln1998 Date: Sat, 22 Feb 2020 18:15:40 +0800 Subject: [PATCH] fix source path on windows --- buildSrc/src/main/java/GolangBindTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/java/GolangBindTask.kt b/buildSrc/src/main/java/GolangBindTask.kt index 06e78b9..eedb262 100644 --- a/buildSrc/src/main/java/GolangBindTask.kt +++ b/buildSrc/src/main/java/GolangBindTask.kt @@ -161,7 +161,7 @@ open class GolangBindTask : DefaultTask() { .asSequence() .filter { line -> line.startsWith("replace") } .map { replace -> - replace.replace(REGEX_REPLACE_TARGET_LOCAL, "=> " + file.parentFile.absolutePath + "/") + replace.replace(REGEX_REPLACE_TARGET_LOCAL, "=> " + file.parentFile.absolutePath.replace('\\','/') + "/") } .map { replace -> replace.replace(REGEX_REPLACE_SOURCE_VERSION, " =>")