javac quotes changed to fnameescape

This commit is contained in:
troydm 2012-12-19 18:20:38 +04:00
parent e25a3efa33
commit 9f798fa4ef

View File

@ -197,7 +197,7 @@ function! SyntaxCheckers_java_GetLocList()
endif endif
if javac_classpath != '' if javac_classpath != ''
let javac_opts .= ' -cp ' . javac_classpath let javac_opts .= ' -cp ' . fnameescape(javac_classpath)
endif endif
@ -209,7 +209,7 @@ function! SyntaxCheckers_java_GetLocList()
endif endif
let makeprg = g:syntastic_java_javac_executable . ' '. javac_opts . ' ' let makeprg = g:syntastic_java_javac_executable . ' '. javac_opts . ' '
\. '"'.expand ( '%:p:h' ) . sep . expand ( '%:t' ).'"' \. fnameescape(expand ( '%:p:h' ) . sep . expand ( '%:t' ))
\. ' 2>&1 ' \. ' 2>&1 '
" unashamedly stolen from *errorformat-javac* (quickfix.txt) and modified to include error types " unashamedly stolen from *errorformat-javac* (quickfix.txt) and modified to include error types