Be more concise by calling property setters instead of assigning

This commit is contained in:
Ben Liblit 2018-01-18 18:09:41 -06:00
parent d3ddbd6343
commit 84b0846517
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ task unpackNodeJSLib(type: Sync, dependsOn: verifyNodeJS) {
} }
into temporaryDir into temporaryDir
includeEmptyDirs = false includeEmptyDirs false
} }
sourceSets.main { sourceSets.main {

View File

@ -17,7 +17,7 @@ task unpackAjaxslt(type: Copy, dependsOn: verifyAjaxslt) {
from(tarTree(verifyAjaxslt.src)) { from(tarTree(verifyAjaxslt.src)) {
eachFile { eachFile {
def newSegments = ['ajaxslt'] + relativePath.segments[1 .. -1] as String[] def newSegments = ['ajaxslt'] + relativePath.segments[1 .. -1] as String[]
relativePath = new RelativePath(!directory, newSegments) relativePath new RelativePath(!directory, newSegments)
} }
} }
into 'examples-src' into 'examples-src'

View File

@ -33,7 +33,7 @@ task extractBcel(type: Copy, dependsOn: verifyBcel) {
from(tarTree(verifyBcel.src)) { from(tarTree(verifyBcel.src)) {
include 'bcel-5.2/bcel-5.2.jar' include 'bcel-5.2/bcel-5.2.jar'
eachFile { eachFile {
relativePath = new RelativePath(!directory, relativePath.lastName) relativePath new RelativePath(!directory, relativePath.lastName)
} }
} }
into projectDir into projectDir