Merge pull request #135 from tsln1998/fix_windows_build

fix source path on windows
This commit is contained in:
Kr328 authored and GitHub committed 2020-02-22 21:57:16 +08:00
commit 253d465d32
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, " =>")