javac checker added fix for glob function

This commit is contained in:
troydm 2013-01-23 22:26:43 +04:00
parent c290f297b9
commit d4e0c2eee8

View File

@ -180,7 +180,11 @@ function! SyntaxCheckers_java_GetLocList()
" add classpathes to javac_classpath
for path in split(g:syntastic_java_javac_classpath,"\n")
if path != ''
try
let ps = glob(path,0,1)
catch
let ps = split(glob(path,0),"\n")
endtry
if type(ps) == type([])
for p in ps
if p != '' | let javac_classpath = s:AddToClasspath(javac_classpath,p) | endif