All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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])
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy