# HG changeset patch # User cin # Date 2024-01-02 16:04:20 # Node ID 286da9ffb1123d69b1c86a7d0e522717bff7b7f1 # Parent 910155ed919a4b0e67db6a8ea9052553b9dbca70 Fixed RunImage diff --git a/container/src/main/java/org/implab/gradle/containers/tasks/RunImage.java b/container/src/main/java/org/implab/gradle/containers/tasks/RunImage.java --- a/container/src/main/java/org/implab/gradle/containers/tasks/RunImage.java +++ b/container/src/main/java/org/implab/gradle/containers/tasks/RunImage.java @@ -6,6 +6,7 @@ import org.gradle.api.provider.ListPrope import org.gradle.api.provider.Property; import org.gradle.api.tasks.Input; import org.gradle.api.tasks.Optional; +import org.gradle.api.tasks.TaskAction; import org.implab.gradle.containers.dsl.OptionsMixin; import org.implab.gradle.containers.dsl.VolumeSpec; @@ -32,6 +33,7 @@ public abstract class RunImage extends D getCommandLine().addAll(args); } + @TaskAction public void run() throws InterruptedException, IOException { docker().runImage( getImageName().get(),