diff options
author | fenuks <fenuks@protonmail.com> | 2019-12-09 23:38:53 +0100 |
---|---|---|
committer | fenuks <fenuks> | 2020-09-30 00:11:57 +0200 |
commit | 7186b0437f0b2d1726d594c04e580f26746368fc (patch) | |
tree | cbbdb78552d752cbcb96b39c72409e2873e32243 /ale_linters/java | |
parent | 96dcbd1f2069843acdc57646074b3d9f0e768044 (diff) | |
download | ale-7186b0437f0b2d1726d594c04e580f26746368fc.zip |
Add maven helper file; use maven wrapper if available instead of global 'mvn' executable
Diffstat (limited to 'ale_linters/java')
-rw-r--r-- | ale_linters/java/javac.vim | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim index f866eb09..a5e57e6c 100644 --- a/ale_linters/java/javac.vim +++ b/ale_linters/java/javac.vim @@ -9,13 +9,7 @@ call ale#Set('java_javac_classpath', '') call ale#Set('java_javac_sourcepath', '') function! ale_linters#java#javac#RunWithImportPaths(buffer) abort - let l:command = '' - let l:pom_path = ale#path#FindNearestFile(a:buffer, 'pom.xml') - - if !empty(l:pom_path) && executable('mvn') - let l:command = ale#path#CdString(fnamemodify(l:pom_path, ':h')) - \ . 'mvn dependency:build-classpath' - endif + let l:command = ale#maven#BuildClasspathCommand(a:buffer) " Try to use Gradle if Maven isn't available. if empty(l:command) |