summaryrefslogtreecommitdiff
path: root/bin/flycheck-android-java.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/flycheck-android-java.py')
-rw-r--r--bin/flycheck-android-java.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/flycheck-android-java.py b/bin/flycheck-android-java.py
index 28e6415..656640e 100644
--- a/bin/flycheck-android-java.py
+++ b/bin/flycheck-android-java.py
@@ -98,7 +98,8 @@ def run_javac(encoding, source, target, bootcp, cp, files, output, args,
command.extend(['-cp', ':'.join(cp)])
if output:
command.extend(['-d', output])
- command.extend(args)
+ if [x for x in args if x]:
+ command.extend([x for x in args if x])
command.append(sourcefile)
if outdir:
return subprocess.call(command)
@@ -162,7 +163,7 @@ def figure_out_java_compilation(sessiondir, sourcefile, tempfile, checkstyle,
outdir = None
if not output:
- flycheck_cmd = cmd + ['-q', 'flycheckAndroidJava']
+ flycheck_cmd = cmd + ['-q', '--no-configuration-cache', 'flycheckAndroidJava']
output = subprocess.check_output(flycheck_cmd, universal_newlines=True)
if sessiondir != None:
try: