summaryrefslogtreecommitdiff
path: root/bin/flycheck-android-java.py
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2024-04-19 12:49:39 +0200
committerJoel Klinghed <the_jk@opera.com>2024-04-19 12:49:39 +0200
commit78abdf80d5ab99d6e84f2b5e2a4a6cc629fb4638 (patch)
tree4bfd98fdf8d83efa4b5f47079e3cb65bb17f2b37 /bin/flycheck-android-java.py
parentc3a1e90a323f785bd72b09779efbde50ac413030 (diff)
Bumped to 0.3.15
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: