Hi,
I’m using Gradle 2.7 on Mac Yosemite. I have the below task defined in my build.grade script to copy my WAR file to my Tomcat webapps directory …
task deployToTomcat(type: Copy) {
from war.archivePath
into "$System.env.CATALINA_HOME/webapps"
}
How do I run this task only if the environment variable “CATALINA_HOME” is defined?