John Park | 7eb9042 | 2018-01-27 12:04:57 -0800 | [diff] [blame] | 1 | def testOutputFolder = file("${project(':').buildDir}/integrationTestFiles") |
| 2 | |
| 3 | model { |
| 4 | tasks { |
| 5 | copyWpilibJTestLibrariesToOutput(Copy) { |
| 6 | destinationDir testOutputFolder |
| 7 | $.binaries.each { |
| 8 | if (it in SharedLibraryBinarySpec && it.targetPlatform.architecture.name == 'athena') { |
| 9 | def spec = it |
| 10 | dependsOn spec.buildTask |
| 11 | from(spec.sharedLibraryFile) { |
| 12 | into '/libs' |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | outputs.file testOutputFolder |
| 17 | outputs.upToDateWhen { false } |
| 18 | } |
| 19 | build.dependsOn copyWpilibJTestLibrariesToOutput |
| 20 | } |
| 21 | } |