Use Groovy's implicit "it" closure argument
This commit is contained in:
parent
17b1d85f76
commit
c812e72cb5
|
@ -23,12 +23,12 @@ task verifyNodeJS(type: VerifyWithStamp, dependsOn: downloadNodeJS) {
|
|||
|
||||
task unpackNodeJSLib(type: Sync, dependsOn: verifyNodeJS) {
|
||||
from(zipTree(verifyNodeJS.src)) {
|
||||
eachFile { details ->
|
||||
if (details.relativePath.pathString.startsWith('nodejs-node-0a604e9/lib/')) {
|
||||
def renamedRelative = new RelativePath(!details.directory, 'core-modules', details.relativePath.lastName)
|
||||
details.relativePath = renamedRelative
|
||||
eachFile {
|
||||
if (it.relativePath.pathString.startsWith('nodejs-node-0a604e9/lib/')) {
|
||||
def renamedRelative = new RelativePath(!it.directory, 'core-modules', it.relativePath.lastName)
|
||||
it.relativePath = renamedRelative
|
||||
} else
|
||||
details.exclude()
|
||||
it.exclude()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue