I’m trying to write a Gradle task which copies generated war files to my local tomcat instance:
This isn’t working and I’m not sure how to debug it:
task deploylocal() << {
println "Copy from ${buildDir}\\libs into ${tomcatHome}/webapps"
copy{
from "${buildDir}\\libs"
into "${tomcatHome}/webapps"
include '*.war'
}
}
Any ideas on what to do next?
Alternatively, you might be able to leverage the gradle-tomcat-plugin