fixup! Added assert

This commit is contained in:
Elena Lepilkina
2021-11-19 17:37:28 +03:00
committed by Space
parent 74260bc138
commit fe2f82430f
@@ -116,6 +116,7 @@ open class RunKotlinNativeTask @Inject constructor(private val linkTask: Task,
fun run() {
val output = ByteArrayOutputStream()
remoteHost?.let {
requireNotNull(remoteHostFolder) {"Please provide folder on remote host with -PremoteHostFolder=<folder>"}
project.exec {
executable = "scp"
args(this@RunKotlinNativeTask.executable, "$it:$remoteHostFolder")