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:
parent
03c058ea52
commit
cfdcdfaa9f
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-25'
|
let g:_SYNTASTIC_VERSION = '3.7.0-26'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -132,10 +132,13 @@ function! SyntaxCheckers_java_javac_GetLocList() dict " {{{1
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
if s:has_maven && g:syntastic_java_javac_autoload_maven_classpath
|
if s:has_maven && g:syntastic_java_javac_autoload_maven_classpath
|
||||||
if !g:syntastic_java_javac_delete_output
|
let maven_output_dir = s:MavenOutputDirectory()
|
||||||
let javac_opts .= ' -d ' . syntastic#util#shescape(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
|
endif
|
||||||
let javac_classpath = s:AddToClasspath(javac_classpath, s:GetMavenClasspath())
|
|
||||||
endif
|
endif
|
||||||
" }}}2
|
" }}}2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user