グラデルスクリプトで - >演算子とは何を意味しますか?それはグルーヴィーなものですか?例えば。グラデーションスクリプトで - >の意味
def configureWarnings = { compiler ->
compiler.args '-Wno-long-long', '-Wall', '-Wswitch-enum', '-pedantic', '-Werror'
}
OR
all { binary ->
binary.component.sources.cpp.libs.each { lib ->
if (lib instanceof Map && lib.containsKey('library') {
//blah
}
if (lib instanceof Map && lib.containsKey('library')) {
//blah
}
}
}
http://groovy-lang.org/closures.html –