Exec / execute in Gradle doesn't use PATH?

Hello,

I’m using Gradle on Mac OS X and running Unix commands from my build script using execute and exec. However, Gradle doesn’t seem to be picking up my PATH setting - in particular, it’s not finding commands in /usr/local/bin unless I specify the full pathname.

I’d prefer not to specify a full pathname for every command - why is Gradle not picking up the PATH variable from my environment? How do I change the default PATH in Gradle?

Thanks,

Robert