Gradle, js, npm simple linker: fix creating junction on windows

This commit is contained in:
Sergey Rostov
2019-06-05 15:27:05 +03:00
parent 96fc06c7fb
commit eab577001b
@@ -69,7 +69,7 @@ class NpmSimpleLinker(val rootProject: Project) {
}
fun addLink(linkFile: String, target: String) {
js.appendln("fs.symlinkSync(${jsQuotedString(linkFile)}, ${jsQuotedString(target)}, 'junction')")
js.appendln("fs.symlinkSync(${jsQuotedString(target)}, ${jsQuotedString(linkFile)}, 'junction')")
}
private fun jsQuotedString(str: String) = StringWriter().also {