app.softwork.kobol.gradle.KobolRunTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
A Cobol to Kotlin converter
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])
}
}
}