diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/flycheck-android-java.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/flycheck-android-java.py b/bin/flycheck-android-java.py index 4919c52..4194049 100644 --- a/bin/flycheck-android-java.py +++ b/bin/flycheck-android-java.py @@ -259,8 +259,11 @@ def figure_out_java_compilation(sessiondir, sourcefile, tempfile, checkstyle, compiled = True if not ret and checkstyle: - cmd = ['java', '-jar', - os.path.abspath(os.path.join(projectdir, checkstyle['jar']))] + cmd = ['java'] + if ':' in checkstyle['jar']: + cmd.extend(['-cp', ':'.join(os.path.abspath(os.path.join(projectdir, jar)) for jar in checkstyle['jar'].split(':')), 'com.puppycrawl.tools.checkstyle.Main']) + else: + cmd.extend(['-jar', os.path.abspath(os.path.join(projectdir, checkstyle['jar']))]) if 'config' in checkstyle: cmd.extend(['-c', checkstyle['config']]) |
