Hervé Guillemet
09/28/2022, 3:58 AMtasks.register<JavaExec>("someTask") {
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("some.class")
mainModule.set("some.module")
args("--foo")
}
, but if I use the --args bar
option when launching the task, this will override the setting of --foo
.
Any way to force a command line argument from the build script that won't get erased when --args
is used ?