Cannot cast object 'export' with class 'java.lang.String' to class 'java.lang.Iterable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cannot cast object 'export' with class 'java.lang.String' to class 'java.lang.Iterable

makapacs
This post has NOT been accepted by the mailing list yet.
i am trying to run command 'export ENV_VAR=Valeu' with the following task:

task importHost(type:Exec){
    commandLine = 'export'
    args = 'CONTROLLER_HOST=host'
}

This return the following error:
Cannot cast object 'export' with class 'java.lang.String' to class 'java.lang.Iterable

Would mind, please, point me the right direction how to run 'export' command via Gradle. Thank you