summaryrefslogtreecommitdiff
path: root/ale_linters/java/javac.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-12 09:20:16 +0100
committerw0rp <devw0rp@gmail.com>2017-05-12 09:20:16 +0100
commit07b2542c0d6505f2a843e700d246367a522ecf64 (patch)
tree5a0ee411ef62a76d1cf04ccd1bdff4dd8e3e786a /ale_linters/java/javac.vim
parentfa54f7af97f2bb33eec1363b2262caa5a5b70d0b (diff)
downloadale-07b2542c0d6505f2a843e700d246367a522ecf64.zip
#549 Temporarily revert shell escaping changes, just for Windows
Diffstat (limited to 'ale_linters/java/javac.vim')
-rw-r--r--ale_linters/java/javac.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index 2966d069..038fa249 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -47,7 +47,7 @@ function! s:BuildClassPathOption(buffer, import_paths) abort
\)
return !empty(l:class_paths)
- \ ? '-cp ' . shellescape(join(l:class_paths, s:classpath_sep))
+ \ ? '-cp ' . ale#Escape(join(l:class_paths, s:classpath_sep))
\ : ''
endfunction
@@ -64,7 +64,7 @@ function! ale_linters#java#javac#GetCommand(buffer, import_paths) abort
let l:src_dir = ale#path#FindNearestDirectory(a:buffer, 'src/main/java')
if !empty(l:src_dir)
- let l:sp_option = '-sourcepath ' . shellescape(l:src_dir)
+ let l:sp_option = '-sourcepath ' . ale#Escape(l:src_dir)
endif
" Create .class files in a temporary directory, which we will delete later.
@@ -73,7 +73,7 @@ function! ale_linters#java#javac#GetCommand(buffer, import_paths) abort
return 'javac -Xlint'
\ . ' ' . l:cp_option
\ . ' ' . l:sp_option
- \ . ' -d ' . shellescape(l:class_file_directory)
+ \ . ' -d ' . ale#Escape(l:class_file_directory)
\ . ' ' . ale#Var(a:buffer, 'java_javac_options')
\ . ' %t'
endfunction