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?
The WAR task is aware of the artifacts it generates.
task deployToTomcat(type: Copy) {     from war.archivePath     into "${tomcatHome}/webapps" } I accomplished this with:
task deploy (dependsOn: war){     copy {         from "build/libs"         into "C:/dev/jetty-distribution-9.1.4.v20140401/webapps"         include "*.war"     } } running it like this:
gradle deploy If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With