app.softwork.kobol.gradle.KobolRunTask.kt Maven / Gradle / Ivy
package app.softwork.kobol.gradle
import org.gradle.api.provider.*
import org.gradle.api.tasks.*
import org.gradle.work.*
@DisableCachingByDefault
public abstract class KobolRunTask : SshTask() {
@get:Input
public abstract val cmds: ListProperty
@get:Input
public abstract val export: ListProperty
@TaskAction
internal fun execute() {
workerExecutor.classLoaderIsolation {
classpath.setFrom(sshClasspath)
}.submit(SshCmdAction::class.java) {
host.set([email protected])
user.set([email protected])
folder.set([email protected])
cmds.set([email protected])
export.set([email protected])
}
}
}