summaryrefslogtreecommitdiff
path: root/ale_linters/java
diff options
context:
space:
mode:
authorAndrew Lee <andrew.lambda@tuta.io>2019-06-03 12:30:18 -0700
committerw0rp <w0rp@users.noreply.github.com>2019-06-03 20:30:18 +0100
commitc6a5cbb3c737261bc46477733b3aa26203eb63d9 (patch)
tree1b2cc8bf9b6eefd280df998bbb48d209dcf82708 /ale_linters/java
parenta76f056bd976a52d3d49f07726a067ac4dba2e6e (diff)
downloadale-c6a5cbb3c737261bc46477733b3aa26203eb63d9.zip
Feature/add ant support (#2539)
Use ant files to load Java settings too.
Diffstat (limited to 'ale_linters/java')
-rw-r--r--ale_linters/java/javac.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index 3883783b..8bb52c0b 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -21,6 +21,11 @@ function! ale_linters#java#javac#RunWithImportPaths(buffer) abort
let l:command = ale#gradle#BuildClasspathCommand(a:buffer)
endif
+ " Try to use Ant if Gradle and Maven aren't available
+ if empty(l:command)
+ let l:command = ale#ant#BuildClasspathCommand(a:buffer)
+ endif
+
if empty(l:command)
return ale_linters#java#javac#GetCommand(a:buffer, [], {})
endif