summaryrefslogtreecommitdiff
path: root/src/main/groovy/FlycheckAndroidJavaTask.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/groovy/FlycheckAndroidJavaTask.groovy')
-rw-r--r--src/main/groovy/FlycheckAndroidJavaTask.groovy25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/main/groovy/FlycheckAndroidJavaTask.groovy b/src/main/groovy/FlycheckAndroidJavaTask.groovy
index 558981d..a4af5b7 100644
--- a/src/main/groovy/FlycheckAndroidJavaTask.groovy
+++ b/src/main/groovy/FlycheckAndroidJavaTask.groovy
@@ -39,16 +39,21 @@ class FlycheckAndroidJavaTask extends DefaultTask {
name += configuration.capitalize() + 'JavaWithJavac'
def compile = project.tasks.findByName(name)
if (compile) {
- println '***'
- println 'variant=' + variant
- println 'args=' + compile.options.compilerArgs
- println 'encoding=' + compile.options.encoding
- println 'bootcp=' + (compile.options.bootClasspath ?: '')
- println 'cp=' + compile.classpath.asPath
- println 'source=' + compile.sourceCompatibility
- println 'target=' + compile.targetCompatibility
- println 'files=' + compile.inputs.files.asPath
- println 'output=' + compile.destinationDir
+ try {
+ def cp = compile.classpath.asPath
+ def bootcp = compile.options.bootClasspath ?: ''
+ println '***'
+ println 'variant=' + variant
+ println 'args=' + compile.options.compilerArgs
+ println 'encoding=' + compile.options.encoding
+ println 'bootcp=' + bootcp
+ println 'cp=' + cp
+ println 'source=' + compile.sourceCompatibility
+ println 'target=' + compile.targetCompatibility
+ println 'files=' + compile.inputs.files.asPath
+ println 'output=' + compile.destinationDir
+ } catch (Throwable t) {
+ }
}
}