mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Fixed gradle localTest bug on Windows.
This commit is contained in:
parent
191dcf0c31
commit
f89ab48d61
@ -88,18 +88,18 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//task localTest(type: Test, dependsOn: assemble) {
|
task localTest(type: Test, dependsOn: assemble) {
|
||||||
// testClassesDir = sourceSets.testLocal.output.classesDir
|
testClassesDir = sourceSets.testLocal.output.classesDir
|
||||||
//
|
|
||||||
// android.sourceSets.main.java.srcDirs.each { dir ->
|
android.sourceSets.main.java.srcDirs.each { dir ->
|
||||||
// def buildDir = dir.getAbsolutePath().split('/')
|
def buildDir = dir.getAbsolutePath().split("\\" + File.separator)
|
||||||
// buildDir = (buildDir[0..(buildDir.length - 4)] + ['build', 'classes', 'debug']).join('/')
|
buildDir = (buildDir[0..(buildDir.length - 4)] + ['build', 'classes', 'debug']).join("\\" + File.separator)
|
||||||
//
|
|
||||||
// sourceSets.testLocal.compileClasspath += files(buildDir)
|
sourceSets.testLocal.compileClasspath += files(buildDir)
|
||||||
// sourceSets.testLocal.runtimeClasspath += files(buildDir)
|
sourceSets.testLocal.runtimeClasspath += files(buildDir)
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// classpath = sourceSets.testLocal.runtimeClasspath
|
classpath = sourceSets.testLocal.runtimeClasspath
|
||||||
//}
|
}
|
||||||
|
|
||||||
//check.dependsOn localTest
|
//check.dependsOn localTest
|
||||||
|
Loading…
Reference in New Issue
Block a user