diff options
| -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 '***' |
