rafaelmaeuer
4/9/2018 - 12:55 PM

Gradle - How to execute shell command?

exec {
     executable "sh"
    args "-c","source ${root}/etc/localBuildPorts"
     }
 println System.getenv()['FINAL_LOCALTEST_TOMCAT_HTTP_PORT']