From 7c736579b72a79d955d090db35adf8c751a79fd8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 31 Mar 2017 20:14:53 +0100 Subject: Fix #438 Create Java .class files for javac in a temporary directory --- ale_linters/java/javac.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ale_linters') 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 -- cgit v1.2.3