diff options
Diffstat (limited to 'ale_linters/java/javac.vim')
-rw-r--r-- | ale_linters/java/javac.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim index 9df95774..d6cb6a4b 100644 --- a/ale_linters/java/javac.vim +++ b/ale_linters/java/javac.vim @@ -9,8 +9,12 @@ function! ale_linters#java#javac#GetCommand(buffer) abort \ ? '-cp ' . g:ale_java_javac_classpath \ : '' + " Create .class files in a temporary directory, which we will delete later. + let l:class_file_directory = ale#engine#CreateDirectory(a:buffer) + return 'javac -Xlint ' \ . l:cp_option + \ . ' -d ' . fnameescape(l:class_file_directory) \ . ' ' . g:ale_java_javac_options \ . ' %t' endfunction |