Florian Bernstein
08/22/2024, 3:33 PMjsBrowserProductionLibraryDistribution
but the tasks copyJsCode
does not get executed. Due to the print statements I added I can see that the task gets configured. the vars inPath
and outPath
look correct in the logs (for testing I just copy to a test directory, the real path I will add later). But the print statement in the filter path does never get executed.
I also don’t see the task being called in the logs after > Task :ys-kcart:jsBrowserProductionLibraryDistribution
got called.
is my task depending on the wrong task?
tasks.register<Copy>("copyJsCode", Copy::class) {
val inPath = "$projectDir/output"
println("copyJsCode: $inPath")
from(inPath)
{
filter {
println("copied")
it
}
}
val outPath = "$projectDir/output2"
println("copyJsCode: $outPath")
into(outPath)
}
tasks.getByName("copyJsCode")
.dependsOn(tasks.getByName("jsBrowserProductionLibraryDistribution"))