Download a specific DroidBench release that we know works for us

If future DroidBench changes include things we need, then we can
decide to move to those newer revisions.  But we shouldn't allow
DroidBench to change out from under us implicitly whenever someone
commits something new to the DroidBench repository.
This commit is contained in:
Ben Liblit 2018-02-08 19:21:30 -06:00
parent 49eda8ffab
commit 0e231b4363
1 changed files with 2 additions and 2 deletions

View File

@ -12,10 +12,10 @@ task cloneDroidBench(type: Exec) {
// TODO: download to somewhere private to this build tree; update code that looks in "/tmp" accordingly
def destDir = file('/tmp/DroidBench')
inputs.property('repository', 'https://github.com/secure-software-engineering/DroidBench.git')
inputs.property('branch', 'DroidBench_2.0')
outputs.dirs destDir
doFirst { delete destDir }
commandLine 'git', 'clone', '--depth=1', inputs.properties.repository, destDir
// TODO: should check out a specific tag or hash
commandLine 'git', 'clone', "--branch=$inputs.properties.branch", '--config=advice.detachedHead=false', '--depth=1', '--quiet', inputs.properties.repository, destDir
}
task downloadAndroidSdk(type: Download) {