From 95d76b21c8e4fe71d1e5175ac0c8a81e3670ca8a Mon Sep 17 00:00:00 2001 From: hkbarton Date: Mon, 27 Jan 2014 12:19:28 -0800 Subject: [PATCH 1/2] bug fix for issue962 javac classpath resolve bug --- syntax_checkers/java/javac.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 88ee5618..936007ba 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -354,7 +354,7 @@ function! SyntaxCheckers_java_javac_GetLocList() dict let javac_classpath = '' " add classpathes to javac_classpath - for path in split(g:syntastic_java_javac_classpath, "\n") + for path in split(g:syntastic_java_javac_classpath, ":") if path != '' try let ps = glob(path, 0, 1) From 2ab8486f07bdc05e46100616bba24210467205ae Mon Sep 17 00:00:00 2001 From: hkbarton Date: Mon, 27 Jan 2014 12:52:24 -0800 Subject: [PATCH 2/2] bug fix for issue962 javac classpath resolve bug - add windows support --- syntax_checkers/java/javac.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 936007ba..48a42f8b 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -354,7 +354,12 @@ function! SyntaxCheckers_java_javac_GetLocList() dict let javac_classpath = '' " add classpathes to javac_classpath - for path in split(g:syntastic_java_javac_classpath, ":") + if has('win32') || has('win32unix') || has('win64') + let javac_classpath_split = ';' + else + let javac_classpath_split = ':' + endif + for path in split(g:syntastic_java_javac_classpath, javac_classpath_split) if path != '' try let ps = glob(path, 0, 1)