Copy task in Windows not working

task copyTask(type: Copy) {
from(‘D:/eclipse/projects/springdemo/build/libs/’)
into(‘D:/tomcat/webapps’)
include(‘springdemo.war’)
}

This does not happen on gradle build. Any help for a noob.

Are you calling your copyTask (gradle copyTask) or maybe you want to express a dependency like “build.dependsOn copyTask”

You need to be more specific about your problem and what you tried.