summaryrefslogtreecommitdiff
path: root/ale_linters/java/javac.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/java/javac.vim')
-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