Delete { fileTree() { .. } } does not work in 2.13


(Eugene Petrenko) #1

A code
delete { fileTree(file("bin")) { include "lib/launcher-api.jar" include "lib/app-wrapper-api.jar" include "lib/jetty-proxy*.jar" include "lib/asm*.jar" } }
was working with 2.12. After an upgrade to 2.13 I noticed files were not deleted.


(Mark Vieira) #2

This is a result of the addition of this method to the Project API. Removing the outer closure should be sufficient to get this to work with 2.13.

delete fileTree(file("bin")) {
  include "lib/launcher-api.jar"
  include "lib/app-wrapper-api.jar"
  include "lib/jetty-proxy*.jar"
  include "lib/asm*.jar"
}

(Eugene Petrenko) #3

I expected a method was added somewhere. Will try to upgrade to 2.13 soon
by re-checking all my scripts.

Best regards,
Eugene Petrenko