You can use Task.onlyIf()
to accomplish this.
task deployToTomcat(type: Copy) {
from war.archivePath
into "$System.env.CATALINA_HOME/webapps"
onlyIf {
System.env['CATALINA_HOME'] != null
}
}
You can use Task.onlyIf()
to accomplish this.
task deployToTomcat(type: Copy) {
from war.archivePath
into "$System.env.CATALINA_HOME/webapps"
onlyIf {
System.env['CATALINA_HOME'] != null
}
}