diff options
| author | Joel Klinghed <the_jk@opera.com> | 2023-01-17 12:24:47 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@opera.com> | 2023-01-17 12:24:47 +0100 |
| commit | c1a56a0ea4c2497ab79c8622dc67463f6dd7fdc3 (patch) | |
| tree | dcb30bfbc7c06c457f2f1359c49162bfd65bb082 | |
| parent | d8aaa74d9927f7390a32a0b7211d78859d565607 (diff) | |
Allow for bootstrapClasspath or bootClasspath to be null
| -rw-r--r-- | src/main/groovy/FlycheckAndroidJavaTask.groovy | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/groovy/FlycheckAndroidJavaTask.groovy b/src/main/groovy/FlycheckAndroidJavaTask.groovy index 582b007..046f6ba 100644 --- a/src/main/groovy/FlycheckAndroidJavaTask.groovy +++ b/src/main/groovy/FlycheckAndroidJavaTask.groovy @@ -43,9 +43,11 @@ class FlycheckAndroidJavaTask extends DefaultTask { try { def cp = compile.classpath.asPath def bootcp = '' - if (compile.options.hasProperty('bootClasspath')) { + if (compile.options.hasProperty('bootClasspath') && + compile.options.bootClasspath != null) { bootcp = compile.options.bootClasspath - } else if (compile.options.hasProperty('bootstrapClasspath')) { + } else if (compile.options.hasProperty('bootstrapClasspath') && + compile.options.bootstrapClasspath != null) { bootcp = compile.options.bootstrapClasspath.asPath } println '***' |
