fix source path on windows

This commit is contained in:
tsln1998 committed 2020-02-22 18:15:40 +08:00
1 parent a6d5fbc2ca
commit 028346713e
1 file changed
+1 -1
+1 -1
View File
@@ -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, " =>")