mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
Merge branch 'clean-tor-binaries' into 'master'
Delete Tor binaries when cleaning See merge request briar/briar!969
This commit is contained in:
@@ -44,9 +44,26 @@ dependencies {
|
|||||||
testImplementation "org.hamcrest:hamcrest-core:1.3"
|
testImplementation "org.hamcrest:hamcrest-core:1.3"
|
||||||
}
|
}
|
||||||
|
|
||||||
project.afterEvaluate {
|
def torBinariesDir = 'src/main/res/raw'
|
||||||
copy {
|
|
||||||
from configurations.tor.collect { zipTree(it) }
|
task unpackTorBinaries {
|
||||||
into 'src/main/res/raw'
|
outputs.dir torBinariesDir
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from configurations.tor.collect { zipTree(it) }
|
||||||
|
into torBinariesDir
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
dependsOn unpackTorBinaries
|
||||||
|
}
|
||||||
|
|
||||||
|
task cleanTorBinaries {
|
||||||
|
doLast {
|
||||||
|
delete fileTree(torBinariesDir) { include '*.zip' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
clean.dependsOn cleanTorBinaries
|
||||||
|
|||||||
@@ -33,13 +33,30 @@ dependencies {
|
|||||||
testApt 'com.google.dagger:dagger-compiler:2.0.2'
|
testApt 'com.google.dagger:dagger-compiler:2.0.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
project.afterEvaluate {
|
def torBinariesDir = 'src/main/resources'
|
||||||
copy {
|
|
||||||
from configurations.tor.collect { zipTree(it) }
|
task unpackTorBinaries {
|
||||||
into 'src/main/resources'
|
outputs.dir torBinariesDir
|
||||||
|
doLast {
|
||||||
|
copy {
|
||||||
|
from configurations.tor.collect { zipTree(it) }
|
||||||
|
into torBinariesDir
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
dependsOn unpackTorBinaries
|
||||||
|
}
|
||||||
|
|
||||||
|
task cleanTorBinaries {
|
||||||
|
doLast {
|
||||||
|
delete fileTree(torBinariesDir) { include '*.zip' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
clean.dependsOn cleanTorBinaries
|
||||||
|
|
||||||
tasks.withType(Test) {
|
tasks.withType(Test) {
|
||||||
systemProperty 'java.library.path', 'libs'
|
systemProperty 'java.library.path', 'libs'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user