Gradle/Groovy syntax confusion
问题 Can anyone explain/comment on this fraction of Groovy code? task copyImageFolders(type: Copy) { from('images') { include '*.jpg' into 'jpeg' } from('images') { include '*.gif' into 'gif' } into 'build' } More specifically about the from method. Is this the from(sourcePaths) or the from(sourcePath, configureAction) If its the one with the 2 arguments, why it’s written this way and not something like: from('images', { include '*.jpg' into 'jpeg' }) 回答1: The short answer is it's calling from