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 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

View File

@ -132,11 +132,14 @@ 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
let maven_output_dir = s:MavenOutputDirectory()
if maven_output_dir !=# '.'
if !g:syntastic_java_javac_delete_output if !g:syntastic_java_javac_delete_output
let javac_opts .= ' -d ' . syntastic#util#shescape(s:MavenOutputDirectory()) let javac_opts .= ' -d ' . syntastic#util#shescape(maven_output_dir)
endif endif
let javac_classpath = s:AddToClasspath(javac_classpath, s:GetMavenClasspath()) let javac_classpath = s:AddToClasspath(javac_classpath, s:GetMavenClasspath())
endif endif
endif
" }}}2 " }}}2
" load custom classpath {{{2 " load custom classpath {{{2