Javac checker: minor optimisation.

Allow g:syntastic_java_javac_delete_output to take effect regardless of
g:syntastic_java_javac_autoload_maven_classpat.
This commit is contained in:
LCD 47 2015-11-05 19:47:40 +02:00
parent 03c058ea52
commit cfdcdfaa9f
2 changed files with 7 additions and 4 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-25'
let g:_SYNTASTIC_VERSION = '3.7.0-26'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -132,10 +132,13 @@ function! SyntaxCheckers_java_javac_GetLocList() dict " {{{1
endfor
if s:has_maven && g:syntastic_java_javac_autoload_maven_classpath
if !g:syntastic_java_javac_delete_output
let javac_opts .= ' -d ' . syntastic#util#shescape(s:MavenOutputDirectory())
let maven_output_dir = s:MavenOutputDirectory()
if maven_output_dir !=# '.'
if !g:syntastic_java_javac_delete_output
let javac_opts .= ' -d ' . syntastic#util#shescape(maven_output_dir)
endif
let javac_classpath = s:AddToClasspath(javac_classpath, s:GetMavenClasspath())
endif
let javac_classpath = s:AddToClasspath(javac_classpath, s:GetMavenClasspath())
endif
" }}}2