[英]What is the right syntax of groovy/gradle for file collection filter and iteration?
groovy / gradle的正確語法是:
zipTree("/path/foo.jar")
.include("**/*.xml, **/*.html")
.eachWithIndex { file, index ->
}
?
你可以試試:
zipTree('whatever.jar')
.matching { include '**/*.MF' }
.each { println it }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.