Fix file components order

The path of the webpacked JavaScript file that should be included in the server JAR is constructed by taking the webpack tasks output directory, and appending the filename of the JavaScript module. Previously, the constructor arguments were flipped, leading to an invalid path.
This commit is contained in:
David Schreiber-Ranner
2020-01-24 14:12:02 +01:00
committed by Ilya Goncharov
parent a8edd08121
commit ae22dc352c
@@ -264,7 +264,7 @@ class KotlinGradleWebMultiplatformModuleBuilder : KotlinGradleAbstractMultiplatf
jvmJar {
dependsOn(jsBrowserProductionWebpack)
from(new File(jsBrowserProductionWebpack.entry.name, jsBrowserProductionWebpack.outputPath))
from(new File(jsBrowserProductionWebpack.destinationDirectory, jsBrowserProductionWebpack.entry.name))
}
task run(type: JavaExec, dependsOn: [jvmJar]) {
@@ -275,4 +275,4 @@ class KotlinGradleWebMultiplatformModuleBuilder : KotlinGradleAbstractMultiplatf
}
""".trimIndent()
}
}
}