I’m trying to exec a process with changed variable:
task ("some_task") {
exec {
environment "new", "blablabla"
executable "cmd"
args "/c", "echo", "${System.env.new}"
}
Unfortunately gradle doesn’t show new var when executing:
Starting process ‘command ‘cmd’’. Working directory: C:\xxx Command: cmd /c echo null.
Am I doing something wrong, or should I raise a bug?