File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -295,13 +295,17 @@ afterEvaluate { project ->
295
295
}
296
296
}
297
297
298
+ def localBuildDir = buildDir
299
+ def headersConfiguration = configurations. extractHeaders
300
+ def jniConfiguration = configurations. extractJNI
301
+
298
302
task extractAARHeaders {
299
303
doLast {
300
- configurations . extractHeaders . files. each {
301
- def file = it . absoluteFile
302
- copy {
303
- from zipTree(file )
304
- into " $b uildDir / $f ile . name "
304
+ headersConfiguration . files. each { file ->
305
+ def absFile = file . absoluteFile
306
+ project . copy {
307
+ from project . zipTree(absFile )
308
+ into " ${ localBuildDir } / ${ absFile .name} "
305
309
include " **/*.h"
306
310
}
307
311
}
@@ -310,11 +314,11 @@ task extractAARHeaders {
310
314
311
315
task extractJNIFiles {
312
316
doLast {
313
- configurations . extractJNI . files. each {
314
- def file = it . absoluteFile
315
- copy {
316
- from zipTree(file )
317
- into " $b uildDir / $f ile . name "
317
+ jniConfiguration . files. each { file ->
318
+ def absFile = file . absoluteFile
319
+ project . copy {
320
+ from project . zipTree(absFile )
321
+ into " ${ localBuildDir } / ${ absFile .name} "
318
322
include " jni/**/*"
319
323
}
320
324
}
You can’t perform that action at this time.
0 commit comments