Be more concise by calling property setters instead of assigning
This commit is contained in:
parent
d3ddbd6343
commit
84b0846517
|
@ -33,7 +33,7 @@ task unpackNodeJSLib(type: Sync, dependsOn: verifyNodeJS) {
|
||||||
}
|
}
|
||||||
|
|
||||||
into temporaryDir
|
into temporaryDir
|
||||||
includeEmptyDirs = false
|
includeEmptyDirs false
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.main {
|
sourceSets.main {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue